]> Sergey Matveev's repositories - nnn.git/log
nnn.git
12 months agoMakefile: use -g3 for debug builds
NRK [Sun, 14 May 2023 16:13:44 +0000 (22:13 +0600)]
Makefile: use -g3 for debug builds

-g3 builds additional information such as macro definition and so on.

12 months agoMerge pull request #1638 from luukvbaal/nerdfix
Arun [Fri, 5 May 2023 00:06:27 +0000 (05:36 +0530)]
Merge pull request #1638 from luukvbaal/nerdfix

Update nerd-font icons to v3

12 months agoUpdate nerd-font icons to v3
Luuk van Baal [Thu, 4 May 2023 22:59:44 +0000 (00:59 +0200)]
Update nerd-font icons to v3

This is an upstream breaking change.
Update your font to the latest version if you see missing icons.

13 months agoFilter adjustment when opening context from plugin
Arun Prakash Jana [Sat, 29 Apr 2023 16:13:29 +0000 (21:43 +0530)]
Filter adjustment when opening context from plugin

- Clear filter only when a plugin is selected manually.
  Plugin dir should be unfiltered when opened.
- Plugins invoked by keys don't require clearing filter
  of original context. If a new context is opened using
  the plugin, it will be unfiltered by default. If the
  same context is re-used (when all the contexts are in
  use) the filter should be cleared so the the new path
  is opened unfiltered.

13 months agoMerge pull request #1633 from N-R-K/assert_fix
Arun [Sun, 23 Apr 2023 15:31:27 +0000 (21:01 +0530)]
Merge pull request #1633 from N-R-K/assert_fix

icons-hash: replace assert with handmade version

13 months agoicons-hash: replace assert with handmade version
NRK [Sat, 22 Apr 2023 11:08:00 +0000 (17:08 +0600)]
icons-hash: replace assert with handmade version

since 2fc9d51, the hash-table generator inherits environmental
CFLAGS and so we shouldn't disallow setting -DNDEBUG.

fixes: https://github.com/jarun/nnn/issues/1632

13 months agoMerge pull request #1630 from musjj/preview-tui-escape
Arun [Fri, 21 Apr 2023 21:32:37 +0000 (03:02 +0530)]
Merge pull request #1630 from musjj/preview-tui-escape

feat(preview-tui): handle quoting in `start_preview` more robustly

13 months agoperf(preview-tui): replace env for loop with parameter expansion
Luuk van Baal [Wed, 19 Apr 2023 23:06:43 +0000 (01:06 +0200)]
perf(preview-tui): replace env for loop with parameter expansion

13 months agofeat(preview-tui): handle quoting in start_preview more robustly
musjj [Wed, 19 Apr 2023 01:20:41 +0000 (08:20 +0700)]
feat(preview-tui): handle quoting in start_preview more robustly

This commit makes the script more resistant to naughty filenames.
The script now depends on bash for the following features:
- Arrays
Correctly creating and passing argument lists is now simple
- Parameter transformation
`${parameter@Q}` makes it easy to correctly quote a string so that it
can be safely re-evaluated by the interpreter later.

On iTerm, the shell command used to render the preview is now passed to
osascript via a named pipe: `$FIFO_OSASCRIPT`. By not embedding the
shell command directly, we now no longer need to worry about osascript's
quoting rules. It's not perfect, because $SHELL and $TMPDIR might
contain naughty characters, but it's quite unlikely to happen.

13 months agoMerge pull request #1628 from spfanning/patch-1
Arun [Fri, 14 Apr 2023 13:24:22 +0000 (18:54 +0530)]
Merge pull request #1628 from spfanning/patch-1

Support wezterm split size percentage in preview-tui

13 months agoSupport wezterm split size percentage
spfanning [Thu, 13 Apr 2023 20:50:31 +0000 (15:50 -0500)]
Support wezterm split size percentage

13 months agoconfig option to specify archive mounter utility
Arun Prakash Jana [Thu, 13 Apr 2023 20:17:50 +0000 (01:47 +0530)]
config option to specify archive mounter utility

13 months agoRevert variety
Arun Prakash Jana [Thu, 13 Apr 2023 13:40:07 +0000 (19:10 +0530)]
Revert variety

