]> Sergey Matveev's repositories - nnn.git/log
nnn.git
2 years agoMerge pull request #1575 from luukvbaal/colemak
Arun [Mon, 30 Jan 2023 01:19:00 +0000 (06:49 +0530)]
Merge pull request #1575 from luukvbaal/colemak

Update colemak patch

2 years agoUpdate colemak patch
Luuk van Baal [Sun, 29 Jan 2023 22:05:49 +0000 (23:05 +0100)]
Update colemak patch

2 years agoShow total size of non-filtered selected files in a directory.
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.

2 years agoRun cmd as plugin now supported exported variables
Arun Prakash Jana [Sat, 28 Jan 2023 04:31:46 +0000 (10:01 +0530)]
Run cmd as plugin now supported exported variables

2 years agoSet defaults for some multiple choice prompts
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

2 years agoSimplify paged and GUI commands run as plugin
Arun Prakash Jana [Sat, 28 Jan 2023 03:41:15 +0000 (09:11 +0530)]
Simplify paged and GUI commands run as plugin

2 years agoPlace "$nnn" in double quotes in man page examples
Arun Prakash Jana [Sat, 28 Jan 2023 03:01:25 +0000 (08:31 +0530)]
Place "$nnn" in double quotes in man page examples

2 years agoMerge pull request #1571 from KlzXS/plugin_simplification
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

2 years agoMerge pull request #1570 from KlzXS/general_simplification
Arun [Sat, 28 Jan 2023 02:52:52 +0000 (08:22 +0530)]
Merge pull request #1570 from KlzXS/general_simplification

Second attempt at #1566

2 years agoMerge pull request #1573 from N-R-K/fix_chksum
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

2 years agoplugins/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
2 years agoAdd debug message for bad call
KlzXS [Wed, 25 Jan 2023 17:56:48 +0000 (18:56 +0100)]
Add debug message for bad call

2 years agoUpdate signatures
KlzXS [Wed, 25 Jan 2023 16:37:31 +0000 (17:37 +0100)]
Update signatures

2 years agoSimplify commands as plugins
KlzXS [Wed, 25 Jan 2023 16:15:38 +0000 (17:15 +0100)]
Simplify commands as plugins

Remove restrictions on $nnn

Update the plugin README

2 years agoRevert using UTIL_SH_EXEC
KlzXS [Sun, 22 Jan 2023 15:40:35 +0000 (16:40 +0100)]
Revert using UTIL_SH_EXEC

2 years agoRevert "Simplify get_output()"
Arun Prakash Jana [Sun, 15 Jan 2023 18:49:03 +0000 (00:19 +0530)]
Revert "Simplify get_output()"

This reverts commit 6c23fdfd5fa1c394b71b7e26f5d921845c724ee4.

2 years agoRevert "Give better names to variables"
Arun Prakash Jana [Sun, 15 Jan 2023 18:48:52 +0000 (00:18 +0530)]
Revert "Give better names to variables"

This reverts commit 1a2f783b757699805487eb701d85ca0917692245.

2 years agoRevert "Make CI happy"
Arun Prakash Jana [Sun, 15 Jan 2023 18:48:41 +0000 (00:18 +0530)]
Revert "Make CI happy"

This reverts commit 8a1e32d9eb191db2f1b75fda6f15bf6625ecd3fa.

2 years agoRevert "Concatenate arguments to pass to `sh`"
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.

2 years agoRevert "Paging is achieved through shell command now"
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.

2 years agoPaging is achieved through shell command now
Arun Prakash Jana [Sun, 15 Jan 2023 06:16:03 +0000 (11:46 +0530)]
Paging is achieved through shell command now

2 years agoMerge pull request #1566 from KlzXS/general_simplification
Arun [Sun, 15 Jan 2023 05:46:01 +0000 (11:16 +0530)]
Merge pull request #1566 from KlzXS/general_simplification

General simplification

2 years agoConcatenate arguments to pass to `sh`
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>
2 years agoMake CI happy
KlzXS [Sat, 14 Jan 2023 22:18:22 +0000 (23:18 +0100)]
Make CI happy

2 years agoGive better names to variables
KlzXS [Sat, 14 Jan 2023 21:31:16 +0000 (22:31 +0100)]
Give better names to variables

2 years agoSimplify get_output()
KlzXS [Sat, 14 Jan 2023 21:11:10 +0000 (22:11 +0100)]
Simplify get_output()

2 years agoMerge pull request #1565 from N-R-K/discussion_template
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

2 years agoissue-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.

2 years agoMerge pull request #1563 from N-R-K/macos_ci
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

2 years agoattempt at fixing macos CI
NRK [Tue, 10 Jan 2023 08:01:46 +0000 (14:01 +0600)]
attempt at fixing macos CI

