Commit graph

616 commits

Author SHA1 Message Date
NRK 9cc4b66868 export NNN_PREFER_SELECTION to all plugins 2023-02-17 19:24:45 +06:00
NRK 8ad5c87107 nmv: prefer selection if -u is active
the rename plugin always asks for "selection vs current" even when -u
flag is active. pass it to the plugin via `NNN_PREFER_SELECTION` so that
there's less distracting prompts.
2023-02-17 19:22:46 +06:00
Fernando Ramos c4c720a59a preview-tui: add chafa and PREFERRED_IMAGE_VIEWER env variable 2023-01-30 08:24:44 +01:00
Arun Prakash Jana 4f95796ede
Run cmd as plugin now supported exported variables 2023-01-28 10:01:46 +05:30
Arun Prakash Jana ad4ecb19cb
Simplify paged and GUI commands run as plugin 2023-01-28 09:16:06 +05:30
Arun 786ecf9fc2
Merge pull request #1571 from KlzXS/plugin_simplification
Simplify the command as plugin codepath
2023-01-28 08:23:24 +05:30
NRK ca8fcf454a plugins/chksum: use exit instead of return
From https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_24:

| The return utility shall cause the shell to stop executing the current
| function or dot script. If the shell is not currently executing a
| function or dot script, the results are unspecified.

Closes: https://github.com/jarun/nnn/issues/1572
2023-01-26 01:21:40 +06:00
KlzXS 827e84a56f
Simplify commands as plugins
Remove restrictions on $nnn