13 months agoHappy Birthday nnn! v4.8
Arun Prakash Jana [Thu, 13 Apr 2023 13:07:42 +0000 (18:37 +0530)]
Happy Birthday nnn!
Prepare for release v4.8 Spritz!

13 months agoMerge pull request #1621 from kianmeng/fix-typos
Arun [Tue, 4 Apr 2023 15:36:08 +0000 (21:06 +0530)]
Merge pull request #1621 from kianmeng/fix-typos

Fix typos

13 months agoFix typos
Kian-Meng Ang [Mon, 3 Apr 2023 04:49:03 +0000 (12:49 +0800)]
Fix typos

Found via `codespell -L noice,nd,fils,numer,caf,iterm`

14 months agoMerge pull request #1619 from yoshiyoshyosh/icon-jxl
Arun [Wed, 29 Mar 2023 16:39:52 +0000 (22:09 +0530)]
Merge pull request #1619 from yoshiyoshyosh/icon-jxl

add jpeg xl icon

14 months agoadd jxl icon
yosh [Tue, 28 Mar 2023 15:44:38 +0000 (11:44 -0400)]
add jxl icon

14 months agoMerge pull request #1616 from N-R-K/quitcd
Arun [Mon, 27 Mar 2023 22:58:04 +0000 (04:28 +0530)]
Merge pull request #1616 from N-R-K/quitcd

add shell_escape() to properly escape filenames fed to shell

14 months agoadd shell_escape() to properly escape filenames fed to shell
NRK [Tue, 21 Mar 2023 10:59:25 +0000 (16:59 +0600)]
add shell_escape() to properly escape filenames fed to shell

Fixes: https://github.com/jarun/nnn/issues/1615
14 months agoUpdate issue templates
Arun Prakash Jana [Tue, 14 Mar 2023 22:49:44 +0000 (04:19 +0530)]
Update issue templates

Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
14 months agoMerge pull request #1598 from N-R-K/tilde_handling
Arun [Fri, 10 Mar 2023 12:45:16 +0000 (18:15 +0530)]
Merge pull request #1598 from N-R-K/tilde_handling

More correct tilde handling

14 months agoMerge pull request #1606 from mmai/patch-2
Arun [Wed, 8 Mar 2023 14:56:05 +0000 (20:26 +0530)]
Merge pull request #1606 from mmai/patch-2

Fix paths in nushell quitcd script

14 months agoMerge pull request #1604 from irhl/patch-1
Arun [Wed, 8 Mar 2023 14:48:13 +0000 (20:18 +0530)]
Merge pull request #1604 from irhl/patch-1

plugins/wallpaper: update link

14 months agoFix paths in nushell quitcd script
Henri Bourcereau [Tue, 7 Mar 2023 14:40:10 +0000 (15:40 +0100)]
Fix paths in nushell quitcd script

This set the correct path to the temp nnn file when XDG_CONFIG_HOME is set. It fixes https://github.com/jarun/nnn/discussions/1605

14 months agoadd some critical comments
NRK [Sun, 5 Mar 2023 12:43:08 +0000 (18:43 +0600)]
add some critical comments

14 months agoplugins/wallpaper: update link
birik [Sun, 5 Mar 2023 09:07:04 +0000 (09:07 +0000)]
plugins/wallpaper: update link

14 months agoMerge pull request #1602 from mmai/patch-1
Arun [Wed, 1 Mar 2023 23:39:23 +0000 (05:09 +0530)]
Merge pull request #1602 from mmai/patch-1

Create quitcd script for nushell

14 months agoCreate quitcd script for nushell
Henri Bourcereau [Tue, 28 Feb 2023 15:26:36 +0000 (16:26 +0100)]
Create quitcd script for nushell

15 months agohandle tilde more strictly in mkpath and abspath
NRK [Sun, 26 Feb 2023 12:11:43 +0000 (18:11 +0600)]
handle tilde more strictly in mkpath and abspath

otherwise, if a file is named "~" it will get incorrectly expanded into
$HOME and disaster can happen.

