Arun Prakash Jana
33126ee813
Prepare for release v4.9 Elixir
2023-08-27 09:55:13 +05:30
Quan Tong
d220c50773
Double-width icons can cause duplicated first characters in the filename on macOS
2023-08-11 06:54:15 +07:00
Arun Prakash Jana
693ba757c0
Fix #1704 - Show only selected file name if sel is preferred
2023-08-05 23:53:01 +05:30
Arun Prakash Jana
3539e5c1b1
Update help
2023-07-28 20:52:21 +05:30
ANtlord
dedf0554e5
Jump to the next young file
...
Forward jumping to the next young file is implemented. The starting
position from which the next young file is searched is the next
position. If no young file has been found, the search starts from the
beginning. It stops at the initial position where the search has
started.
2023-07-25 08:17:21 +06:00
NRK
db8b61866b
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.
2023-07-01 08:56:18 +06:00
NRK
4c2ce0a84d
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.
2023-06-15 08:49:30 +06:00
NRK
b2b830e69d
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
2023-05-26 19:31:00 +06:00
Arun
04d9f6738d
Merge pull request #1650 from leo-arch/master
...
Fix crash when PWD is set to empty string
2023-05-19 01:57:34 +05:30
NRK
16899bda53
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.
2023-05-15 11:29:47 +06:00
leo-arch
4babedc3e4
Fix crash when PWD is set to empty string
...
nnn crashes when PWD is set to empty string: `PWD="" nnn`
2023-05-14 20:12:04 +00:00
Arun Prakash Jana
5d81aeb477
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.
2023-04-29 21:53:49 +05:30
Arun Prakash Jana
8a1dce888a
config option to specify archive mounter utility
2023-04-14 01:47:50 +05:30
Arun Prakash Jana
6dd8cf8b4d
Happy Birthday nnn!
...
Prepare for release v4.8 Spritz!
2023-04-13 18:37:42 +05:30
Kian-Meng Ang
3d1bc6e8e5
Fix typos
...
Found via `codespell -L noice,nd,fils,numer,caf,iterm`
2023-04-03 12:49:03 +08:00
NRK
57882ffab7
add shell_escape() to properly escape filenames fed to shell
...
Fixes: https://github.com/jarun/nnn/issues/1615
2023-03-22 10:09:39 +06:00
NRK
003228afba
add some critical comments
2023-03-05 18:43:08 +06:00
NRK
3a30211e6c
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.
2023-02-26 18:13:26 +06:00
NRK
8dbd9da0cc
convert_tilde: return whether the conversion was done or not
2023-02-25 21:15:55 +06:00
NRK
a59a91c312
handle tilde more correctly
...
closes: https://github.com/jarun/nnn/issues/1596
2023-02-25 21:15:46 +06:00
Arun Prakash Jana
b874da395c
Update copyright year
2023-02-19 08:28:20 +05:30
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
Arun Prakash Jana
58b77411c8
Optimize listed selection size calculation
2023-01-31 18:36:26 +05:30
Arun Prakash Jana
33827109d5
Show total size of non-filtered selected files in a directory.
2023-01-30 00:14:54 +05:30
Arun Prakash Jana
b80e047d50
Set defaults for some multiple choice prompts
...
Archive options: listing
Create new options: create file
Open with options: command type GUI
2023-01-28 09:50:58 +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
KlzXS
867726d870
Add debug message for bad call
2023-01-25 18:56:48 +01:00
KlzXS
7abfb77a13
Update signatures
2023-01-25 17:37:31 +01:00
KlzXS
827e84a56f
Simplify commands as plugins
...
Remove restrictions on $nnn
Update the plugin README
2023-01-25 17:33:15 +01:00
KlzXS
8d21e5e832
Revert using UTIL_SH_EXEC
2023-01-25 17:26:14 +01:00
Arun Prakash Jana
6b94911bc9
Revert "Simplify get_output()"
...
This reverts commit 6c23fdfd5f
.
2023-01-16 00:19:03 +05:30
Arun Prakash Jana
653cab9dff
Revert "Give better names to variables"
...
This reverts commit 1a2f783b75
.
2023-01-16 00:18:52 +05:30
Arun Prakash Jana
f9295780ef
Revert "Make CI happy"
...
This reverts commit 8a1e32d9eb
.
2023-01-16 00:18:41 +05:30
Arun Prakash Jana
cac5b9ba33
Revert "Concatenate arguments to pass to sh
"
...
This reverts commit 428c652d36
.
2023-01-16 00:18:19 +05:30
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
Arun
428c652d36
Concatenate arguments to pass to sh
...
Co-authored-by: KlzXS <klzx+github@klzx.cf>
Co-authored-by: Arun Prakash Jana <engineerarun@gmail.com>
2023-01-15 10:59:36 +05:30
KlzXS
8a1e32d9eb
Make CI happy
2023-01-14 23:18:22 +01:00
KlzXS
1a2f783b75
Give better names to variables
2023-01-14 22:31:16 +01:00
KlzXS
6c23fdfd5f
Simplify get_output()
2023-01-14 22:11:10 +01:00
KlzXS
87627a6e08
Remove unnecessary parameter from archive_selection()
2022-12-12 16:13:35 +01:00
Arun Prakash Jana
17ed380b57
Optimize link creation
2022-12-12 18:03:11 +05:30
Arun Prakash Jana
38d7090e64
Clear selection if all links are generated
2022-12-12 16:15:06 +05:30
Arun Prakash Jana
824e7a2c18
Show errno on link creation failure
2022-12-12 15:57:20 +05:30
Arun Prakash Jana
2e84716e76
Restore check to prevent overwriting hovered file when archiving
2022-12-12 14:45:04 +05:30
Arun Prakash Jana
e8bc59a816
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
2022-12-12 10:19:53 +05:30
Arun Prakash Jana
32a6a63f44
Improve archive creation handling
2022-12-12 02:43:23 +05:30
Arun Prakash Jana
cf46da60d9
Fix memory leak
2022-12-12 00:17:28 +05:30