Ticket #3862 (closed enhancement: wontfix)
Pass the line number to the external pager/editor as well
Reported by: | akochkov | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | mc-core | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
If you perform a search in mc, you can see the results in format
path/to/file.txt:123
where 123 is the line number with a match. Currently mc supports only opening the file at this line only using internal viewer, would be nice to support with external pagers as well.
For example I'm using neovim/vim as a pager, it has a plugin (and I hope will be in the core sometime soon) - https://github.com/kopischke/vim-fetch
See the issue in NeoVim? - https://github.com/neovim/neovim/issues/1281
Change History
comment:1 in reply to: ↑ description Changed 7 years ago by andrew_b
Note: See
TracTickets for help on using
tickets.
Replying to akochkov:
Not only.
This is already done for years.
Right now you can add nvim to /usr/share/mc/mc.lib, section "[External editor or viewer parameters]" and it should work.