Commit graph

3535 commits

Author SHA1 Message Date
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 31c34740bc
Fix no file picked with NNN_TMPFILE set and quit with 'q'
If NNN_TMPFILE is exported, the selection buffer gets cleared as it is
combined with `^G` (clear picked files and exit). So even when 'q' is
pressed to quit the program the selection is lost. This was introduced
in commit d1d491c102 after release v2.7.
2021-05-16 03:23:03 +05:30
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
Arun Prakash Jana 513b4f24a6
Optimize loop comparison 2021-05-14 12:38:07 +05:30
Arun Prakash Jana 1fabac27ba
Fix hovered marking on empty directory 2021-05-14 11:55:52 +05:30
Arun Prakash Jana 3316e2acdb
Show du/au details on enabling disk usage mode 2021-05-14 11:38:44 +05:30
Arun Prakash Jana 6222cac4bf
Reduce checks in per-entry print loop 2021-05-14 11:25:38 +05:30
Arun Prakash Jana 177b60e6c2 shellcheck fixes + use the last known good commit 2021-05-14 08:48:05 +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
Arun Prakash Jana d46918946f
Avoid faccessat(..., AT_SYM_NOFOLLOW) with musl libc
See https://www.openwall.com/lists/musl/2014/09/25/1
2021-05-14 02:11:59 +05:30
Arun Prakash Jana d0b4508798
Change debug macro DBGMODE to DEBUG 2021-05-14 00:20:59 +05:30
Arun Prakash Jana 0427f70c4e
netbsd-curses: fix broken statusbar issue
See https://github.com/sabotage-linux/netbsd-curses/issues/46
2021-05-14 00:16:48 +05:30
Arun Prakash Jana bca5763cf7
Selection marks in reverse bold 2021-05-13 19:29:16 +05:30
lawnowner 9cbb7f540c
Add the xdgdefault plugin (#1003) 2021-05-13 16:13:21 +05:30
Piña Colada dd02afc58b
Merge pull request #1002 from luukvbaal/icons
Add chess/haskell icons to .iconlookup
2021-05-13 08:43:17 +05:30
Luuk van Baal 16b2f40ffe Add chess/haskell icons to .iconlookup 2021-05-13 01:20:27 +02:00
Arun Prakash Jana 6b0f308f26
Remove redundant param 2021-05-13 00:37:09 +05:30
Arun Prakash Jana 448a4203bc
Make space for 512TiB in blocks 2021-05-13 00:37:04 +05:30
Arun Prakash Jana 04c38ecf3d
Initialize variable, update musl script 2021-05-12 22:17:44 +05:30
Arun Prakash Jana 1b88062310 Fix script 2021-05-12 21:16:48 +05:30
Piña Colada 9756ce4650
Merge pull request #1001 from CantoroMC/nerdfont
nerdfont support for chess files(pgn,fen) haskell(hs,lhs) files and hpp
2021-05-12 20:00:39 +05:30
Arun Prakash Jana 4a4628e2fc
Remove redundant/unaccessed variable 2021-05-12 19:47:56 +05:30
Piña Colada 375d1057c1
Merge pull request #1000 from KlzXS/plguin_child
Wait for child on plugin invocation
2021-05-12 19:31:38 +05:30
Marco Cantoro d6af0d2ed4 nerdfont support for chess files(pgn,fen) haskell(hs,lhs) files and hpp 2021-05-12 15:44:46 +02:00
KlzXS 56d3f2d976
Wait for child on plugin invocation 2021-05-12 08:50:24 +02:00
Arun Prakash Jana 907616a058
Fix #998: remove ^Space keybind
netbsd-curses sends a NULL (key value 0) following the KEY_RESIZE.
The keybind ^Space also issues a 0. It seems even the key ^@ sends
the same. Dropping this ambiguous keybind in favour of alternative
key m (more appropriate for 'm'ark anyway). Keys with value 0 will
now be ignored in the filter function.
2021-05-12 10:07:29 +05:30
Arun Prakash Jana 1f95c355a9
Fix template 2021-05-11 22:53:37 +05:30
Arun Prakash Jana 9c5214c24a
Compilation script for netbsd-curses + musl libc 2021-05-11 19:06:13 +05:30
Arun Prakash Jana de80bba9db
musl libc: fix run cmd prompt message 2021-05-11 16:47:48 +05:30
Arun Prakash Jana 466d138cc7
Fix #996: select all on 'A' with empty selection 2021-05-11 11:55:39 +05:30
Arun Prakash Jana e4c3f7d739
Use existing buffer to (un)select file names 2021-05-11 03:07:55 +05:30
Arun Prakash Jana 9b6e7e86bc
Fix musl-gcc compile warnings 2021-05-11 00:05:02 +05:30