mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-20 11:07:38 +03:00
Recommend using --cwd=current in open-actions.conf
Editors like Vim are basing path-related commands on the current working directory. Launching the action with the current CWD in hyperlink opens makes life easier and would work with every editor.
This commit is contained in:
parent
6af020e4ef
commit
d63be90a7f
@ -17,12 +17,12 @@ following contents:
|
|||||||
# by the hyperlink_grep kitten and nothing else so far.
|
# by the hyperlink_grep kitten and nothing else so far.
|
||||||
protocol file
|
protocol file
|
||||||
fragment_matches [0-9]+
|
fragment_matches [0-9]+
|
||||||
action launch --type=overlay vim +${FRAGMENT} ${FILE_PATH}
|
action launch --type=overlay --cwd=current vim +${FRAGMENT} ${FILE_PATH}
|
||||||
|
|
||||||
# Open text files without fragments in the editor
|
# Open text files without fragments in the editor
|
||||||
protocol file
|
protocol file
|
||||||
mime text/*
|
mime text/*
|
||||||
action launch --type=overlay ${EDITOR} ${FILE_PATH}
|
action launch --type=overlay --cwd=current ${EDITOR} ${FILE_PATH}
|
||||||
|
|
||||||
Now, run a search with::
|
Now, run a search with::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user