]> Sergey Matveev's repositories - nnn.git/log
nnn.git
6 years agoFix Fedora 25 deps v1.7
Arun Prakash Jana [Tue, 27 Feb 2018 20:44:53 +0000 (02:14 +0530)]
Fix Fedora 25 deps

6 years agoPrepare for release v1.7
Arun Prakash Jana [Tue, 27 Feb 2018 20:24:42 +0000 (01:54 +0530)]
Prepare for release v1.7

6 years agoUpdate documentation on vidir
Arun Prakash Jana [Tue, 27 Feb 2018 03:31:39 +0000 (09:01 +0530)]
Update documentation on vidir

6 years agoUpdate README
Arun Prakash Jana [Mon, 26 Feb 2018 12:20:31 +0000 (17:50 +0530)]
Update README

6 years agoAdd shortcut ^G to quit and cd
Arun Prakash Jana [Sat, 24 Feb 2018 16:13:41 +0000 (21:43 +0530)]
Add shortcut ^G to quit and cd

6 years agoUpdate changelog
Arun Prakash Jana [Sat, 24 Feb 2018 15:38:49 +0000 (21:08 +0530)]
Update changelog

6 years agoUse macros for external utils
Arun Prakash Jana [Sat, 24 Feb 2018 15:15:50 +0000 (20:45 +0530)]
Use macros for external utils

6 years agoSupport batch file rename in vidir
Arun Prakash Jana [Sat, 24 Feb 2018 14:16:58 +0000 (19:46 +0530)]
Support batch file rename in vidir

6 years agoUpdate features
Arun Prakash Jana [Sat, 24 Feb 2018 09:16:33 +0000 (14:46 +0530)]
Update features

6 years agoUpdate Changelog
Arun Prakash Jana [Sat, 24 Feb 2018 08:04:46 +0000 (13:34 +0530)]
Update Changelog

6 years agoAdd packages for CentOS 7.2, Fedora 25 and 27
Arun Prakash Jana [Sat, 24 Feb 2018 05:33:05 +0000 (11:03 +0530)]
Add packages for CentOS 7.2, Fedora 25 and 27

6 years agoUpdate copyright year
Arun Prakash Jana [Sat, 24 Feb 2018 05:25:35 +0000 (10:55 +0530)]
Update copyright year

6 years agoEnable file extract in nav-as-you-type mode
Arun Prakash Jana [Sat, 24 Feb 2018 05:13:06 +0000 (10:43 +0530)]
Enable file extract in nav-as-you-type mode

6 years agoDocument file path copy usage sans clipboard
Arun Prakash Jana [Sat, 24 Feb 2018 03:03:22 +0000 (08:33 +0530)]
Document file path copy usage sans clipboard

6 years agoSupport file path copy when X is unavailable
Arun Prakash Jana [Sat, 24 Feb 2018 02:19:59 +0000 (07:49 +0530)]
Support file path copy when X is unavailable

6 years agoAdd Gentoo as packager, FreeBSD command
Arun Prakash Jana [Fri, 23 Feb 2018 23:49:46 +0000 (05:19 +0530)]
Add Gentoo as packager, FreeBSD command

6 years agoRe-populate after spawning shell
Arun Prakash Jana [Thu, 15 Feb 2018 13:51:58 +0000 (19:21 +0530)]
Re-populate after spawning shell

6 years agoStart dir watch, preserve cur entry when navigate-as-you-type is disabled
Arun Prakash Jana [Tue, 13 Feb 2018 07:58:18 +0000 (13:28 +0530)]
Start dir watch, preserve cur entry when navigate-as-you-type is disabled

6 years agoBetter message for multi-copy
Arun Prakash Jana [Sun, 4 Feb 2018 17:24:58 +0000 (22:54 +0530)]
Better message for multi-copy

6 years agoDo not show quotes on ^K
Arun Prakash Jana [Mon, 29 Jan 2018 15:19:38 +0000 (20:49 +0530)]
Do not show quotes on ^K

6 years agoShow copymode on/off
Arun Prakash Jana [Sun, 28 Jan 2018 07:14:29 +0000 (12:44 +0530)]
Show copymode on/off

6 years agoInterpret ^T in filter mode
Arun Prakash Jana [Sun, 28 Jan 2018 06:53:23 +0000 (12:23 +0530)]
Interpret ^T in filter mode

6 years agoSupport file path quote on single copy
Arun Prakash Jana [Sun, 28 Jan 2018 06:34:56 +0000 (12:04 +0530)]
Support file path quote on single copy