15 months agoMerge pull request #1597 from amalgame21/master
Arun [Sun, 26 Feb 2023 02:03:57 +0000 (07:33 +0530)]
Merge pull request #1597 from amalgame21/master

Add old 1997-2003 .doc and .xls preview support

15 months agoconvert_tilde: return whether the conversion was done or not
NRK [Sat, 25 Feb 2023 07:27:48 +0000 (13:27 +0600)]
convert_tilde: return whether the conversion was done or not

15 months agohandle tilde more correctly
NRK [Sat, 25 Feb 2023 07:18:29 +0000 (13:18 +0600)]
handle tilde more correctly

closes: https://github.com/jarun/nnn/issues/1596

15 months agoAdd old 1997-2003 .doc and .xls support
amalgame21 [Sat, 25 Feb 2023 09:52:33 +0000 (09:52 +0000)]
Add old 1997-2003 .doc and .xls support

15 months agoMerge pull request #1593 from luukvbaal/preview-tui
Arun [Mon, 20 Feb 2023 14:12:15 +0000 (19:42 +0530)]
Merge pull request #1593 from luukvbaal/preview-tui

Preview-tui hide terminated/broken pipe messages

15 months agoPreview-tui hide terminated/broken pipe messages
Luuk van Baal [Sun, 19 Feb 2023 20:52:55 +0000 (21:52 +0100)]
Preview-tui hide terminated/broken pipe messages

Fix #1583, close #1591

15 months agoMerge pull request #1592 from N-R-K/nmv_tmp_cleanup
Arun [Sun, 19 Feb 2023 16:57:36 +0000 (22:27 +0530)]
Merge pull request #1592 from N-R-K/nmv_tmp_cleanup

nmv: ensure the tmpfile is cleaned up in all cases

