Commit graph

71 commits

Author SHA1 Message Date
Doron Behar 92ff1447c0
preview-tui: make scope & pistol run before file (#647)
Both Pistol and `scope.sh` are run `file --mimetype` or an equivalent, internally.
Thus, for speed, it's better to run them before almost anything else.
2020-06-10 13:20:38 +05:30
Mario 7b68844a05
Pistol support (#646) 2020-06-10 06:11:57 +05:30
Mario 9130db3e75
Kitty splits (#643)
* Easier to browse plugin README.md

* Splits are inverted

* trying to fix kitty splits

* Correctly restores the kitty layout

* More clear comments
2020-06-10 05:56:15 +05:30
Mario 5a6078967b
Fixes environmental variables not being passed on preview-tui (#644) 2020-06-10 05:28:35 +05:30
Mario eeb802280d
preview-tui splits are inverted (#642)
* Easier to browse plugin README.md

* Splits are inverted

* $SPLIT clarification and default values for $SPLIT and $TERMINAL
2020-06-09 20:27:28 +05:30
Mario a47d190654
Unified preview-tui and preview-kitty scripts (#634)
* Unified preview-tui and preview-kitty

* Remove preview-kitty

* No need to set $TERMINAL

* fix undeclared variable

* Integrated support for scope.sh

* Review fixes

* allow_remote_control must be enabled on kitty

* Documentation, kitty splits and images fallback

* fix restoring kitty layout
2020-06-09 07:16:35 +05:30
lvgx 2acc7bd324
preview-tui: wait killed previewers (#632) 2020-06-04 08:23:04 +05:30
Arun Prakash Jana 56eea7e195
Fix tmux version check 2020-06-04 03:41:42 +05:30
lvgx 01da467547
preview-tui: simplify, add generic fifo_pager() (#625)
* preview-tui: simplify, add generic fifo_pager()

I've commented new filetype checks for now, as we need to discuss which ones
should be included by default, keeping in mind that this is supposed to be a
minimal, adaptable plugin.

* preview-tui: preview with man, tar, unzip by default
2020-06-02 14:26:50 +05:30
Arun Prakash Jana 5dbb511ede
Keep preview-tui generic 2020-06-02 06:30:07 +05:30
Arun Prakash Jana ca8bc8bf30
Support mime, extension in preview-tui 2020-06-01 19:22:16 +05:30
Arun Prakash Jana f6d9a6b34d
Fix shellcheck 2020-06-01 15:19:34 +05:30
Arun Prakash Jana 9fddd416ca
Simplify preview-tui 2020-06-01 15:17:40 +05:30
Arun Prakash Jana 16356e9d06
Update preview-tui to adapt to terminal size 2020-06-01 14:12:34 +05:30
lvgx 135821aa52
preview-tui: directly call $PAGER on text files (#599) 2020-05-28 05:04:53 +05:30
lvgx bbcd89c8d6
preview-tui: async version using $PAGER to scroll preview (#597) 2020-05-27 23:32:22 +05:30
lvgx adf381acee
Change binary file detection in preview-tui/kitty (#587) 2020-05-22 08:18:00 +05:30
lvgx fcab64263e
preview-tui: ensure 1st hovered file is previewed (#561) 2020-05-06 22:55:14 +05:30
Arun Prakash Jana cfbb8f2117 Uniform plugins 2020-05-06 10:42:50 +05:30
lvgx f438ddc28c
preview-tui: fix tmux behaviour, del refs to nuke (#559)
As reported by @toddyamakawa
2020-05-06 09:54:31 +05:30
lvgx ba51b36931
Add a tmux/xterm based text previewer plugin (#557)
Uses `NNN_FIFO`, minimal dependencies.

Co-authored-by: Todd Yamakawa <todd.yamakawa@arm.com>

Co-authored-by: Todd Yamakawa <todd.yamakawa@arm.com>
2020-05-06 04:38:10 +05:30