Repository navigation
allow for arguments in EDITOR and VISUAL env vars - #8105
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #8105 +/- ##
==========================================
- Coverage 54.61% 54.59% -0.02%
==========================================
Files 608 608
Lines 99003 99027 +24
==========================================
+ Hits 54066 54067 +1
- Misses 44937 44960 +23
|
|
Thanks for tackling this! Fixing the invocations of the editors is definitely the right place. Kind of annoying that we have this copy-paste duplication in the code for We also should validate that the |
|
I've opened a PR for reedline to make Ctrl+O work: nushell/reedline#544 |
|
Thanks for this + the refactor! |
|
Note to users: Please use a list of arguments instead of space-delimited command. See #10210 |
Description
Fixes #8051.
User-Facing Changes
You can now put command arguments into the EDITOR and VISUAL config / env variables.
Tests + Formatting
I don't know how to write tests for this. However, I set $env.EDITOR to "nvim -R" and it seemed to work.
After Submitting
If your PR had any user-facing changes, update the documentation after the PR is merged, if necessary. This will help us keep the docs up to date.