15 months agoAdded patch for colemak keyboard layout. Existing renamed to colemak-dh (#1587)
Jacob Moena [Sun, 19 Feb 2023 16:22:32 +0000 (17:22 +0100)]
Added patch for colemak keyboard layout. Existing renamed to colemak-dh (#1587)

* Added patch for colemak keyboard layout. Existing renamed

to colemak-dh

* Missed two spots of O_COLEMAK

* Update check-patches.sh

15 months agonmv: ensure the tmpfile is cleaned up in all cases
NRK [Sun, 19 Feb 2023 15:14:53 +0000 (21:14 +0600)]
nmv: ensure the tmpfile is cleaned up in all cases

currently, there's a couple exit paths where the tmpfile doesn't get
cleaned up.

15 months agoUpdate copyright year
Arun Prakash Jana [Sun, 19 Feb 2023 02:58:20 +0000 (08:28 +0530)]
Update copyright year

15 months agoMerge pull request #1589 from N-R-K/prefer_sel
Arun [Fri, 17 Feb 2023 15:30:44 +0000 (21:00 +0530)]
Merge pull request #1589 from N-R-K/prefer_sel

fix shellcheck issues

15 months agofix shellcheck issues
NRK [Fri, 17 Feb 2023 14:12:07 +0000 (20:12 +0600)]
fix shellcheck issues

15 months agoMerge pull request #1588 from N-R-K/prefer_sel
Arun [Fri, 17 Feb 2023 14:00:59 +0000 (19:30 +0530)]
Merge pull request #1588 from N-R-K/prefer_sel

nmv: prefer selection if -u is active

15 months agoplugin-helper: add nnn_use_selection()
NRK [Fri, 17 Feb 2023 13:51:57 +0000 (19:51 +0600)]
plugin-helper: add nnn_use_selection()

15 months agoexport NNN_PREFER_SELECTION to all plugins
NRK [Fri, 17 Feb 2023 13:24:45 +0000 (19:24 +0600)]
export NNN_PREFER_SELECTION to all plugins

15 months agonmv: prefer selection if -u is active
NRK [Fri, 17 Feb 2023 05:56:28 +0000 (11:56 +0600)]
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.

15 months agoMerge pull request #1586 from luukvbaal/preview-tui
Arun [Fri, 17 Feb 2023 13:12:50 +0000 (18:42 +0530)]
Merge pull request #1586 from luukvbaal/preview-tui

Preview-tui restore current working directory

15 months agoPreview-tui restore current working directory
Luuk van Baal [Fri, 17 Feb 2023 00:45:17 +0000 (01:45 +0100)]
Preview-tui restore current working directory

15 months agoMerge pull request #1585 from luukvbaal/preview-tui
Arun [Fri, 17 Feb 2023 01:48:35 +0000 (07:18 +0530)]
Merge pull request #1585 from luukvbaal/preview-tui

Preview-tui hide wezterm split-pane output

15 months agoPreview-tui hide wezterm split-pane output
Luuk van Baal [Fri, 17 Feb 2023 00:45:17 +0000 (01:45 +0100)]
Preview-tui hide wezterm split-pane output

15 months agoUpdate readme
Arun Prakash Jana [Sun, 12 Feb 2023 19:35:36 +0000 (01:05 +0530)]
Update readme

15 months agoMerge pull request #1580 from luukvbaal/preview-tui
Arun [Sun, 12 Feb 2023 02:28:58 +0000 (07:58 +0530)]
Merge pull request #1580 from luukvbaal/preview-tui

Preview-tui!: refactor environment variables

15 months agoPreview-tui!: refactor environment variables
Luuk van Baal [Tue, 7 Feb 2023 03:59:07 +0000 (04:59 +0100)]
Preview-tui!: refactor environment variables

Problem:    List of environment variables is copied for each previewer.
            Environment variable names are too general.
Solution:   Parameterize environment variable flags with static list of
            variables. Prepend user-facing variables with `NNN_`.

15 months agoMerge pull request #1578 from kuntau/wezterm-preview-support
Arun [Sat, 4 Feb 2023 01:34:24 +0000 (07:04 +0530)]
Merge pull request #1578 from kuntau/wezterm-preview-support

feat(preview-tui): add `wezterm` support

15 months agoUpdate plugins/preview-tui
Nizamuddin Sulieman [Fri, 3 Feb 2023 23:36:57 +0000 (07:36 +0800)]
Update plugins/preview-tui

use `$WEZTERM_PANE` instead, since `$WEZTERM_UNIX_SOCKET` is not set on Linux

Co-authored-by: luukvbaal <31730729+luukvbaal@users.noreply.github.com>
15 months agofeat(preview-tui): use built in `iTerm2` image protocol if
Nizamuddin Sulieman [Thu, 2 Feb 2023 10:25:39 +0000 (18:25 +0800)]
feat(preview-tui): use built in `iTerm2` image protocol if
`NNN_PREVIEW_IMGPROG` is not specified. Add some notes.

15 months agofeat(preview-tui): add `wezterm` support
Nizamuddin Sulieman [Thu, 2 Feb 2023 08:14:56 +0000 (16:14 +0800)]
feat(preview-tui): add `wezterm` support

15 months agoOptimize listed selection size calculation
Arun Prakash Jana [Tue, 31 Jan 2023 13:06:26 +0000 (18:36 +0530)]
Optimize listed selection size calculation

15 months agoMerge pull request #1576 from greenfoo/add_chafa
Arun [Mon, 30 Jan 2023 13:07:42 +0000 (18:37 +0530)]
Merge pull request #1576 from greenfoo/add_chafa

preview-tui: add chafa and PREFERRED_IMAGE_VIEWER env variable

15 months agopreview-tui: add chafa and PREFERRED_IMAGE_VIEWER env variable
Fernando Ramos [Sun, 29 Jan 2023 22:37:24 +0000 (23:37 +0100)]
preview-tui: add chafa and PREFERRED_IMAGE_VIEWER env variable

15 months 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

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

15 months 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.

16 months 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

16 months 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

16 months 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

16 months 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

16 months 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

16 months 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

16 months 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

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

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

16 months 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

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

16 months 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.

16 months 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.

16 months 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.

16 months 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.

16 months 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.

16 months 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

16 months 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

16 months 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>
16 months agoMake CI happy
KlzXS [Sat, 14 Jan 2023 22:18:22 +0000 (23:18 +0100)]
Make CI happy

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

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

16 months 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

16 months 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.

16 months 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

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

16 months 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

16 months 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

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

16 months 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

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

16 months 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

16 months 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

16 months 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

17 months 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

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