V2: Way to jump to specific line/col of a file?

I’m writing a custom search lua command (amazing btw) to do a custom search using git grep and I’d like to jump directly to the match since I have line:col information from the git grep command.

Does that help you?
From API/editor

editor.moveCursorToLine(line, column, center)

Move the cursor to a specific line and column.

Example:

editor.moveCursorToLine(1, 1, true)  -- Move to start of first line

This worked great. Now just trying to wrap my head around creating a template that brings you to that search result.

You can also make it part of the link

1 Like