mirror of
https://github.com/jarun/nnn.git
synced 2024-11-27 05:11:30 +00:00
Updated Live previews (markdown)
parent
9ae79b696e
commit
2b31419d0a
|
@ -33,11 +33,12 @@ There are 2 previewer plugins for `nnn`, using various mechanisms to display the
|
|||
- [preview-tabbed](https://github.com/jarun/nnn/blob/master/plugins/preview-tabbed): the preview window is a [tabbed](https://tools.suckless.org/tabbed) X window, files are viewed using Xembed capable programs ([mpv](https://mpv.io) for audio/video, [sxiv](https://github.com/muennich/sxiv) for images, [zathura](https://pwmt.org/projects/zathura) for PDF, xterm/urxvt/st + [nuke](https://github.com/jarun/nnn/blob/master/plugins/nuke) plugin text preview for other files)
|
||||
- [preview-tui](https://github.com/jarun/nnn/blob/master/plugins/preview-tui): the preview window is either a tmux pane or a new terminal window or a [kitty](https://sw.kovidgoyal.net/kitty/) pane (needs kitty's `allow_remote_control` option turned on), and files are previewed using tools like tree, less, file, mediainfo, kitty's icat etc. It can also use ranger's scope.sh or pistol. It's a good starting point from where you can build your own customized plugin.
|
||||
|
||||
To run a plugin (e.g. a previewer) when you start `nnn`, use the option `-P`
|
||||
|
||||
**Notes:**
|
||||
|
||||
1. `nnn` does not watch the hovered file and update the path if it's modified while under preview. Press <kbd>Esc</kbd> or click on the entry to update the preview without changing the hovered entry.
|
||||
2. To close the `preview-tui` and `preview-kitty` preview windows, press <kbd>^C</kbd> on the preview window. Run the plugin again if you want to preview.
|
||||
3. To run a plugin (e.g. a previewer) when you start `nnn`, use the option `-P`
|
||||
|
||||
## Custom script configuration example
|
||||
|
||||
|
|
Loading…
Reference in a new issue