2 years agoMerge pull request #1559 from leovilok/tabbed-wayland-warn
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

2 years agopreview-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

2 years agoUpdate bug template
Arun Prakash Jana [Thu, 5 Jan 2023 22:54:11 +0000 (04:24 +0530)]
Update bug template

2 years agoMerge pull request #1555 from N-R-K/icons_fix_ub
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

2 years agoUpdate plugin docs and examples
Arun Prakash Jana [Mon, 2 Jan 2023 23:07:07 +0000 (04:37 +0530)]
Update plugin docs and examples

2 years agoicons-hash: fix bitwise rotation
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

2 years ago[kdeconnect] Various improvements (#1551)
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

2 years agoicons-hash: misc improvements (#1553)
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

2 years agoMiscellaneous improvements to nmount plugin (#1547)
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

2 years agoAdd Discussions link to README.
Arun Prakash Jana [Sun, 18 Dec 2022 15:04:44 +0000 (20:34 +0530)]
Add Discussions link to README.

2 years agokdeconnect: misc improvements (#1543)
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>
2 years agoUpdate readme
Arun Prakash Jana [Fri, 16 Dec 2022 14:24:53 +0000 (19:54 +0530)]
Update readme

2 years agoMerge pull request #1542 from KlzXS/archive_script
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()`

2 years agoRemove unnecessary parameter from `archive_selection()`
KlzXS [Mon, 12 Dec 2022 15:11:55 +0000 (16:11 +0100)]
Remove unnecessary parameter from `archive_selection()`

2 years agoOptimize link creation
Arun Prakash Jana [Mon, 12 Dec 2022 12:33:11 +0000 (18:03 +0530)]
Optimize link creation

2 years agoClear selection if all links are generated
Arun Prakash Jana [Mon, 12 Dec 2022 10:45:06 +0000 (16:15 +0530)]
Clear selection if all links are generated

2 years agoShow errno on link creation failure
Arun Prakash Jana [Mon, 12 Dec 2022 10:27:20 +0000 (15:57 +0530)]
Show errno on link creation failure

2 years agoRestore check to prevent overwriting hovered file when archiving
Arun Prakash Jana [Mon, 12 Dec 2022 09:12:03 +0000 (14:42 +0530)]
Restore check to prevent overwriting hovered file when archiving

2 years agoImprove archive, rename, new workflows
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

2 years agoImprove archive creation handling
Arun Prakash Jana [Sun, 11 Dec 2022 20:50:28 +0000 (02:20 +0530)]
Improve archive creation handling

2 years agoFix memory leak
Arun Prakash Jana [Sun, 11 Dec 2022 18:37:14 +0000 (00:07 +0530)]
Fix memory leak

2 years agoUpdate docs
Arun Prakash Jana [Sun, 11 Dec 2022 05:23:16 +0000 (10:53 +0530)]
Update docs

2 years agoUse built-in
Arun Prakash Jana [Sat, 10 Dec 2022 22:12:34 +0000 (03:42 +0530)]
Use built-in

2 years agoFix length calculation
Arun Prakash Jana [Sat, 10 Dec 2022 21:23:34 +0000 (02:53 +0530)]
Fix length calculation

2 years agoAttmept to create PATH if PATH is non-existent
Arun Prakash Jana [Sat, 10 Dec 2022 18:33:24 +0000 (00:03 +0530)]
Attmept to create PATH if PATH is non-existent

2 years agoCreate files in less permissive mode
Arun Prakash Jana [Sat, 10 Dec 2022 16:32:22 +0000 (22:02 +0530)]
Create files in less permissive mode

2 years agoFix build break
Arun Prakash Jana [Sat, 10 Dec 2022 16:13:42 +0000 (21:43 +0530)]
Fix build break

2 years agoFix signed and unsigned comparison
Arun Prakash Jana [Sat, 10 Dec 2022 16:05:56 +0000 (21:35 +0530)]
Fix signed and unsigned comparison

2 years agoAllow creating a new file on startup
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

2 years agoAllow overwriting regular files on new empty file creation
Arun Prakash Jana [Sat, 10 Dec 2022 13:51:56 +0000 (19:21 +0530)]
Allow overwriting regular files on new empty file creation

2 years agoUpdate ToDo link
Arun Prakash Jana [Sat, 3 Dec 2022 01:56:26 +0000 (07:26 +0530)]
Update ToDo link

2 years agoUpdate README
Arun Prakash Jana [Sat, 26 Nov 2022 04:06:07 +0000 (09:36 +0530)]
Update README

2 years agoAdd correct check for Wayland in clipboard plugins
Arun Prakash Jana [Sat, 26 Nov 2022 03:40:59 +0000 (09:10 +0530)]
Add correct check for Wayland in clipboard plugins

2 years agoMerge pull request #1531 from sjmulder/pr/cflags
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

2 years agoRespect 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

2 years agoFix #1529: fix improper piping
Arun Prakash Jana [Fri, 25 Nov 2022 14:18:45 +0000 (19:48 +0530)]
Fix #1529: fix improper piping

2 years agoSet rdef to development
Arun Prakash Jana [Thu, 24 Nov 2022 05:54:10 +0000 (11:24 +0530)]
Set rdef to development

2 years agoPrepare for release v4.7 Cuba libre v4.7
Arun Prakash Jana [Thu, 24 Nov 2022 05:28:21 +0000 (10:58 +0530)]
Prepare for release v4.7 Cuba libre

2 years agoplugins/upload: handle selection using ffsend
Darukutsu [Fri, 18 Nov 2022 12:44:16 +0000 (13:44 +0100)]
plugins/upload: handle selection using ffsend

2 years agoMerge pull request #1516 from lgtm-migrator/codeql
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

2 years agoAdd 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

2 years agoMerge pull request #1512 from Darukutsu/pull-requests
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

2 years agoplugins/wallpaper: update description
NRK [Tue, 1 Nov 2022 23:27:57 +0000 (05:27 +0600)]
plugins/wallpaper: update description

2 years agoplugins/wallpaper: fix indentation
NRK [Tue, 1 Nov 2022 17:03:14 +0000 (23:03 +0600)]
plugins/wallpaper: fix indentation

2 years agoUpdate wallpaper
daru [Tue, 1 Nov 2022 16:05:57 +0000 (17:05 +0100)]
Update wallpaper

2 years agofix plugins/wallpaper support for wayland
Darukutsu [Tue, 1 Nov 2022 15:40:25 +0000 (16:40 +0100)]
fix plugins/wallpaper support for wayland

2 years agoMerge pull request #1511 from N-R-K/icons_clarify
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

2 years agoadd ksh, ttf and otf icons
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>
2 years agoicons.h: fix alignment
NRK [Wed, 26 Oct 2022 08:55:20 +0000 (14:55 +0600)]
icons.h: fix alignment

2 years agoclarify the goal of the default icon set
NRK [Wed, 26 Oct 2022 08:54:07 +0000 (14:54 +0600)]
clarify the goal of the default icon set

2 years agoimgview: handle arguments as strings (#1509)
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>
2 years agoMerge pull request #1506 from N-R-K/nsxiv_link
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

2 years agoMerge pull request #1507 from N-R-K/prompt_prefill
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

2 years agoprefill 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
2 years agofix nsxiv upstream link
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.

2 years agoAdd Rust icons (#1502)
Dean G [Wed, 5 Oct 2022 11:38:48 +0000 (22:38 +1100)]
Add Rust icons (#1502)

2 years agoMerge pull request #1501 from luukvbaal/patches
Arun [Sat, 1 Oct 2022 15:45:48 +0000 (21:15 +0530)]
Merge pull request #1501 from luukvbaal/patches

Fix gitstatus patch git command

2 years agoFix git pathspec for gitstatus patch
Luuk van Baal [Sat, 1 Oct 2022 15:06:30 +0000 (17:06 +0200)]
Fix git pathspec for gitstatus patch

2 years agoFix #1498: count broken when selection is updated outside nnn
Arun Prakash Jana [Tue, 27 Sep 2022 19:00:26 +0000 (00:30 +0530)]
Fix #1498: count broken when selection is updated outside nnn

2 years agoFix build break
Arun Prakash Jana [Mon, 19 Sep 2022 16:06:04 +0000 (21:36 +0530)]
Fix build break

2 years agoFix #1486: update macOS instructions for chksum plugin
Christian Rackerseder [Mon, 19 Sep 2022 06:52:32 +0000 (08:52 +0200)]
Fix #1486: update macOS instructions for chksum plugin

2 years agoAdd macOS instruction
Arun Prakash Jana [Sat, 17 Sep 2022 16:09:52 +0000 (21:39 +0530)]
Add macOS instruction

2 years agoMerge pull request #1491 from PatrickF1/patch-1
Arun [Fri, 16 Sep 2022 17:58:59 +0000 (23:28 +0530)]
Merge pull request #1491 from PatrickF1/patch-1

slightly improve n.fish

2 years agowrap in quotes just in case
Patrick [Fri, 16 Sep 2022 02:57:25 +0000 (19:57 -0700)]
wrap in quotes just in case

2 years agomake one single invocation to test
Patrick [Fri, 16 Sep 2022 01:24:04 +0000 (18:24 -0700)]
make one single invocation to test

2 years agoslightly improve and optimize n.fish
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.

2 years agoMerge pull request #1485 from pataquets/detect-key-collision-text
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.

2 years agoDetect 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.

2 years agoMerge pull request #1480 from luukvbaal/master
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

2 years agoShow 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