Update the plugin README
2023-01-25 17:33:15 +01:00
Arun Prakash Jana df05f593de Revert "Paging is achieved through shell command now"
This reverts commit 243301603e.
2023-01-16 00:15:54 +05:30
Arun Prakash Jana 243301603e
Paging is achieved through shell command now 2023-01-15 11:46:03 +05:30
Léo Villeveygoux dac5fb0af9 preview-tabbed: warn & prevent running on Wayland 2023-01-07 23:19:28 +01:00
Arun Prakash Jana dd214c50f3
Update plugin docs and examples 2023-01-03 04:37:07 +05:30
Raffaele Mancuso c9b384f009
[kdeconnect] Various improvements (#1551)
- Support multiple devices paired and available at the same time
- Filter out non-regular files
2023-01-02 22:23:47 +05:30
8B411 a51437ff16
Miscellaneous improvements to nmount plugin (#1547)
* plugins/nmount: keep `while` & `do` on one line for consistency

* plugins/nmount: sync only that device, which user wants to unmount

* plugins/nmount: replace all instances of `$dev` with `/dev/$dev`

* plugins/nmount: add `--no-user-interaction` option to `udisksctl`

Otherwise the user will be asked for authentication each time he wants
to unmount, say, HDD, since `udisksctl` will try to power it off.

* plugins/nmount: try to mount only existing block devices

* plugins/nmount: do not invoke `lsblk` immediately after mounting

Sometimes `lsblk` fails to provide mountpoint in such a short time frame.

* plugins/nmount: simplify pipe

* plugins/nmount: keep `echo` arguments in a single pair of quotes

* plugins/nmount: report mountpoint only if mounting was successful
2022-12-21 23:14:28 +05:30
Raffaele Mancuso 1b5cfbca3d
kdeconnect: misc improvements (#1543)
- Work with multiple connected devices by sending files to the first
  device
- Support multi-files selection
- Support sending hovered file in case no file is selected

Co-authored-by: NRK <nrk@disroot.org>
Co-authored-by: Arun Prakash Jana <engineerarun@gmail.com>
2022-12-18 21:29:52 +05:30
Arun Prakash Jana 0c234060bf
Add correct check for Wayland in clipboard plugins 2022-11-26 09:33:59 +05:30
Arun Prakash Jana 1de825b5bb
Fix #1529: fix improper piping 2022-11-25 19:48:45 +05:30
Darukutsu 4bb7ffcd4a
plugins/upload: handle selection using ffsend 2022-11-18 21:17:02 +05:30
NRK f13b527a93 plugins/wallpaper: update description 2022-11-02 05:27:57 +06:00
NRK 83c4c880cc plugins/wallpaper: fix indentation 2022-11-01 23:03:14 +06:00
daru e7abf87c54
Update wallpaper 2022-11-01 17:05:57 +01:00
Darukutsu e80ba2e44a fix plugins/wallpaper support for wayland 2022-11-01 16:40:25 +01:00
nblock b511506fa3
imgview: handle arguments as strings (#1509)
* imgview: handle arguments as strings

Avoids the following synax errors:
line 34: [: : integer expression expected
line 49: [: : integer expression expected

* imgview: use meaningful strings as arguments

Co-authored-by: Florian Preinstorfer <florian@nblock.org>
Co-authored-by: Luuk van Baal <luukvbaal@gmail.com>
2022-10-21 14:16:06 +02:00
NRK b00700ce4d fix nsxiv upstream link
main repo is hosted on codeberg, github is only a mirror.
2022-10-11 22:00:42 +06:00
Christian Rackerseder c24ede2d4a
Fix #1486: update macOS instructions for chksum plugin 2022-09-19 20:10:51 +05:30
Arun Prakash Jana 0907895865
Add macOS instruction 2022-09-17 21:43:46 +05:30
Luuk van Baal 95e1d56ee4
Preview-tui fix image_preview stdout 2022-08-07 16:40:12 +02:00
Arun Prakash Jana a335f94d05
Update docs 2022-08-06 11:23:10 +05:30
Arun Prakash Jana f530b2ca18
Let ffmpegthumbnailer use embedded image metadata 2022-07-30 21:44:00 +05:30
Arun Prakash Jana ab0dc52c49
Add example to quick find in subtree and nuke 2022-07-24 16:20:54 +05:30
Luuk van Baal 3fb9cc1e5a
Preview-tui improvements 2022-07-22 10:49:13 +02:00
Arun Prakash Jana b0580905f2
Add Makefile target shellcheck 2022-07-18 18:28:16 +05:30
Jie a7f243beed
Update plugin name in Configuration section
As the plugin was renamed from 'mocplay' to 'mocq' in 4dcefcc4d4
2022-07-08 23:25:40 +08:00
happy wang dc2cfe78cd
add z.lua to autojump 2022-06-30 22:26:12 +05:30
Luuk van Baal 0ab9189bc5
Account for ueberzug offset in preview-tui 2022-06-29 12:33:11 +02:00
Luuk van Baal 3e84c275ba
Scale up kitty previews 2022-06-28 12:43:35 +02:00
Arun Prakash Jana 6c197f5f02
Update plugin doc 2022-06-16 23:40:05 +05:30
Arun Prakash Jana de004d944e
Fix #1385: document internal files in 'plugins' dir 2022-06-10 21:00:06 +05:30
luukvbaal ed7afd2dd1
Improve preview-tui kitty documentation 2022-05-23 17:25:19 +02:00
cain-dev b3f16e7671
Reference dependency needed for kitty preview 2022-05-13 16:41:42 -03:00
Arun Prakash Jana 18a6a010cf
Fix #1355: interpret suffix $nnn when paging 2022-05-10 19:46:19 +05:30
Patrick 4ddd048feb
.cbcp plugin: output a more useful error message 2022-04-30 14:44:11 +05:30
JingMatrix 5bc75ef4fd Allow gsconnect to handle multiple devices
When gsconnect is connected to multiple devices, the original
script won't work. Now the code will share files to all devices.
2022-04-09 11:42:31 +02:00
Arun Prakash Jana 88e9122c79
opener improvements
- show file name
- open hovered if none selected
- open and exit if only one file selected
- code improvements
2022-04-01 09:00:51 +05:30
Arun Prakash Jana 5745597fd5
Fix #1333: plugin openall to open selection 2022-03-31 19:29:30 +05:30
JingMatrix 0a59005acd Preview for djvu files 2022-03-25 17:21:11 +01:00
Arun 136549b1ba
Merge pull request #1321 from N-R-K/preview_tui_debug
preview-tui: make debugging easier
2022-03-10 22:52:46 +05:30
NRK c3534bd7e0 preview-tui: make debugging easier
i've noticed that there's a non-trival amount of issues user face
related to preview-tui. allowing all the null redirection to be easily
switched on/off can make debugging much easier, both for the users and
for us.
2022-03-09 01:48:13 +06:00
Arun Prakash Jana 57d212c3ca
Fix entry order 2022-02-27 02:06:24 +05:30
Arun b718d6d305
Merge pull request #1314 from Darukutsu/master
Added a user-script/plugin to send selected files using GSConnect.
2022-02-23 21:11:22 +05:30