Commit Graph

499 Commits

Author SHA1 Message Date
Arun Prakash Jana 30ee27802e
plugin cleanfilename -> fixname, unmount-parent -> umounttree 2021-05-27 19:19:51 +05:30
Arun Prakash Jana 53e98a9fd1
Minor changes to nuke 2021-05-22 08:34:59 +05:30
Luuk van Baal b89c32b9fa
Preview-tui fix winch_handler 2021-05-19 04:48:03 +05:30
Luuk van Baal d64242aec3 Preview-tui fixes 2021-05-18 00:19:41 +02:00
Piña Colada 9a949b7c33
Merge pull request #1017 from luukvbaal/cmusq
Exit cmusq when missing
2021-05-17 08:57:07 +05:30
Luuk van Baal 88eb45944c Exit cmusq when missing 2021-05-16 23:39:10 +02:00
Piña Colada 8a36196e98
Merge pull request #1016 from luukvbaal/preview-tui
Hide terminated message in preview-tui
2021-05-17 02:28:40 +05:30
Luuk van Baal 8eced6c5d4 Hide terminated message in preview-tui 2021-05-16 22:56:47 +02:00
Arun Prakash Jana cbc4587630
Fix nnn.vim #82: support picker plugins
Plugins like fzopen have the capability to pick files.
This comes handy if nnn is executing as a file picker.

This is a 2-way communication:

