go get -u -v github.com/NightMachinary/ntom
This is a helper tool that I use with my search scripts.
ntom <file-path> <line-number-of-match> <match-text> [<cwd> <mode>]
Unfortunately, the search scripts need some refactoring to be easily usable by other people. But they live at https://github.com/NightMachinary/.shells/blob/master/scripts/zsh/interactive/fuzzy/notes-search.zsh if you’re interested.
Dual-licensed under MIT and GPL v3 or later.