diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-10-30 08:34:14 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-10-30 09:02:35 +0200 |
commit | 92ac13f3c679b8d1261a33e7dbe4baf9e4dc3107 (patch) | |
tree | 924578ca10fe8800a10b411573bd6b2943a70758 /xC.png | |
parent | df4ca745807852be4e7588a41fe311c12f41ddb4 (diff) | |
download | xK-92ac13f3c679b8d1261a33e7dbe4baf9e4dc3107.tar.gz xK-92ac13f3c679b8d1261a33e7dbe4baf9e4dc3107.tar.xz xK-92ac13f3c679b8d1261a33e7dbe4baf9e4dc3107.zip |
xC: allow passing the cursor position to editors
Add a configuration option to set a custom editor command,
different from EDITOR or VISUAL--those remain as defaults.
Implement substitutions allowing to convey cursor information
to VIM and Emacs (the latter of which is fairly painful to cater to),
and put usage hints in the configuration option's description.
This should make the editing experience a bit more seamless
for users, even though the position is carried over in one way only.
No sophisticated quoting capabilities were deemed necessary,
it is a lot of code already. The particular syntax is inspired
by .desktop files and systemd.
["/bin/sh", "-c", "vim +$2go \"$1\"", filename, position, line, column]
would be a slightly simpler but cryptic way of implementing this.
Diffstat (limited to 'xC.png')
0 files changed, 0 insertions, 0 deletions