- nnn sends the picker output file to plugin ("-" for stdout)
- the plugin tells nnn if it has overwritten the output file
2021-05-17 01:11:35 +05:30
Piña Colada 715abc7a3f
Merge pull request #1015 from luukvbaal/preview-tui
Fix preview-tui zombie pager
2021-05-16 16:47:40 +05:30
Luuk van Baal 5cc98987c5 Fix preview-tui zombie pager 2021-05-16 13:02:12 +02:00
Piña Colada a95ed82f60
Merge pull request #1013 from luukvbaal/preview-tui
Preview-tui cleanup
2021-05-16 08:46:30 +05:30
Luuk van Baal 5fba2ba749 Preview-tui cleanup 2021-05-16 02:11:05 +02:00
Arun Prakash Jana 79cbcc18e1
Update nuke to use mocq 2021-05-16 02:46:17 +05:30
Piña Colada db240eeeda
Merge pull request #1011 from luukvbaal/cmusq
Wait until cmus is ready and fix fzplug preview command
2021-05-16 02:02:28 +05:30
Luuk van Baal f7e84bed70 Wait until cmus is ready and fix fzplug preview command 2021-05-15 22:24:40 +02:00
Arun Prakash Jana 7bbacd0f0d
Minor edits 2021-05-16 01:49:52 +05:30
Arun Prakash Jana 4dcefcc4d4
Rename plugin mocplay to mocq 2021-05-16 00:25:47 +05:30
Kabouik 69d63ff50e
Add plugin cmusq (#1010)
* Fix conflict with #1006

* Queue/play in cmus player

* Remove leftover comments

* start_cmus function, optional xdotool dependency, better process waiting

* start_cmus function, better process waiting, optional xdotool dep

* Merge conflicts

* Better reporting of past actions

* Discriminate newly started queue and existing queue

* Harmonize descriptions, rename cmusqueue to cmusq, clean cmusq code

* Remove cmusqueue

* Exit if cmus missing and style changes

Co-authored-by: luukvbaal <31730729+luukvbaal@users.noreply.github.com>
2021-05-16 00:15:48 +05:30
Arun Prakash Jana 5e8ef070dc
Sanitize in-plugin documentation 2021-05-15 23:02:01 +05:30
Arun Prakash Jana 24080569b8
Chnage tabs to spaces 2021-05-15 06:57:20 +05:30
luukvbaal bb37c9dd46
If/else to case in preview-tui (#1009)
* If/else to case in preview-tui

* Fix conflict between #1004 #1006
2021-05-14 22:46:30 +05:30
Kabouik b14d2311e6
More minimal bat previews, minor improvements to fzplug (#1004)
* More minimal bat previews, minor improvements to fzplug

* Use BAT_STYLE if set, better fzplug formatting

* Fix linebreak in single quotes

* Fix line numbers in comments

* Readability and shellcheck warning

* Fix line numbers in comments

* Breaking typo

* Pre-existing BAT_STYLE would not be honored in tmux
2021-05-14 19:59:43 +05:30
Arun Prakash Jana 7a76ca8548
Remove unnecessary redirection 2021-05-14 18:45:09 +05:30
Arun Prakash Jana f343f315b5
Replace which with builtin type in plugins 2021-05-14 17:33:28 +05:30
Piña Colada 2ca11a34e7
Merge pull request #1006 from luukvbaal/preview-tui
Kill kitty icat in preview-tui
2021-05-14 07:52:54 +05:30
Piña Colada d83acda68b
Merge pull request #1005 from luukvbaal/icons
Fix .iconlookup typo
2021-05-14 07:45:36 +05:30
Luuk van Baal 9560a91f97 Kill kitty icat in preview-tui 2021-05-14 03:30:27 +02:00
Luuk van Baal 2edf59fef1 Fix .iconlookup typo 2021-05-14 02:08:45 +02:00
lawnowner 9cbb7f540c
Add the xdgdefault plugin (#1003) 2021-05-13 16:13:21 +05:30
Luuk van Baal 16b2f40ffe Add chess/haskell icons to .iconlookup 2021-05-13 01:20:27 +02:00
Luuk van Baal d73569be73 preview-tui: fix preview dir 2021-05-02 00:54:42 +02:00
Luuk van Baal 65e306feec preview-tui: fix cleanup/resize 2021-05-01 18:12:13 +02:00
luukvbaal 74785069e0
preview-tui: kitty gif/pager fallback (#981)
* preview-tui: kitty gif/pager fallback

* preview-tui: test QUICKLOOK and return
2021-05-01 21:13:24 +05:30
KlzXS 002758063e
Update .nmv 2021-05-01 06:23:39 +05:30
Kabouik c2aeb51bcc
[Plugins] Fuzzy find plugins and run them; unmount mountpoints from their subfolders (#977)
* Fuzzy find plugins and run them

* Hide find warning when $otherplugins is not set

* Fix prompt on error 2

* Use /home/mathieu

* unmount-parent plugin

* Add dependencies and shell description

* Add dependencies and fix CI issue?

* Improve fzfplug prompt, fix shellcheck warnings, restore mistakenly deleted line in README

* Typo

* Make both scripts POSIX-compliant and small improvements

* Final cosmetic changes

* bis

* Clarify description

* Typo

* Typo

* Better support for custom dirs and use bat if available

Co-authored-by: M <>
2021-05-01 06:23:33 +05:30
luukvbaal 5ed2998023
preview-tui: update prompts (#980) 2021-04-30 18:59:11 +05:30
Arun Prakash Jana e8bebac168
Remove unavailable option 2021-04-29 09:25:56 +05:30
Luuk van Baal 7a7fd5fcab preview-tui: ls flags 2021-04-27 21:37:18 +02:00
luukvbaal 4ebc396250
preview-tui: restore tree view (#972) 2021-04-28 00:58:38 +05:30
luukvbaal d998943119
preview-tui: error to foreground (#970)
* preview-tui: error to foreground

* preview-tui: test KITTY_LISTEN_ON
2021-04-27 11:56:52 +05:30
luukvbaal b97e2d02ea
preview-tui: reformat toggle (#966) 2021-04-26 20:51:52 +05:30
akimdi c673840d5d
added flag -f for big files 2021-04-24 20:55:21 +03:00
Piña Colada b0a985bca8
Merge pull request #963 from luukvbaal/preview-tui
preview-tui: reformat QuickLook
2021-04-24 04:28:21 +05:30
Luuk van Baal cbbefe805a preview-tui: reformat QuickLook 2021-04-24 00:36:05 +02:00
Arun Prakash Jana 4648a56178
Add QuickLook to description 2021-04-23 04:07:26 +05:30
Luuk van Baal 15031f7d9e preview-tui: close previewer 2021-04-22 21:45:23 +02:00
Luuk van Baal 77640a6434 preview-tui: add QuickLook support 2021-04-22 14:15:42 +02:00
Luuk van Baal ec3f754192 preview-tui-ext: reformat archive preview 2021-04-21 16:39:15 +02:00
Piña Colada 47a779b1bf
Merge pull request #955 from rck/master
preview-tui-ext: use atool for rpm/deb
2021-04-21 18:17:13 +05:30
luukvbaal 48898eeb8b
preview-tui: directory preview/iconlookup (#954)
* preview-tui: directory preview/iconlookup

* preview-tui-ext: NNN_ARCHIVE note
2021-04-21 18:14:38 +05:30
Roland Kammerer 5c1c732fb7 preview-tui-ext: use atool for rpm/deb
atool does good job in previewing the content of deb/rpm files, use it.
2021-04-21 11:41:58 +02:00
akimdi 5f67acd8b8
added ico format to nuke plugin 2021-04-20 04:01:44 +03:00
akimdi 794048b306
added ico format to imgview plugin 2021-04-20 04:00:30 +03:00
Luuk van Baal 14350b94a8 preview-tui-ext: pass env 2021-04-18 12:58:50 +02:00
Arun Prakash Jana 430833326b
Minor plugin update 2021-04-17 19:25:07 +05:30
Luuk van Baal 710e621735 more icon changes 2021-04-09 14:10:12 +02:00
Luuk van Baal eb98b9076b restore indicators 2021-04-09 12:25:29 +02:00
Luuk van Baal a5a1c7b82c nerdicon/preview fixes 2021-04-09 12:13:32 +02:00
akim 534aa355a1 added support svg format 2021-04-07 19:31:53 +03:00
Luuk van Baal c3a472a7e2 .iconlookup: refactor 2021-04-01 16:17:46 +02:00
Luuk van Baal 9fcdf78643 .iconlookup: shebang to env sh 2021-03-30 17:49:31 +02:00
luukvbaal 5cf723fbe4
preview-tui-ext: match nnn directory preview (#927)
* preview-tui-ext: add optional dependency iconlookup

* new plugin: .iconlookup
2021-03-30 20:55:56 +05:30
Yuri Kloubakov 1a0c9d0c90 Truncate the name, add comments. 2021-03-29 21:29:03 -04:00
exoton 42aa97b112
Add new plugin (#928)
* Add new plugin

* Small cdpath refactoring

* Change the default CDPATH value, remove string indexing.

* Remove readlink() call to be POSIX compliant.

* Fix the comment
2021-03-29 08:09:42 +05:30
Arun Prakash Jana 603c1580e8
Set correct plugin language 2021-03-28 01:51:43 +05:30
Arun Prakash Jana 6dfea38999
Update readme 2021-03-28 01:46:07 +05:30
Arun Prakash Jana 8542f5bc33
Use better pipe check 2021-03-28 00:59:23 +05:30
Benawi Adha 0f4dfee6c6
plugins: cleanfilename: sh->bash and added support for cleaning newline (#923)
* plugins: cleanfilename: sh->bash and added support for cleaning newline

* plugins: cleanfilename: sh->bash and added support for cleaning newline
2021-03-27 19:36:17 +05:30
Arun Prakash Jana 37fbed2fb7
Fix plugin readme table 2021-03-27 19:34:41 +05:30
Arun Prakash Jana 7f5dbd11e3
Fix #917: enhance plugin framework to clear sel on request
With this enhancement, plugins which operate on selection
can explicitly request the program to clear the selection.
2021-03-27 17:12:21 +05:30
Benawi Adha b0aa1fe379
plugins: cleanfilename: fixed to not overwrite existing file (#916)
* plugins: cleanfilename: fixed to not overwrite existing file

* plugins: cleanfilename: fixed to not overwrite existing file
2021-03-26 01:06:25 +05:30
Arun Prakash Jana f602cbee07
Reorder table alphabetically 2021-03-25 01:11:10 +05:30
Benawi Adha f176d81ea0
plugin: verbosepaste: gives copy-paste verbose progress percentage (#914)
* plugin: verbosepaste: gives copy-paste verbose progress percentage

* plugin: verbosepaste: gives copy-paste verbose progress percentage
2021-03-24 17:39:08 +05:30
Benawi Adha c61a716e11
plugin: cleanfilename: clean filename to be more shell-friendly (#913)
* plugins: cleanfilename: clean filename to be more shell-friendly

* plugins: cleanfilename: clean filename to be more shell-friendly

* plugins: cleanfilename: clean filename to be more shell-friendly

* plugins: cleanfilename: clean filename to be more shell-friendly

* plugins: cleanfilename: clean filename to be more shell-friendly
2021-03-24 14:51:38 +05:30
luukvbaal f90e567a17
cache and constraint preview dimensions (#910)
* cache and constraint preview dimensions

* cache subdirectory

* optional caching

* revert to ext for pdf/epub
2021-03-24 06:43:18 +05:30
Benawi Adha 638676a689
plugins: mtpmount: toggle mount of MTP devices (#909)
* plugins: mtpmount: toggle mount of MTP devices

* plugins: mtpmount: added some quotes

* plugins: mtpmount: toggle mount of MTP devices

* plugins: mtpmount: toggle mount of MTP devices

* plugins: mtpmount: toggle mount of MTP devices

* plugins: mtpmount: toggle mount of MTP devices
2021-03-23 19:42:10 +05:30
luukvbaal e0822fdef4
fill preview-tui preview (#907)
* fill preview pane

* add xcf preview and fix formatting

* test which convert

* restore -bL
2021-03-22 06:24:29 +05:30
Arun Prakash Jana 2f6046e6da
Use short options 2021-03-21 19:33:43 +05:30
luukvbaal 73a54e7550
preview-tui-ext ffmpegthumbnailer fallback (#906) 2021-03-21 18:53:56 +05:30
luukvbaal bc59961d98
preview-tui-ext jpg previews (#905)
* switch to jpg previews

* add ueberzug scaler
2021-03-21 15:59:44 +05:30
luukvbaal 9544eb91d2
generate_preview fallback (#904) 2021-03-21 09:19:19 +05:30
luukvbaal bebad983ca
fix fontpreview (#903) 2021-03-21 07:59:06 +05:30
luukvbaal ac29a7c166
preview-tui fixes (#900)
* redraw preview on resize

* fix stray preview pane after exit

* restore cleanup

* fix image bin info fallback
2021-03-21 07:11:14 +05:30
Arun Prakash Jana 2fc61a8f48
Add more previewers 2021-03-21 00:01:46 +05:30
Arun Prakash Jana 4a45e45b30
Add bsdtar for archives, w3m for html 2021-03-20 23:36:24 +05:30
luukvbaal fdf40df5e9
replace preview-tui demo (#898) 2021-03-20 15:14:18 +05:30
luukvbaal 2e4aca5e6b
preview-tui(-ext) subshell job control (#891)
* subshell job control

* remove unnecessary kill

* Update docs

* update PAGER and tree command

* restore clear
2021-03-20 06:28:46 +05:30
Arun Prakash Jana a88bbe1a9c
Use earlier asciicast in plugins readme. 2021-03-20 06:26:14 +05:30
Luuk van Baal 77cde578e0 preview-tui demo 2021-03-19 22:08:10 +01:00
Arun Prakash Jana 5f0b3b74d0
Fix #889: clear selection if plugin doesn't send data 2021-03-19 00:00:37 +05:30
Arun Prakash Jana 2dccb94f3f Revert "Favor selection over current for nmv"
This reverts commit c9c1d0d454.
2021-03-17 22:19:01 +05:30
Luuk van Baal 7527125487 cleanup fifo 2021-03-14 15:28:50 +01:00
Arun Prakash Jana 519ea8347e
Update docs 2021-03-14 16:23:46 +05:30
Arun Prakash Jana bd95763c7a
Fix shellcheck report 2021-03-14 12:59:24 +05:30
luukvbaal ac72d2c66e
Fix preview-tui-ext and ueberzug support for preview-tui (#875)
* fix preview-tui-ext

* add ueberzug to preview-tui

* abolish config variables

* kitty
2021-03-14 12:23:03 +05:30
Arun Prakash Jana e8577baab2
Fix #876: fzcd - go to dir and select file 2021-03-14 12:19:40 +05:30
luukvbaal 1571ea2b35
preview-tui improvements (#869)
* Update preview-tui

* trap SIGWINCH

* Update preview-tui

fix CircleCI test

* fix CircleCI...

* add pdf/epub

forgot to add pdf/epub when adpating my own working script to the upstream version

* add USE tests

* add office preview

allows preview of ods, odt, docx, pptx, etc

* remove resize trap, show static gif

Removed the faulty resize code and show static gif when USE_GIFPREVIEW is not set.

* loop gif playback

* refactor imagepreview

* scale kitty preview

* fix ueberzug_remove regression

* add optional atool support

* single depth, colorized tree preview

also empty pager prompt

* atool optional

* window resize working

* USE_UEBERZUG check

* conditional trap

I can't fully explain the behavior I'm seeing but this seems to work as its supposed to.

* adopt TMPDIR

* prevent extra readline after window resize

* shellcheck fix

* clear preview pane after resize

prevents (seemingly random) pager previews from showing after resize

* fix stray fifo from subshells

* add preview-tui-ext
2021-03-13 16:52:51 +05:30
KlzXS c9c1d0d454
Favor selection over current for nmv 2021-02-16 21:46:56 +00:00
Lucas Summers 8a12c01da4 fixed shellcheck errors for plugins/preview-tui 2021-02-09 10:32:32 -08:00