Ticket #3862 (closed enhancement: wontfix)

Opened 7 years ago

Last modified 7 years ago

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

Replying to akochkov:

Currently mc supports only opening the file at this line only using internal viewer,

Not only.

would be nice to support with external pagers as well.

This is already done for years.

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

Right now you can add nvim to /usr/share/mc/mc.lib, section "[External editor or viewer parameters]" and it should work.

comment:2 Changed 7 years ago by andrew_b

So?

comment:3 Changed 7 years ago by akochkov

Yes, it works. Sorry, I thought you already closed this bug.

comment:4 Changed 7 years ago by andrew_b

  • Status changed from new to closed
  • Resolution set to wontfix
  • Milestone Future Releases deleted
Note: See TracTickets for help on using tickets.