-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
This is a feature found in vim and for example used by Linux kernel test robots to give context about warnings and/or failures.
e.g. vim +/imem_size +623 drivers/net/ipa/ipa_mem.c
Means to search for imem_size and move cursor to line 623.
The behavior found in VIM is as follows:
- If line:col is specified before the search starts from that position and if a match is found the cursor jumps to the match (also wrapping around the buffer).
- If the search if specified before and a match is found it highlights the search field and then moves the cursor as specified in line:col.
As for multi-file handling it applies the last rule in command line takes over.
Not sure if that's something you'd be interesting to support but it's quite handy.
There's a crude implementation here https://github.com/luca020400/micro/commit/894043ae3f9704d2d6bb91c082be618f385ddb58 that implements it in an hacky way via .Search (couldn't find a proper API for now)
Ty.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels