Commit graph

607 commits

Author SHA1 Message Date
Jakob Beckmann 7f84fbc8a0
Added theme support for bat in preview-tui plugin (#1141) 2021-09-09 18:02:06 +05:30
Arun Prakash Jana fa7cef2df7
The shell interprets "$nnn" now 2021-09-05 18:19:30 +05:30
Assaf Ben-Amitai d34741107a
fix jump cd to use seperate params (#1156) 2021-09-05 05:20:31 +05:30
Assaf Ben-Amitai 7de52ff890
plugin autojump: on jump - read entire line (#1155) 2021-09-05 02:01:41 +05:30
Luan Belem Rivello f9cf6dad48
Fix kitty listen_on example 2021-08-28 20:14:35 -03:00
Arun Prakash Jana c974690482
Fix build break 2021-08-25 20:14:55 +05:30
joelazar dba6eeb431 fix fzhist plugin - get fish_history from the right place 2021-08-25 10:36:10 +02:00
luukvbaal ad6b6bd3df
Icon changes .iconlookup (#1136) 2021-08-18 23:16:29 +05:30
CantoroMC 43da9a9c46
icon for zsh, nix, and matlab files(nerdfonts), lua color to lua file (#1132)
* icon for nix and matlab files(nerdfonts), lua color to lua file

* Update .iconlookup

* Update icons-nerdfont.h

* Update icons.h

Co-authored-by: luukvbaal <31730729+luukvbaal@users.noreply.github.com>
2021-08-17 20:41:42 +02:00
Arun Prakash Jana 46294e9f3d
Add bookmarks directory support 2021-08-16 20:16:56 +05:30
Luuk van Baal b5750c9e38 Fix finder typo 2021-08-16 12:47:02 +02:00
Luuk van Baal b7c6fede5f
Add finder history/bookmarks 2021-08-15 22:07:20 +05:30
NRK f3c29fe81a xdgdefault: make dmenu case-insensitive, fix style
Most *.desktop entries have same name as their application name so this
is not an issue most of the time. However in the case of Neovim, the
application name is "Neovim" while the desktop entry is "nvim.desktop"

Since dmenu is case sensitive by default this means that searching
"neovim" will not show any results since the N is not capitalized and
the desktop entry name is "nvim"

fzf doesn't have this issue since its case-insensitive/fuzzy by
default. Making dmenu case-insensitive solves this.

Also fix the indentation to be consistent with the rest of the script.
2021-07-28 12:30:30 +06:00
N-R-K 3a98dfb0b0
xdgdefault plugin: add dmenu support (#1112)
* xdgdefault plugin: add dmenu support

use fzf if available. otherwise, if available, use dmenu.
should be possible to use rofi as well, but i don't use rofi nor do i
have it installed for testing.

* xdgdefault plugin: add GUI flag

* update xdgdefault requirement
2021-07-23 17:06:19 +05:30
Arun Prakash Jana 0150c69844
Update plugin docs 2021-07-22 20:11:07 +05:30
Arun Prakash Jana b561772ada
Remove dated documentation 2021-07-21 23:43:59 +05:30
Arun Prakash Jana 14663b964b
Add option to specify arguments to exec 2021-07-21 11:54:40 +05:30
Jonathan Rash 4b4355c733
Added execute fallback to nuke 2021-07-21 10:28:33 +05:30
Arun Prakash Jana 6f14190e6d
Plugin suedit - preserve environment 2021-07-17 22:00:38 +05:30
Arun Prakash Jana d54bc230f6
fzopen - add option to open files in nuke 2021-07-17 21:04:53 +05:30
Arun Prakash Jana e31f71285d
Merge plugin fzz into autojump 2021-07-17 20:02:22 +05:30
Luuk van Baal 4abced6142 Allow tmux inside kitty without KITTY_LISTEN_ON set 2021-07-05 15:40:18 +02:00
Luuk van Baal fe07ae35f2 Imgview fix ucollage directory 2021-07-01 11:24:49 +02:00
Luuk van Baal a199156cae Imgview hovered image/thumbnail dir 2021-07-01 02:26:47 +02:00
Toni Jarjour 1607200a75
Make sxiv play gifs automatically 2021-06-27 11:11:39 -04:00
KlzXS 20e0c49292
Replace fd dependency with find (#1078) 2021-06-21 04:59:50 +05:30
Kevin Sjöberg 8fc18fb9d6 Remove opinionated options 2021-06-11 15:48:29 +02:00
Kevin Sjöberg f443768260
Support opening regular text files on macOS 2021-06-11 15:35:03 +05:30
Arun Prakash Jana 46b48cf71c
Update examples 2021-06-07 01:18:34 +05:30
Arun Prakash Jana 6d2d901a91
Update docs 2021-06-06 23:35:15 +05:30
Arun Prakash Jana 51ac3d02c9
Remove redundant examples 2021-06-06 22:16:24 +05:30
Arun Prakash Jana 15eed29227
NNN_PLUG: use | to page run-and-exit cmd output 2021-06-06 21:51:30 +05:30
Arun Prakash Jana 3b6938f782
Fix alignment 2021-06-06 18:58:13 +05:30
Arun Prakash Jana f24b82a750
NNN_PLUG: use & as run-gui-cmd-as-plugin symbol (earlier |) 2021-06-06 18:48:14 +05:30
Arun Prakash Jana 9de941306c
NNN_PLUG: use ! as run-cmd-as-plugin symbol (earlier _) 2021-06-06 18:37:49 +05:30
Arun Prakash Jana 5e34181bb3
Add another useful plugin example 2021-06-06 17:35:05 +05:30
Arun Prakash Jana d87414eb61
Plugin fzcd - decouple from selection 2021-06-06 17:07:23 +05:30
Arun Prakash Jana 488fe6b941
Plugin cleanup 2: one-liners with paged output
- remove `mediainf`
- remove `uidgid`
- remove `hexview`
- remove `pdfview`
2021-06-06 13:56:09 +05:30
Arun Prakash Jana fb6ca79197
Plugin cleanup 1
- rename `wall` to `wallpaper`
- remove `upgrade` - packaging is on OBS now
- remove `treeview` - needs minor preview-tui tweak
- remove `picker` - `nnn -p -` does the same
2021-06-06 10:44:10 +05:30
Luuk van Baal c9c0be32a8 Preview-tui single previewpid file 2021-06-05 00:35:54 +02:00
Luuk van Baal 0fff92b396 Supress pgrep output 2021-06-04 17:04:01 +02:00
Luuk van Baal 5533f152bd Fix preview-tui zombie 2021-06-04 16:43:59 +02:00
Luuk van Baal 99e039d504 Fix preview-tui job control 2021-06-04 04:10:35 +02:00
Luuk van Baal de430efafb Improve imgview plugin 2021-06-03 15:09:20 +02:00
Luuk van Baal 272e47c64a Fix preview-tui jpeg mime 2021-05-31 11:43:51 +02:00
Luuk van Baal e4988f0264 Preview-tui-ext to preview-tui 2021-05-30 23:48:10 +02:00
Piña Colada 6eda83097a
Merge pull request #1032 from luukvbaal/imgplugins
Add ucollage to imgview
2021-05-31 01:12:34 +05:30
Luuk van Baal b6fd7d928c Add ucollage to imgview 2021-05-30 21:33:48 +02:00
Piña Colada 609b6a426a
Merge pull request #1031 from luukvbaal/imgplugins
Merge image plugins
2021-05-31 00:54:57 +05:30
Luuk van Baal 2f9c700537 Merge image plugins 2021-05-30 20:11:54 +02:00
Arun Prakash Jana 6d817a41e3
Update documentation 2021-05-30 23:29:10 +05:30
Arun Prakash Jana 6f29138299
Clear the selection for uniform behaviour 2021-05-29 16:06:42 +05:30
Arun Prakash Jana 85c108a5d6
Decouple variable documentation section 2021-05-29 10:25:21 +05:30
Arun Prakash Jana 4bc8e1a8be
Rename plugin fzdirs to fzcd, retains fzcd features 2021-05-29 01:12:12 +05:30
Arun Prakash Jana a6eeceec55
fzdirs - check if the first entry in path-list exists 2021-05-28 23:46:00 +05:30
Arun Prakash Jana b397606d0a
fzdirs: support default list, default to $PWD 2021-05-28 23:30:29 +05:30
Arun Prakash Jana 462531b8c7
Plugin fzdirs: fuzzy search multiple directories 2021-05-28 19:17:08 +05:30
Arun Prakash Jana 831287c92e
Show number of files selected in local buffer, if any
Even if selection mode is not on, it helps to show
number of files currently selected in local buffer.
Say, after running a plugin selection mode goes off.
However, if the plugin doesn't clear the selection
buffer, the files still remain selected in buffer.
2021-05-27 23:47:59 +05:30
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