]>
Sergey Matveev's repositories - nnn.git/log
Anomalocaridid [Sat, 8 Jul 2023 23:55:10 +0000 (19:55 -0400)]
nmount: update dependencies in plugins/README.md
Anomalocaridid [Sat, 8 Jul 2023 23:55:07 +0000 (19:55 -0400)]
nmount: make pmount optional
Arun [Tue, 4 Jul 2023 14:51:43 +0000 (20:21 +0530)]
Merge pull request #1679 from N-R-K/ifdef_fixes
Remove some unnecessary ifdefs
NRK [Sat, 1 Jul 2023 02:56:18 +0000 (08:56 +0600)]
define _FILE_OFFSET_BITS 64 unconditionally
according to the manpage, it won't have any effect on 64bit system
anyways. and musl always uses 64bit so this macro doesn't have any
effect there either.
Arun [Fri, 16 Jun 2023 06:44:02 +0000 (12:14 +0530)]
Merge pull request #1668 from N-R-K/better_compress
better and faster string compression
Arun [Fri, 16 Jun 2023 06:42:41 +0000 (12:12 +0530)]
Merge pull request #1673 from JingMatrix/master
Add djvu icon
JingMatrix [Wed, 17 May 2023 12:31:45 +0000 (14:31 +0200)]
Add djvu icon
Use paperclip as icon since it is used by DjVuLibre.
NRK [Thu, 15 Jun 2023 02:54:00 +0000 (08:54 +0600)]
fix failing colemak patches
NRK [Tue, 13 Jun 2023 16:41:56 +0000 (22:41 +0600)]
better helpstring compression
this avoids multiple printf calls and instead decodes the buffer
natively. using %NN instead of %-NNc also saves two bytes per run.
helpstr is also made `static` to avoid unnecessary stack allocation.
Arun [Wed, 14 Jun 2023 10:50:15 +0000 (16:20 +0530)]
Merge pull request #1672 from luukvbaal/preview-tui
Preview-tui add -C to NNN_PAGER
Luuk van Baal [Wed, 14 Jun 2023 07:24:23 +0000 (09:24 +0200)]
Preview-tui add -C to NNN_PAGER
This makes it so that when the paged text is fewer lines than the preview pane, it is placed at the top instead of at the bottom
Arun [Fri, 26 May 2023 23:14:56 +0000 (04:44 +0530)]
Merge pull request #1658 from N-R-K/chmod_fix
fix: properly update mode after xchmod
NRK [Fri, 26 May 2023 13:27:07 +0000 (19:27 +0600)]
fix: properly update mode after xchmod
xchmod now returns the new mode through a pointer, no need to assume all
executable bits were toggled.
Closes: https://github.com/jarun/nnn/issues/1657
Arun [Mon, 22 May 2023 12:38:39 +0000 (18:08 +0530)]
Merge pull request #1655 from mistersmee/gitstatus-nerd
patches/gitstatus: Fix nerd fonts broken by 3.0.0 update
Aseem Athale [Mon, 22 May 2023 08:46:27 +0000 (14:16 +0530)]
patches/gitstatus: Fix nerd fonts broken by 3.0.0 update
Signed-off-by: Aseem Athale <athaleaseem@gmail.com>
Arun [Thu, 18 May 2023 20:27:34 +0000 (01:57 +0530)]
Merge pull request #1650 from leo-arch/master
Fix crash when PWD is set to empty string
Arun [Thu, 18 May 2023 20:26:53 +0000 (01:56 +0530)]
Merge pull request #1651 from N-R-K/cp_mv
make the cp/mv modification more robust
Arun [Thu, 18 May 2023 20:23:48 +0000 (01:53 +0530)]
Merge pull request #1646 from Delgan/patch-2
Fix some broken table links in docs
NRK [Sun, 14 May 2023 16:13:15 +0000 (22:13 +0600)]
make the cp/mv modification more robust
this makes it so that if the cp/mv commands are changed the in the
future, it will continue to work reliably instead of having hardcoded
indexes to modify the array.
the `#ifdef __linux__` is also removed, compilers should be smart enough
to see that PROGRESS_{CP,MV} are unused (on non-linux systems) and
optimize it out.
Arun [Mon, 15 May 2023 01:08:03 +0000 (06:38 +0530)]
Merge pull request #1648 from N-R-K/g3_debug
Makefile: use -g3 for debug builds
leo-arch [Sun, 14 May 2023 20:12:04 +0000 (20:12 +0000)]
Fix crash when PWD is set to empty string
nnn crashes when PWD is set to empty string: `PWD="" nnn`
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.
Delgan [Sat, 13 May 2023 15:25:59 +0000 (17:25 +0200)]
Fix some broken table links in docs
Arun [Fri, 12 May 2023 16:33:22 +0000 (22:03 +0530)]
Merge pull request #1645 from Delgan/patch-1
Add "$NNN_TERMINAL_ARGS" for "preview-tui" plugin
Arun [Fri, 12 May 2023 16:32:52 +0000 (22:02 +0530)]
Merge pull request #1644 from jaspwr/master
Update Haskell icon colour
Arun [Fri, 12 May 2023 15:37:29 +0000 (21:07 +0530)]
Merge pull request #1643 from UnleashedMarf/iconlookup-fix
Fix syntax-error in .iconlookup
Delgan [Fri, 12 May 2023 12:20:04 +0000 (14:20 +0200)]
Allow $NNN_TERMINAL additional arguments for "preview-tui" plugin
This can be used to start terminal with a custom title and prevent focus switch with i3 window manager.
Jasper [Fri, 12 May 2023 05:19:04 +0000 (15:19 +1000)]
Update Haskell icon color
UnleashedMarf [Thu, 11 May 2023 17:44:17 +0000 (19:44 +0200)]
Fix another typo
Co-authored-by: luukvbaal <luukvbaal@gmail.com>
UnleashedMarf [Thu, 11 May 2023 16:58:11 +0000 (18:58 +0200)]
Fix syntax-error in .iconlookup
Fixed syntax-error that prevented .iconlookup from executing.
Arun Prakash Jana [Sat, 6 May 2023 12:25:50 +0000 (17:55 +0530)]
Update docs
Arun [Sat, 6 May 2023 03:04:31 +0000 (08:34 +0530)]
Merge pull request #1639 from atomcult/posix-quitcd
quitcd.bash_zsh: make POSIX compliant; minor fixes and style changes
J. Brock [Fri, 5 May 2023 04:51:39 +0000 (00:51 -0400)]
quitcd.bash_zsh: make POSIX compliant; minor fixes and style changes
This commit makes the following changes to quitcd.bash_zsh:
- POSIX compliance and an according rename of the script
- Enforces consistent if-then statements and indentation
- Minor comment fixes
Signed-off-by: J. Brock <joseph.brock@protonmail.com>
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
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.
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.
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
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
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
Luuk van Baal [Wed, 19 Apr 2023 23:06:43 +0000 (01:06 +0200)]
perf(preview-tui): replace env for loop with parameter expansion
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.
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
spfanning [Thu, 13 Apr 2023 20:50:31 +0000 (15:50 -0500)]
Support wezterm split size percentage
Arun Prakash Jana [Thu, 13 Apr 2023 20:17:50 +0000 (01:47 +0530)]
config option to specify archive mounter utility
Arun Prakash Jana [Thu, 13 Apr 2023 13:40:07 +0000 (19:10 +0530)]
Revert variety
Arun Prakash Jana [Thu, 13 Apr 2023 13:07:42 +0000 (18:37 +0530)]
Happy Birthday nnn!
Prepare for release v4.8 Spritz!
Arun [Tue, 4 Apr 2023 15:36:08 +0000 (21:06 +0530)]
Merge pull request #1621 from kianmeng/fix-typos
Fix 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`
Arun [Wed, 29 Mar 2023 16:39:52 +0000 (22:09 +0530)]
Merge pull request #1619 from yoshiyoshyosh/icon-jxl
add jpeg xl icon
yosh [Tue, 28 Mar 2023 15:44:38 +0000 (11:44 -0400)]
add jxl icon
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
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
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>
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
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
Arun [Wed, 8 Mar 2023 14:48:13 +0000 (20:18 +0530)]
Merge pull request #1604 from irhl/patch-1
plugins/wallpaper: update link
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
NRK [Sun, 5 Mar 2023 12:43:08 +0000 (18:43 +0600)]
add some critical comments
birik [Sun, 5 Mar 2023 09:07:04 +0000 (09:07 +0000)]
plugins/wallpaper: update link
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
Henri Bourcereau [Tue, 28 Feb 2023 15:26:36 +0000 (16:26 +0100)]
Create quitcd script for nushell
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.
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
NRK [Sat, 25 Feb 2023 07:27:48 +0000 (13:27 +0600)]
convert_tilde: return whether the conversion was done or not
NRK [Sat, 25 Feb 2023 07:18:29 +0000 (13:18 +0600)]
handle tilde more correctly
closes: https://github.com/jarun/nnn/issues/1596
amalgame21 [Sat, 25 Feb 2023 09:52:33 +0000 (09:52 +0000)]
Add old 1997-2003 .doc and .xls support
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
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
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
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
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.
Arun Prakash Jana [Sun, 19 Feb 2023 02:58:20 +0000 (08:28 +0530)]
Update copyright year
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
NRK [Fri, 17 Feb 2023 14:12:07 +0000 (20:12 +0600)]
fix shellcheck issues
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
NRK [Fri, 17 Feb 2023 13:51:57 +0000 (19:51 +0600)]
plugin-helper: add nnn_use_selection()
NRK [Fri, 17 Feb 2023 13:24:45 +0000 (19:24 +0600)]
export NNN_PREFER_SELECTION to all plugins
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.
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
Luuk van Baal [Fri, 17 Feb 2023 00:45:17 +0000 (01:45 +0100)]
Preview-tui restore current working directory
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
Luuk van Baal [Fri, 17 Feb 2023 00:45:17 +0000 (01:45 +0100)]
Preview-tui hide wezterm split-pane output
Arun Prakash Jana [Sun, 12 Feb 2023 19:35:36 +0000 (01:05 +0530)]
Update readme
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
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_`.
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
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>
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.
Nizamuddin Sulieman [Thu, 2 Feb 2023 08:14:56 +0000 (16:14 +0800)]
feat(preview-tui): add `wezterm` support
Arun Prakash Jana [Tue, 31 Jan 2023 13:06:26 +0000 (18:36 +0530)]
Optimize listed selection size calculation
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
Fernando Ramos [Sun, 29 Jan 2023 22:37:24 +0000 (23:37 +0100)]
preview-tui: add chafa and PREFERRED_IMAGE_VIEWER env variable
Arun [Mon, 30 Jan 2023 01:19:00 +0000 (06:49 +0530)]
Merge pull request #1575 from luukvbaal/colemak
Update colemak patch
Luuk van Baal [Sun, 29 Jan 2023 22:05:49 +0000 (23:05 +0100)]
Update colemak patch
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