6 years agoSupport file path quote on copy
Arun Prakash Jana [Sun, 28 Jan 2018 06:03:12 +0000 (11:33 +0530)]
Support file path quote on copy

6 years agoMakefile: use PKG_CONFIG instead of hardcoding pkg-config (#78)
maxice8 [Mon, 22 Jan 2018 13:09:17 +0000 (11:09 -0200)]
Makefile: use PKG_CONFIG instead of hardcoding pkg-config (#78)

6 years agoUse macro for CRC8 table length
Arun Prakash Jana [Fri, 19 Jan 2018 15:09:23 +0000 (20:39 +0530)]
Use macro for CRC8 table length

6 years agoRedraw if no entries when navigate-as-you-type is turned off
Arun Prakash Jana [Wed, 17 Jan 2018 14:52:07 +0000 (20:22 +0530)]
Redraw if no entries when navigate-as-you-type is turned off

The main reason to do this is to start watching the current dir for changes. In
any case, this does not harm; if there are dir entries shown on redraw that's
better than showing nothing.

6 years agokeybind to pin current dir - b
Arun Prakash Jana [Wed, 17 Jan 2018 14:02:22 +0000 (19:32 +0530)]
keybind to pin current dir - b

6 years agoSet to last selection if filter is empty
Arun Prakash Jana [Sun, 14 Jan 2018 08:35:19 +0000 (14:05 +0530)]
Set to last selection if filter is empty

6 years agoUse consistent date format
Arun Prakash Jana [Sun, 14 Jan 2018 07:13:20 +0000 (12:43 +0530)]
Use consistent date format

6 years agoImprove common message handling
Arun Prakash Jana [Sun, 14 Jan 2018 06:41:46 +0000 (12:11 +0530)]
Improve common message handling

6 years agoUse concise and lowercase messages
Arun Prakash Jana [Sun, 14 Jan 2018 04:48:53 +0000 (10:18 +0530)]
Use concise and lowercase messages

6 years agoReplace snprintf() with xstrlcpy()
Arun Prakash Jana [Sat, 13 Jan 2018 21:57:24 +0000 (03:27 +0530)]
Replace snprintf() with xstrlcpy()

6 years agoSupport multiple file path copy
Arun Prakash Jana [Sat, 13 Jan 2018 20:13:30 +0000 (01:43 +0530)]
Support multiple file path copy

Design overview:

We are introducing multiple file path copy as a mode which can be toggled using
the keybind `^Y`. `^K` works as the individual entry selector. If the user wants
to select a range, (s)he can press `^Y` on the first entry and `^Y` on the last
entry.

We subscribe to notifications, so we need a fail-proof way to detect changes in
the directory contents. For example, if a file is deleted, it becomes difficult
to get the names of all the files in a range containing that file. If the file
is on a range boundary it would lead to wrong calculations. To handle this the
right way we use CRC8 checksum of all the visible entries in the directory. The
checksum is calculated based on the file information buffer. If the CRC changes
on a redraw(), we reset the multi-select mode.

New line (`\n`) works as the delimiter between file paths. Note that you may have
to disable IFS in the `NNN_COPIER` script to show file paths separated by spaces.

6 years agoKey changes: ^F - extract archive, ^X - quit
Arun Prakash Jana [Sat, 13 Jan 2018 03:58:29 +0000 (09:28 +0530)]
Key changes: ^F - extract archive, ^X - quit

6 years agomake Makefile more packaging friendly (#76)
Jan Chren [Wed, 10 Jan 2018 16:32:48 +0000 (17:32 +0100)]
make Makefile more packaging friendly  (#76)

* make Makefile more packaging friendly

* packagecore: run `strip` before installing

6 years agoRemap ^S and ^Q.
Arun Prakash Jana [Tue, 9 Jan 2018 08:51:09 +0000 (14:21 +0530)]
Remap ^S and ^Q.

The replacement keys are:

^J - toggle du mode
^Y - quit

The change is done because ^S, ^Q keybinds are lost in the following case:
- start nnn
- navigate to a different directory
- spawn a shell
- exit the shell

The issue happens only with the 'special' keybinds like ^S, ^Q, ^Z... which get
their original shell interpretation back.

So we are replacing these 2 keybinds with 2 'non-special' combinations.

6 years agoSufficient to use refresh() after exitcurses()
Arun Prakash Jana [Tue, 9 Jan 2018 08:02:57 +0000 (13:32 +0530)]
Sufficient to use refresh() after exitcurses()

6 years agoAdd shortcut ^S to toggle du mode
Arun Prakash Jana [Mon, 8 Jan 2018 19:01:15 +0000 (00:31 +0530)]
Add shortcut ^S to toggle du mode

6 years agoExplicitly optimize modulo ops
Arun Prakash Jana [Mon, 8 Jan 2018 18:43:11 +0000 (00:13 +0530)]
Explicitly optimize modulo ops

6 years agoOpen with GUI app - Suppress stdout, stderr
Arun Prakash Jana [Sun, 7 Jan 2018 21:57:41 +0000 (03:27 +0530)]
Open with GUI app - Suppress stdout, stderr

6 years agoSimplify detail printing
Arun Prakash Jana [Sun, 7 Jan 2018 14:38:59 +0000 (20:08 +0530)]
Simplify detail printing

6 years agoChange bookmark prompt and pin dir keys.
Arun Prakash Jana [Sun, 7 Jan 2018 03:44:25 +0000 (09:14 +0530)]
Change bookmark prompt and pin dir keys.

New keys:

- bookmark prompt (^B)
- pin directory (B)

The intention of the change is to facilitate opening the bookmark prompt in
navigate-as-you-type mode. The bookmark prompt is used more than the pin
current directory option.

6 years agoHighest priority to desktop search, rename
Arun Prakash Jana [Sat, 6 Jan 2018 21:57:09 +0000 (03:27 +0530)]
Highest priority to desktop search, rename

6 years agoEnable extra shortcuts in navigate-as-you-type mode
Arun Prakash Jana [Sat, 6 Jan 2018 06:28:01 +0000 (11:58 +0530)]
Enable extra shortcuts in navigate-as-you-type mode

Enabled functionality:

- Copy file path (^K)
- Run desktop search utility (^/)
- Rename file (^R)
- Open with... (^O)
- Pin current directory (^B)
- Visit pinned directory (^V)
- Extract archive (^X)

6 years agoSwap weekday and month
Arun Prakash Jana [Sat, 6 Jan 2018 04:31:54 +0000 (10:01 +0530)]
Swap weekday and month

6 years agoUse a date format string
Arun Prakash Jana [Fri, 5 Jan 2018 22:29:36 +0000 (03:59 +0530)]
Use a date format string

6 years agoRearrange date format in file details
Arun Prakash Jana [Fri, 5 Jan 2018 22:25:57 +0000 (03:55 +0530)]
Rearrange date format in file details

6 years agoUse standard date formats. (#74)
codeliveroil [Fri, 5 Jan 2018 22:19:27 +0000 (14:19 -0800)]
Use standard date formats. (#74)

- For standard view, use ISO 8601 date format.
- For detailed view (i.e. stat), use default Linux date
  format. Also, remove GMT offset to avoid confusion in
  determining source of offset when reading alongside
  the local time zone.

6 years agoShow target for symlinks
Arun Prakash Jana [Thu, 4 Jan 2018 12:40:59 +0000 (18:10 +0530)]
Show target for symlinks

6 years agoThe *alloc() family is aligned
Arun Prakash Jana [Thu, 4 Jan 2018 12:16:06 +0000 (17:46 +0530)]
The *alloc() family is aligned

6 years agoWrap realloc() to return aligned address
Arun Prakash Jana [Thu, 4 Jan 2018 00:53:20 +0000 (06:23 +0530)]
Wrap realloc() to return aligned address

6 years agoUse aligned large buffers
Arun Prakash Jana [Sat, 30 Dec 2017 08:24:49 +0000 (13:54 +0530)]
Use aligned large buffers

6 years agoFix #73: How to discard changes and exit new/rename prompt
Arun Prakash Jana [Fri, 29 Dec 2017 05:49:37 +0000 (11:19 +0530)]
Fix #73: How to discard changes and exit new/rename prompt

6 years agoCheck alignment and enable -O3
Arun Prakash Jana [Fri, 29 Dec 2017 05:38:07 +0000 (11:08 +0530)]
Check alignment and enable -O3

6 years agoFix checkpatch reports
Arun Prakash Jana [Wed, 27 Dec 2017 20:17:44 +0000 (01:47 +0530)]
Fix checkpatch reports

6 years agoAdd FreeBSD as a package source (#72)
Dmitri Goutnik [Wed, 27 Dec 2017 19:48:05 +0000 (14:48 -0500)]
Add FreeBSD as a package source (#72)

6 years agoFree allocated resources using regfree (#71)
Daniel Lockyer [Wed, 27 Dec 2017 10:36:57 +0000 (10:36 +0000)]
Free allocated resources using regfree (#71)

6 years agoUse ffs() tweak.
Arun Prakash Jana [Tue, 26 Dec 2017 19:58:01 +0000 (01:28 +0530)]
Use ffs() tweak.

6 years agoRemove arm targets
Arun Prakash Jana [Tue, 26 Dec 2017 19:41:38 +0000 (01:11 +0530)]
Remove arm targets

6 years agoExplicitly cast opaque types
Arun Prakash Jana [Tue, 26 Dec 2017 19:02:26 +0000 (00:32 +0530)]
Explicitly cast opaque types

6 years agoTAB is not identified on OS X
Arun Prakash Jana [Tue, 26 Dec 2017 18:46:23 +0000 (00:16 +0530)]
TAB is not identified on OS X

6 years agoLookup xdg-open in PATH on non-Apple platforms (#70)
Dmitri Goutnik [Tue, 26 Dec 2017 18:23:20 +0000 (13:23 -0500)]
Lookup xdg-open in PATH on non-Apple platforms (#70)

6 years agoRetire Makefile.native
Arun Prakash Jana [Tue, 26 Dec 2017 18:19:47 +0000 (23:49 +0530)]
Retire Makefile.native

6 years agoUse ffs() instead of ffsl()
Arun Prakash Jana [Tue, 26 Dec 2017 18:03:32 +0000 (23:33 +0530)]
Use ffs() instead of ffsl()

6 years agoCross compile nnn on Travis CI
Arun Prakash Jana [Tue, 26 Dec 2017 17:41:48 +0000 (23:11 +0530)]
Cross compile nnn on Travis CI

6 years agoFix compiler warnings on FreeBSD 11.x (#69)
Dmitri Goutnik [Tue, 26 Dec 2017 15:52:45 +0000 (10:52 -0500)]
Fix compiler warnings on FreeBSD 11.x (#69)

6 years agoAdd openSUSE to packagers
Arun Prakash Jana [Tue, 26 Dec 2017 13:55:52 +0000 (19:25 +0530)]
Add openSUSE to packagers

6 years agoUpdate README
Arun Prakash Jana [Tue, 26 Dec 2017 04:34:10 +0000 (10:04 +0530)]
Update README

Update documentation

6 years agoUpdate README
Arun Prakash Jana [Mon, 25 Dec 2017 18:19:49 +0000 (23:49 +0530)]
Update README

6 years agoReplace getorder() by ffsl()
Arun Prakash Jana [Mon, 25 Dec 2017 17:57:37 +0000 (23:27 +0530)]
Replace getorder() by ffsl()

6 years agoOpenSUSE gcc fails at '-fno-tree-loop-vectorize' v1.6
Arun Prakash Jana [Mon, 25 Dec 2017 12:05:27 +0000 (17:35 +0530)]
OpenSUSE gcc fails at '-fno-tree-loop-vectorize'

6 years agoPrepare for release v1.6
Arun Prakash Jana [Mon, 25 Dec 2017 11:43:25 +0000 (17:13 +0530)]
Prepare for release v1.6

6 years agoAdd OpenSUSE Leap 42.3, reorder matrix
Arun Prakash Jana [Mon, 25 Dec 2017 11:11:49 +0000 (16:41 +0530)]
Add OpenSUSE Leap 42.3, reorder matrix

6 years agoSupport 'Open with...'
Arun Prakash Jana [Mon, 25 Dec 2017 10:25:53 +0000 (15:55 +0530)]
Support 'Open with...'

6 years agoOptimize xmemrchr()
Arun Prakash Jana [Sun, 24 Dec 2017 20:14:48 +0000 (01:44 +0530)]
Optimize xmemrchr()

6 years agoReduce sprintf() family usage
Arun Prakash Jana [Sun, 24 Dec 2017 18:58:12 +0000 (00:28 +0530)]
Reduce sprintf() family usage

6 years agoOptimize saving, matching old entry
Arun Prakash Jana [Sun, 24 Dec 2017 17:53:52 +0000 (23:23 +0530)]
Optimize saving, matching old entry

6 years agoShorten error messages
Arun Prakash Jana [Sun, 24 Dec 2017 15:52:54 +0000 (21:22 +0530)]
Shorten error messages

6 years agoLimit filter length to NAME_MAX from LINE_MAX
Arun Prakash Jana [Sun, 24 Dec 2017 15:50:36 +0000 (21:20 +0530)]
Limit filter length to NAME_MAX from LINE_MAX

6 years agoUse const if applicable
Arun Prakash Jana [Sun, 24 Dec 2017 15:33:23 +0000 (21:03 +0530)]
Use const if applicable

6 years agoUpdate documentation
Arun Prakash Jana [Sun, 24 Dec 2017 13:16:56 +0000 (18:46 +0530)]
Update documentation

6 years agoUsers understand 'DIR' easier then 'cwd'
Arun Prakash Jana [Sun, 24 Dec 2017 09:53:33 +0000 (15:23 +0530)]
Users understand 'DIR' easier then 'cwd'

6 years agoAdd option -b to open bookmark directly
Arun Prakash Jana [Sun, 24 Dec 2017 09:51:38 +0000 (15:21 +0530)]
Add option -b to open bookmark directly

6 years agoOrder numeric file names (helps with /proc)
Arun Prakash Jana [Sat, 23 Dec 2017 21:45:22 +0000 (03:15 +0530)]
Order numeric file names (helps with /proc)

6 years agoUpdate README
Arun Prakash Jana [Thu, 21 Dec 2017 19:52:08 +0000 (01:22 +0530)]
Update README

6 years agoReplace xstricmp() with strcoll()
Arun Prakash Jana [Thu, 21 Dec 2017 19:49:32 +0000 (01:19 +0530)]
Replace xstricmp() with strcoll()

6 years agoRemove redundant variable
Arun Prakash Jana [Thu, 21 Dec 2017 19:28:02 +0000 (00:58 +0530)]
Remove redundant variable

6 years agoConsider only symbolic or only nunmeric names
Arun Prakash Jana [Thu, 21 Dec 2017 19:26:15 +0000 (00:56 +0530)]
Consider only symbolic or only nunmeric names

6 years agoNo need to test end of numeric
Arun Prakash Jana [Thu, 21 Dec 2017 13:42:12 +0000 (19:12 +0530)]
No need to test end of numeric

6 years agoIgnore punctuation marks in file name compare. Fix xstrcmp().
Arun Prakash Jana [Thu, 21 Dec 2017 12:19:31 +0000 (17:49 +0530)]
Ignore punctuation marks in file name compare. Fix xstrcmp().

1. File name comparison method:
 - initially ignore white space and punctuation characters
 - run test for numeric values
 - if the remaining substrings match in case-insensitive compare, compare case
 - if they still match, see which one has more prefix symbols
 - if they still match, run a case-sensitive compare on complete strings

2. Fixed xstrcmp() to return diff instead of 0 and -1.

6 years agoUpdate README, performance numbers
Arun Prakash Jana [Wed, 20 Dec 2017 22:31:21 +0000 (04:01 +0530)]
Update README, performance numbers

6 years agoAdd file name len to entry structure
Arun Prakash Jana [Wed, 20 Dec 2017 16:50:28 +0000 (22:20 +0530)]
Add file name len to entry structure

6 years agoOffset can be derived
Arun Prakash Jana [Wed, 20 Dec 2017 02:48:37 +0000 (08:18 +0530)]
Offset can be derived

6 years agoRetire redundant variable
Arun Prakash Jana [Tue, 19 Dec 2017 19:12:11 +0000 (00:42 +0530)]
Retire redundant variable

6 years agoA fancier func to get order of 2
Arun Prakash Jana [Tue, 19 Dec 2017 18:31:32 +0000 (00:01 +0530)]
A fancier func to get order of 2

6 years agoReplace a large buf with global g_buf
Arun Prakash Jana [Tue, 19 Dec 2017 18:03:27 +0000 (23:33 +0530)]
Replace a large buf with global g_buf

6 years agoFix #50: use -O3, disable -ftree-loop-vectorize
Arun Prakash Jana [Tue, 19 Dec 2017 17:13:49 +0000 (22:43 +0530)]
Fix #50: use -O3, disable -ftree-loop-vectorize

6 years agoLink to performance factors
Arun Prakash Jana [Tue, 19 Dec 2017 15:19:54 +0000 (20:49 +0530)]
Link to performance factors

6 years agoUse exact number of bytes for each filename.
Arun Prakash Jana [Mon, 18 Dec 2017 19:46:03 +0000 (01:16 +0530)]
Use exact number of bytes for each filename.

Results in even less memory usage. The names are appended one after another.
The offsets are reset when the location of the memory changes die to realloc().

Other changes:

1. Use a debug mode print to measure time.
2. Remove redundant prefix when printing pointers in debug mode.