]>
Sergey Matveev's repositories - nnn.git/log
Fernando Ramos [Sun, 29 Jan 2023 22:37:24 +0000 (23:37 +0100)]
preview-tui: add chafa and PREFERRED_IMAGE_VIEWER env variable
Arun Prakash Jana [Sun, 29 Jan 2023 17:54:24 +0000 (23:24 +0530)]
Show total size of non-filtered selected files in a directory.
Arun Prakash Jana [Sat, 28 Jan 2023 04:31:46 +0000 (10:01 +0530)]
Run cmd as plugin now supported exported variables
Arun Prakash Jana [Sat, 28 Jan 2023 04:18:13 +0000 (09:48 +0530)]
Set defaults for some multiple choice prompts
Archive options: listing
Create new options: create file
Open with options: command type GUI
Arun Prakash Jana [Sat, 28 Jan 2023 03:41:15 +0000 (09:11 +0530)]
Simplify paged and GUI commands run as plugin
Arun Prakash Jana [Sat, 28 Jan 2023 03:01:25 +0000 (08:31 +0530)]
Place "$nnn" in double quotes in man page examples
Arun [Sat, 28 Jan 2023 02:53:24 +0000 (08:23 +0530)]
Merge pull request #1571 from KlzXS/plugin_simplification
Simplify the command as plugin codepath
Arun [Sat, 28 Jan 2023 02:52:52 +0000 (08:22 +0530)]
Merge pull request #1570 from KlzXS/general_simplification
Second attempt at #1566
Arun [Fri, 27 Jan 2023 15:33:45 +0000 (21:03 +0530)]
Merge pull request #1573 from N-R-K/fix_chksum
plugins/chksum: use exit instead of return
NRK [Wed, 25 Jan 2023 19:07:08 +0000 (01:07 +0600)]
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
KlzXS [Wed, 25 Jan 2023 17:56:48 +0000 (18:56 +0100)]
Add debug message for bad call
KlzXS [Wed, 25 Jan 2023 16:37:31 +0000 (17:37 +0100)]
Update signatures
KlzXS [Wed, 25 Jan 2023 16:15:38 +0000 (17:15 +0100)]
Simplify commands as plugins
Remove restrictions on $nnn
Update the plugin README
KlzXS [Sun, 22 Jan 2023 15:40:35 +0000 (16:40 +0100)]
Revert using UTIL_SH_EXEC
Arun Prakash Jana [Sun, 15 Jan 2023 18:49:03 +0000 (00:19 +0530)]
Revert "Simplify get_output()"
This reverts commit
6c23fdfd5fa1c394b71b7e26f5d921845c724ee4 .
Arun Prakash Jana [Sun, 15 Jan 2023 18:48:52 +0000 (00:18 +0530)]
Revert "Give better names to variables"
This reverts commit
1a2f783b757699805487eb701d85ca0917692245 .
Arun Prakash Jana [Sun, 15 Jan 2023 18:48:41 +0000 (00:18 +0530)]
Revert "Make CI happy"
This reverts commit
8a1e32d9eb191db2f1b75fda6f15bf6625ecd3fa .
Arun Prakash Jana [Sun, 15 Jan 2023 18:48:19 +0000 (00:18 +0530)]
Revert "Concatenate arguments to pass to `sh`"
This reverts commit
428c652d365b8571ea8b93bfca9e505f5ff14251 .
Arun Prakash Jana [Sun, 15 Jan 2023 18:45:54 +0000 (00:15 +0530)]
Revert "Paging is achieved through shell command now"
This reverts commit
243301603edb1bfc31087ee20fa6cf90bad8ff64 .
Arun Prakash Jana [Sun, 15 Jan 2023 06:16:03 +0000 (11:46 +0530)]
Paging is achieved through shell command now
Arun [Sun, 15 Jan 2023 05:46:01 +0000 (11:16 +0530)]
Merge pull request #1566 from KlzXS/general_simplification
General simplification
Arun [Sun, 15 Jan 2023 05:29:36 +0000 (10:59 +0530)]
Concatenate arguments to pass to `sh`
Co-authored-by: KlzXS <klzx+github@klzx.cf>
Co-authored-by: Arun Prakash Jana <engineerarun@gmail.com>
KlzXS [Sat, 14 Jan 2023 22:18:22 +0000 (23:18 +0100)]
Make CI happy
KlzXS [Sat, 14 Jan 2023 21:31:16 +0000 (22:31 +0100)]
Give better names to variables
KlzXS [Sat, 14 Jan 2023 21:11:10 +0000 (22:11 +0100)]
Simplify get_output()
Arun [Sat, 14 Jan 2023 13:05:59 +0000 (18:35 +0530)]
Merge pull request #1565 from N-R-K/discussion_template
issue-template: add a section for opening a discussion
NRK [Sat, 14 Jan 2023 12:46:56 +0000 (18:46 +0600)]
issue-template: add a section for opening a discussion
this should give the section more visibility.
Arun [Tue, 10 Jan 2023 15:29:49 +0000 (20:59 +0530)]
Merge pull request #1563 from N-R-K/macos_ci
attempt at fixing macos CI
NRK [Tue, 10 Jan 2023 08:01:46 +0000 (14:01 +0600)]
attempt at fixing macos CI
Arun [Sun, 8 Jan 2023 01:02:50 +0000 (06:32 +0530)]
Merge pull request #1559 from leovilok/tabbed-wayland-warn
preview-tabbed: warn & prevent running on Wayland
Léo Villeveygoux [Sat, 7 Jan 2023 22:19:28 +0000 (23:19 +0100)]
preview-tabbed: warn & prevent running on Wayland
Arun Prakash Jana [Thu, 5 Jan 2023 22:54:11 +0000 (04:24 +0530)]
Update bug template
Arun [Mon, 2 Jan 2023 23:08:26 +0000 (04:38 +0530)]
Merge pull request #1555 from N-R-K/icons_fix_ub
icons-hash: fix bitwise rotation
Arun Prakash Jana [Mon, 2 Jan 2023 23:07:07 +0000 (04:37 +0530)]
Update plugin docs and examples
NRK [Mon, 2 Jan 2023 20:20:21 +0000 (02:20 +0600)]
icons-hash: fix bitwise rotation
in case the rotation is 0, `v >> (32 - r)` would end up doing a 32 right
shift which is equal to the width of `v` and thus undefined behavior.
ref: https://blog.regehr.org/archives/1063
Raffaele Mancuso [Mon, 2 Jan 2023 16:53:47 +0000 (17:53 +0100)]
[kdeconnect] Various improvements (#1551)
- Support multiple devices paired and available at the same time
- Filter out non-regular files
N-R-K [Mon, 2 Jan 2023 16:53:18 +0000 (16:53 +0000)]
icons-hash: misc improvements (#1553)
* icons-hash: take total probe count into account as well
* icons-hash: use a better PRNG
the older method was using a multiplicative congruential generator (MCG)
which doesn't work too well especially with just 32 bits of state.
change it to a PCG instead with 64 bits of state (and 32 bits of output)
which should give better results.
and since we should get better rng - the search iteration has been
halved as well to save some build time.
* icons-hash: use an xor-rotate hash function
* icons-hash: fix some compiler warnings
8B411 [Wed, 21 Dec 2022 17:44:28 +0000 (19:44 +0200)]
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
Arun Prakash Jana [Sun, 18 Dec 2022 15:04:44 +0000 (20:34 +0530)]
Add Discussions link to README.
Raffaele Mancuso [Sun, 18 Dec 2022 10:39:11 +0000 (11:39 +0100)]
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>
Arun Prakash Jana [Fri, 16 Dec 2022 14:24:53 +0000 (19:54 +0530)]
Update readme
Arun [Tue, 13 Dec 2022 13:10:42 +0000 (18:40 +0530)]
Merge pull request #1542 from KlzXS/archive_script
Remove unnecessary parameter from `archive_selection()`
KlzXS [Mon, 12 Dec 2022 15:11:55 +0000 (16:11 +0100)]
Remove unnecessary parameter from `archive_selection()`
Arun Prakash Jana [Mon, 12 Dec 2022 12:33:11 +0000 (18:03 +0530)]
Optimize link creation
Arun Prakash Jana [Mon, 12 Dec 2022 10:45:06 +0000 (16:15 +0530)]
Clear selection if all links are generated
Arun Prakash Jana [Mon, 12 Dec 2022 10:27:20 +0000 (15:57 +0530)]
Show errno on link creation failure
Arun Prakash Jana [Mon, 12 Dec 2022 09:12:03 +0000 (14:42 +0530)]
Restore check to prevent overwriting hovered file when archiving
Arun Prakash Jana [Mon, 12 Dec 2022 04:22:16 +0000 (09:52 +0530)]
Improve archive, rename, new workflows
1. hover on entry created in cwd
2. check user input doesn't end with /
3. check user input len < PATH_MAX
4. support creation in ~ directory
5. handle filter mode after creation
6. ensure absolute path len < PATH_MAX
Arun Prakash Jana [Sun, 11 Dec 2022 20:50:28 +0000 (02:20 +0530)]
Improve archive creation handling
Arun Prakash Jana [Sun, 11 Dec 2022 18:37:14 +0000 (00:07 +0530)]
Fix memory leak
Arun Prakash Jana [Sun, 11 Dec 2022 05:23:16 +0000 (10:53 +0530)]
Update docs
Arun Prakash Jana [Sat, 10 Dec 2022 22:12:34 +0000 (03:42 +0530)]
Use built-in
Arun Prakash Jana [Sat, 10 Dec 2022 21:23:34 +0000 (02:53 +0530)]
Fix length calculation
Arun Prakash Jana [Sat, 10 Dec 2022 18:33:24 +0000 (00:03 +0530)]
Attmept to create PATH if PATH is non-existent
Arun Prakash Jana [Sat, 10 Dec 2022 16:32:22 +0000 (22:02 +0530)]
Create files in less permissive mode
Arun Prakash Jana [Sat, 10 Dec 2022 16:13:42 +0000 (21:43 +0530)]
Fix build break
Arun Prakash Jana [Sat, 10 Dec 2022 16:05:56 +0000 (21:35 +0530)]
Fix signed and unsigned comparison
Arun Prakash Jana [Sat, 10 Dec 2022 14:54:49 +0000 (20:24 +0530)]
Allow creating a new file on startup
An accessibe parent directory must exist to allow creation
Arun Prakash Jana [Sat, 10 Dec 2022 13:51:56 +0000 (19:21 +0530)]
Allow overwriting regular files on new empty file creation
Arun Prakash Jana [Sat, 3 Dec 2022 01:56:26 +0000 (07:26 +0530)]
Update ToDo link
Arun Prakash Jana [Sat, 26 Nov 2022 04:06:07 +0000 (09:36 +0530)]
Update README
Arun Prakash Jana [Sat, 26 Nov 2022 03:40:59 +0000 (09:10 +0530)]
Add correct check for Wayland in clipboard plugins
Arun [Fri, 25 Nov 2022 16:54:31 +0000 (22:24 +0530)]
Merge pull request #1531 from sjmulder/pr/cflags
Respect CFLAGS and LDFLAGS when building generator
Sijmen J. Mulder [Fri, 25 Nov 2022 15:38:37 +0000 (16:38 +0100)]
Respect CFLAGS and LDFLAGS when building generator
Arun Prakash Jana [Fri, 25 Nov 2022 14:18:45 +0000 (19:48 +0530)]
Fix #1529: fix improper piping
Arun Prakash Jana [Thu, 24 Nov 2022 05:54:10 +0000 (11:24 +0530)]
Set rdef to development
Arun Prakash Jana [Thu, 24 Nov 2022 05:28:21 +0000 (10:58 +0530)]
Prepare for release v4.7 Cuba libre
Darukutsu [Fri, 18 Nov 2022 12:44:16 +0000 (13:44 +0100)]
plugins/upload: handle selection using ffsend
Arun [Wed, 9 Nov 2022 17:40:30 +0000 (23:10 +0530)]
Merge pull request #1516 from lgtm-migrator/codeql
Add CodeQL workflow for GitHub code scanning
LGTM Migrator [Wed, 9 Nov 2022 15:46:24 +0000 (15:46 +0000)]
Add CodeQL workflow for GitHub code scanning
Arun [Wed, 2 Nov 2022 13:04:44 +0000 (18:34 +0530)]
Merge pull request #1512 from Darukutsu/pull-requests
plugins/wallpaper: support wayland and fix indentation
NRK [Tue, 1 Nov 2022 23:27:57 +0000 (05:27 +0600)]
plugins/wallpaper: update description
NRK [Tue, 1 Nov 2022 17:03:14 +0000 (23:03 +0600)]
plugins/wallpaper: fix indentation
daru [Tue, 1 Nov 2022 16:05:57 +0000 (17:05 +0100)]
Update wallpaper
Darukutsu [Tue, 1 Nov 2022 15:40:25 +0000 (16:40 +0100)]
fix plugins/wallpaper support for wayland
Arun [Wed, 26 Oct 2022 11:56:32 +0000 (17:26 +0530)]
Merge pull request #1511 from N-R-K/icons_clarify
Misc icon changes
NRK [Wed, 26 Oct 2022 09:08:27 +0000 (15:08 +0600)]
add ksh, ttf and otf icons
Co-authored-by: Tanner Babcock <babkock@protonmail.com>
NRK [Wed, 26 Oct 2022 08:55:20 +0000 (14:55 +0600)]
icons.h: fix alignment
NRK [Wed, 26 Oct 2022 08:54:07 +0000 (14:54 +0600)]
clarify the goal of the default icon set
nblock [Fri, 21 Oct 2022 12:16:06 +0000 (14:16 +0200)]
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>
Arun [Wed, 12 Oct 2022 14:53:21 +0000 (20:23 +0530)]
Merge pull request #1506 from N-R-K/nsxiv_link
update nsxiv upstream link
Arun [Wed, 12 Oct 2022 00:34:20 +0000 (06:04 +0530)]
Merge pull request #1507 from N-R-K/prompt_prefill
prefill the prompt when there's a single target
NRK [Tue, 11 Oct 2022 18:46:17 +0000 (00:46 +0600)]
prefill the prompt when there's a single target
Fixes: #1505 #1282 #1345
NRK [Tue, 11 Oct 2022 16:00:42 +0000 (22:00 +0600)]
fix nsxiv upstream link
main repo is hosted on codeberg, github is only a mirror.
Dean G [Wed, 5 Oct 2022 11:38:48 +0000 (22:38 +1100)]
Add Rust icons (#1502)
Arun [Sat, 1 Oct 2022 15:45:48 +0000 (21:15 +0530)]
Merge pull request #1501 from luukvbaal/patches
Fix gitstatus patch git command
Luuk van Baal [Sat, 1 Oct 2022 15:06:30 +0000 (17:06 +0200)]
Fix git pathspec for gitstatus patch
Arun Prakash Jana [Tue, 27 Sep 2022 19:00:26 +0000 (00:30 +0530)]
Fix #1498: count broken when selection is updated outside nnn
Arun Prakash Jana [Mon, 19 Sep 2022 16:06:04 +0000 (21:36 +0530)]
Fix build break
Christian Rackerseder [Mon, 19 Sep 2022 06:52:32 +0000 (08:52 +0200)]
Fix #1486: update macOS instructions for chksum plugin
Arun Prakash Jana [Sat, 17 Sep 2022 16:09:52 +0000 (21:39 +0530)]
Add macOS instruction
Arun [Fri, 16 Sep 2022 17:58:59 +0000 (23:28 +0530)]
Merge pull request #1491 from PatrickF1/patch-1
slightly improve n.fish
Patrick [Fri, 16 Sep 2022 02:57:25 +0000 (19:57 -0700)]
wrap in quotes just in case
Patrick [Fri, 16 Sep 2022 01:24:04 +0000 (18:24 -0700)]
make one single invocation to test
Patrick [Fri, 16 Sep 2022 00:11:34 +0000 (17:11 -0700)]
slightly improve and optimize n.fish
The expr is redundant because `test -ge` treats strings as numbers already.
Arun [Tue, 13 Sep 2022 01:02:39 +0000 (06:32 +0530)]
Merge pull request #1485 from pataquets/detect-key-collision-text
Detect key collisions: make clear everywhere that it exits afterwards.
pataquets [Mon, 12 Sep 2022 21:04:54 +0000 (23:04 +0200)]
Detect key collisions: make clear everywhere that it exits afterwards.
Arun [Thu, 8 Sep 2022 19:10:35 +0000 (00:40 +0530)]
Merge pull request #1480 from luukvbaal/master
Show selected items in rm msg
Luuk van Baal [Thu, 8 Sep 2022 18:07:34 +0000 (20:07 +0200)]
Show selected items in rm msg
Close https://github.com/jarun/nnn/issues/1479
Arun Prakash Jana [Tue, 23 Aug 2022 13:30:45 +0000 (19:00 +0530)]
Use correct data type for key collision detection