Load edited file after `edit` command
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start at IRB's implementation of the edit command and compare its behavior with Pry's referenced edit command. Trace how command options are defined and how the edited file is returned to IRB. Done means an auto-load option defaults to false initially, loads the edited file when enabled, and has a documented plan or version handling for changing the default in the next major release.
Written by the indexing model from the issue text.
Description
We have edit command which invokes a text editor from IRB. This is convenient when we launch IRB with bin/console command so that we can modify a bit of code and see the change.
However, when we exit the editor and come back to IRB, the edited file is not loaded automatically. This provides virtually similar experience to open the editor separately, and we can improve this experience by loading the file after edit.
As a reference, Pry's edit command supports "reload" feature that's enabled by default.
https://github.com/pry/pry/blob/master/lib/pry/commands/edit.rb
So my suggestion is to add auto-load option to edit command first with false as default. Then make that option true as default from the next major version of IRB.
When the option is true, we will simply load that file in IRB.
- Dominant language
- Ruby
- Stars
- 477
- Forks
- 165
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby/irb
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
Maintainers usually reply within 2 days
-
Proposal: public hook for external documentation providers in show_doc and the completion doc dialogPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 38/100
Maintainers usually reply within 2 days
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 2 days
Similar issues
-
needs verification
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 13 days
-
🐛 bug 👩💻 équipe CE 🧑🏭 entreprises
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
betagouv/conseillers-entreprises#4808 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
yosiat/panko_serializer#250 ·