10 lines
383 B
Text
10 lines
383 B
Text
# Open any file with a fragment in vim, fragments are generated
|
|
# by the hyperlink-grep kitten and nothing else so far.
|
|
protocol file
|
|
fragment_matches [0-9]+
|
|
action launch --type=overlay --cwd=current vim +${FRAGMENT} -- ${FILE_PATH}
|
|
|
|
# Open text files without fragments in the editor
|
|
protocol file
|
|
mime text/*
|
|
action launch --type=overlay --cwd=current -- ${EDITOR} -- ${FILE_PATH}
|