Some more doc examples

Also disallow fragments that start with -
This commit is contained in:
Kovid Goyal
2024-05-22 08:40:01 +05:30
parent 83380cc916
commit f2a14a083b
3 changed files with 15 additions and 3 deletions

View File

@@ -31,12 +31,12 @@ following contents:
# 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}
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}
action launch --type=overlay --cwd=current -- ${EDITOR} -- ${FILE_PATH}
Now, run a search with::