Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This code uses some clever filename expansion: we expand to a full path with :p, then substitute off whatever g:wiki_root is with :s?pat?repl? and an empty replacement. This will break if your g:wiki_root has a ? or pattern metacharacters, though :/ Finally, we lop off the leading slash from absolute paths. The search will also break if the filename has metacharactes in it for :grep, which for me is rg at the moment.
- Loading branch information