Commit graph

41 commits

Author SHA1 Message Date
NRK 39a3cc5309 add nsxiv support to nuke, preview-tabbed and imgview
`nuke` and `preview-tabbed` works as expected. I would assume `imgview`
should work as expected as well since `nsxiv` (at the moment at least)
is a drop-in replacement for sxiv, but I haven't tested it.

Closes: https://github.com/jarun/nnn/issues/1229
2021-11-10 22:46:45 +06:00
NRK 5e6c62cd8e nuke: port sxiv-rifle performance improvement over
this commit is mostly porting over some recent performance improvements
from `sxiv-rifle`: https://github.com/ranger/ranger/pull/2411

there's one "bug-fix" in this commit. currently a file named "afilejpeg"
would be matched due to the `-iregex` in listimages. this commit changes
that so only extensions would match, so for example "afile.jpeg" would
match but not "afilejpeg".

As for performance, there's a couple things this commit does:

* store the result of listimages into a tmp file instead of calling that
  function twice, this is probably the biggest performance improvement.
  especially when loading large directories.

* abspath now sets the var abs_target instead of calling printf. since
  abspath is only called from load_dir, we can go one step further and
  inline it. but i haven't done that since the function might be useful
  later on.

* avoid call to dirname and use parameter subsitution instead inside
  `listimages`

* use grep instead of `-iregex`, it's POSIX compliant and can be faster.

i've tested this out with sxiv and everything seems to be working as
expected.
2021-11-02 10:13:45 +06:00
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 53e98a9fd1
Minor changes to nuke 2021-05-22 08:34:59 +05:30
Arun Prakash Jana 79cbcc18e1
Update nuke to use mocq 2021-05-16 02:46:17 +05:30
Arun Prakash Jana 5e8ef070dc
Sanitize in-plugin documentation 2021-05-15 23:02:01 +05:30
Arun Prakash Jana f343f315b5
Replace which with builtin type in plugins 2021-05-14 17:33:28 +05:30
akimdi 5f67acd8b8
added ico format to nuke plugin 2021-04-20 04:01:44 +03:00
akim 534aa355a1 added support svg format 2021-04-07 19:31:53 +03:00
Arun Prakash Jana 2f6046e6da
Use short options 2021-03-21 19:33:43 +05:30
kyechou f1ea3e3ceb
Fix the same issue as #81 but with nuke 2020-12-15 14:17:03 -06:00
tchici ea81864e03
nuke plugin: use $VISUAL environment variable
falls back to previous behavior if $VISUAL is not set ($EDITOR then vi)
2020-11-22 15:54:02 +00:00
Gregory Anders 1afdd48f5d
nuke: use macOS open when GUI enabled (#705)
* nuke: use macOS open when GUI enabled

* nuke: use is_mac function to test for macOS

This is consistent with how the imgur plugin does detection.

* Add macOS open command to plugins

* pskill: only execute if input is non-empty
2020-08-20 14:51:26 +05:30
CodeforEvolution 6f9571a805 Haiku: General fixup, add icon, add rdef file
- Add a native vector icon for Haiku (it hasn't been Haiku-ified yet however)
- Add a rdef file (specifies application metadata)
- Add clipboard support, notififcation support, and basic nuke support
- Fix support for fortunes on Haiku ("-s" option is not available on Haiku)
- Cleanup Haiku recipe
2020-08-09 22:19:51 -05:00
akimdi 6548a0fa7c
added support webp format (#652)
* added support webp format

* update nuke plugin with support webp format
2020-06-16 19:08:46 +05:30
Arun Prakash Jana 0f67e1ff7d
support imv in imgview and nuke 2020-06-11 01:49:40 +05:30
basbebe 3feae709ac
also send mutool to $PAGER (#615) 2020-05-30 18:48:12 +05:30
SZ Lin (林上智) b6762e292c
Fix typos (#595)
This is a trial patch to fix the typos

Signed-off-by: SZ Lin (林上智) <szlin@debian.org>
2020-05-26 09:34:11 +05:30
Arun Prakash Jana 5ea6bc338b
Late handle blocked mimes 2020-05-17 00:46:49 +05:30
Arun Prakash Jana 7718936737
Block data type 2020-05-10 02:18:02 +05:30
Krisan Alifari d549ae7486
Add nvim as a diff tool for getplugs plugin (#527)
* Add nvim as a diff tool for getplugs plugin

* Comment out `is_cmd_exists()`

* Add nvim diff tool for diffs plugin

* Add $EDITOR to nuke plugin for editing/reading text file format

* Modify diff command to fix CircleCI failures

* Fix getplugs prompt

* Allow nuke to use custom $PAGER
2020-04-20 22:19:35 +05:30
lvgx 7cc46510e3
nuke: add lowdown as alternative markdown viewer (#524)
See https://kristaps.bsd.lv/lowdown/
2020-04-17 08:11:08 +05:30
Arun Prakash Jana b8a973a91a
Update plugins to support some env vars 2020-03-16 07:13:35 +05:30
Arun Prakash Jana 4aa12a2dfb
sxiv: load dir along with file 2020-03-03 06:16:52 +05:30
Arun Prakash Jana ae1d656a27
Update help, check for mocp before using mocplay 2020-02-25 21:37:52 +05:30
Arun Prakash Jana d442346755
Update mocplay to understand opener calls 2020-02-23 15:29:21 +05:30
Arun Prakash Jana 5f419dc603
Fix doc 2020-02-23 10:36:32 +05:30
Arun Prakash Jana f6e814e364
nuke: open log files in vi 2020-02-19 20:22:00 +05:30
Arun Prakash Jana b0ba197555
Do not play dat by extension 2020-02-14 22:37:47 +05:30
Arun Prakash Jana 3532d6c3ab
Play known video file types by extension 2020-02-12 07:05:41 +05:30
Arun Prakash Jana d224016011
nuke: add glow to preview markdown 2020-01-22 23:20:31 +05:30
Arun Prakash Jana 64667b377d
Options -e and -t
Replaces the following environment variables:
- NNN_USE_EDITOR
- NNN_IDLE_TIMEOUT
2020-01-17 19:37:57 +05:30
Arun Prakash Jana 99d15815f0
Use : for filter case 2020-01-11 21:49:35 +05:30
Arun Prakash Jana 274c612076
Refactor PDF handling, add rtorrent, man pages 2020-01-11 20:20:20 +05:30
Arun Prakash Jana 490359f853
nuke: open manpages, reload dir after dot 2020-01-11 18:23:46 +05:30
Arun Prakash Jana 55e4e938d0
Handle more audio types by file extension 2019-12-22 02:06:20 +05:30
Arun Prakash Jana 9f7ae0e86a
nuke: guard against opening risky file types 2019-12-20 21:49:03 +05:30
Arun Prakash Jana 2886abc90c
Fix opening image with sxiv 2019-12-13 08:33:02 +05:30
Arun Prakash Jana d5512462af
Move nlaunch to plugins as launch 2019-12-09 00:34:53 +05:30
Arun Prakash Jana 77ebfff98b
Rename opener nplay to nuke 2019-12-08 20:27:06 +05:30
Renamed from plugins/nplay (Browse further)