]> Sergey Matveev's repositories - nnn.git/log
nnn.git
4 years agoContext code '+' to create context smartly
Arun Prakash Jana [Sun, 3 May 2020 10:46:14 +0000 (16:16 +0530)]
Context code '+' to create context smartly

4 years agoDecouple listpath and initpath
Arun Prakash Jana [Sun, 3 May 2020 09:55:19 +0000 (15:25 +0530)]
Decouple listpath and initpath

4 years agoShow messages appropriately
Arun Prakash Jana [Sun, 3 May 2020 09:44:26 +0000 (15:14 +0530)]
Show messages appropriately

4 years agoPlugin mimelist: support reading file list from (cmd as) plugin
Arun Prakash Jana [Sun, 3 May 2020 09:25:33 +0000 (14:55 +0530)]
Plugin mimelist: support reading file list from (cmd as) plugin

4 years agobrowse: fix nnn -e (#549)
Danh Doan [Sun, 3 May 2020 04:26:16 +0000 (04:26 +0000)]
browse: fix nnn -e (#549)

The current code will start editor if the mime doesn't start with
"text/". But, we want the opposite.

Simplify the check by using `strncmp` instead.

We may improve by writing a helper: `start_withs` in the future.

This change also cleans -Wstrict-aliasing on Ubuntu 16.04 LTS

4 years agoSimplify unescape() in no locale mode
Arun Prakash Jana [Sat, 2 May 2020 21:22:48 +0000 (02:52 +0530)]
Simplify unescape() in no locale mode

4 years agoDim file details in detail mode
Arun Prakash Jana [Sat, 2 May 2020 14:28:10 +0000 (19:58 +0530)]
Dim file details in detail mode

4 years agoFix: BSD expr syntax error on empty $NNNLVL (#546)
Rami3L [Sat, 2 May 2020 04:14:19 +0000 (12:14 +0800)]
Fix: BSD expr syntax error on empty $NNNLVL (#546)

5 years agoUpdate docs
Arun Prakash Jana [Fri, 1 May 2020 22:55:42 +0000 (04:25 +0530)]
Update docs

5 years agoUpdate docs
Arun Prakash Jana [Fri, 1 May 2020 15:56:56 +0000 (21:26 +0530)]
Update docs

5 years agoInstall logo to desktop icons (#542)
lvgx [Fri, 1 May 2020 15:58:07 +0000 (17:58 +0200)]
Install logo to desktop icons (#542)

This shows the "n³" logo as  icon in application menus, when desktop file is
installed (using `install-desktop` make target).

5 years agoAdd a logo for nnn (n³) (#544)
lvgx [Fri, 1 May 2020 15:47:03 +0000 (17:47 +0200)]
Add a logo for nnn (n³) (#544)

"n³" on a black knight chess piece/black horse head.

5 years agoSupport $_Z_DATA environment variable (#545)
step [Fri, 1 May 2020 09:36:19 +0000 (11:36 +0200)]
Support $_Z_DATA environment variable (#545)

Support `$_Z_DATA` environment variable per z's documentation https://github.com/rupa/z/blob/dcd5541e7dc37a3a32885565539c6fb1479af26f/z.1#L78.
`$_Z_DATA` allows changing the default location of the z database file.

5 years agoMove installation section to Wiki
Arun Prakash Jana [Fri, 1 May 2020 05:51:25 +0000 (11:21 +0530)]
Move installation section to Wiki

5 years agoUpdate autogen packages
Arun Prakash Jana [Fri, 1 May 2020 05:15:25 +0000 (10:45 +0530)]
Update autogen packages

5 years agoNew logo: n³
Arun Prakash Jana [Tue, 28 Apr 2020 12:52:09 +0000 (18:22 +0530)]
New logo: n³

5 years agoRandomize mocp
Arun Prakash Jana [Mon, 27 Apr 2020 03:05:43 +0000 (08:35 +0530)]
Randomize mocp

5 years agoUse mem* function
Arun Prakash Jana [Mon, 27 Apr 2020 02:55:13 +0000 (08:25 +0530)]
Use mem* function

5 years agoLet mocp shuffle
Arun Prakash Jana [Mon, 27 Apr 2020 02:53:22 +0000 (08:23 +0530)]
Let mocp shuffle

5 years agoRandomize mocp playlist
Arun Prakash Jana [Sun, 26 Apr 2020 19:47:03 +0000 (01:17 +0530)]
Randomize mocp playlist

5 years agoVarious plugin improvements
Arun Prakash Jana [Sun, 26 Apr 2020 18:35:11 +0000 (00:05 +0530)]
Various plugin improvements

5 years agoOptimize dups (#539)
KlzXS [Sun, 26 Apr 2020 16:55:03 +0000 (18:55 +0200)]
Optimize dups (#539)

5 years agoShow error at source
Arun Prakash Jana [Sun, 26 Apr 2020 08:35:56 +0000 (14:05 +0530)]
Show error at source

5 years agoFix #537
Arun Prakash Jana [Sun, 26 Apr 2020 08:24:12 +0000 (13:54 +0530)]
Fix #537

5 years agoFix buffer cleanup
Arun Prakash Jana [Sun, 26 Apr 2020 05:29:01 +0000 (10:59 +0530)]
Fix buffer cleanup

5 years agoFix buffer cleanup
Arun Prakash Jana [Sat, 25 Apr 2020 21:07:16 +0000 (02:37 +0530)]
Fix buffer cleanup

5 years agoUse memrchr if available
Arun Prakash Jana [Sat, 25 Apr 2020 19:33:17 +0000 (01:03 +0530)]
Use memrchr if available

5 years agoResolve path in list mode
Arun Prakash Jana [Sat, 25 Apr 2020 15:06:10 +0000 (20:36 +0530)]
Resolve path in list mode

5 years agoMinor refactor
Arun Prakash Jana [Fri, 24 Apr 2020 19:58:01 +0000 (01:28 +0530)]
Minor refactor

5 years agoSilently ignore invalid paths (documented)
Arun Prakash Jana [Fri, 24 Apr 2020 18:18:47 +0000 (23:48 +0530)]
Silently ignore invalid paths (documented)

5 years agoFix #532: support picker and list modes together
Arun Prakash Jana [Fri, 24 Apr 2020 18:05:43 +0000 (23:35 +0530)]
Fix #532: support picker and list modes together

5 years agoFix return and show error
Arun Prakash Jana [Fri, 24 Apr 2020 15:00:16 +0000 (20:30 +0530)]
Fix return and show error

5 years agoFix picker and list mode conflict (#533)
KlzXS [Fri, 24 Apr 2020 14:56:09 +0000 (16:56 +0200)]
Fix picker and list mode conflict (#533)

* Fix picker and list mode conflict

* Comment the change

5 years agoNNN_SEL: custom selection file
Arun Prakash Jana [Fri, 24 Apr 2020 04:42:24 +0000 (10:12 +0530)]
NNN_SEL: custom selection file

5 years agoBookmark key get priority over session
Arun Prakash Jana [Fri, 24 Apr 2020 04:24:43 +0000 (09:54 +0530)]
Bookmark key get priority over session

5 years agoUpdate completion scripts
Arun Prakash Jana [Fri, 24 Apr 2020 04:06:33 +0000 (09:36 +0530)]
Update completion scripts

5 years agoAdd nbak plugin to backup all nnn config (#528)
lvgx [Thu, 23 Apr 2020 17:35:58 +0000 (19:35 +0200)]
Add nbak plugin to backup all nnn config (#528)

* Add nbak plugin to backup all nnn config

* nbak: check cd, quote env

* nbak: print backup file name

* nbak: add --show option, to show shell config

* nbak: fix shellcheck warning

'type' is POSIX complient, AND we check that we're actually running
bash, but shellcheck can't understand this...
Then '-o' is POSIX complient too, but shellcheck thinks it's "not well defined".

* nbak: variable renames, archive hierarchy changes

* nbak: fix variable expansion

* nbak: remove --show option

* nbak: call interactive bash/zsh to get fun/aliases

* Add nbak entry in plugins/README.md

* nbak: change archive hierarchy

* plugins/README.md: make nbak description shorter

5 years agoPlugin improvements (#531)
KlzXS [Mon, 20 Apr 2020 17:09:30 +0000 (19:09 +0200)]
Plugin improvements (#531)

* Added padding for numbers in .nmv

* Add skim as an option in fzopen

* Remove unnecessary eval

Thanks @leovilok!

Co-Authored-By: lvgx <l@vgx.fr>
* Added note about whitespace

Co-authored-by: lvgx <l@vgx.fr>
5 years agoAdd nvim as a diff tool for getplugs plugin (#527)
Krisan Alifari [Mon, 20 Apr 2020 16:49:35 +0000 (23:49 +0700)]
Add nvim as a diff tool for getplugs plugin (#527)

* Add nvim as a diff tool for getplugs plugin

* Comment out `is_cmd_exists()`

* Add nvim diff tool for diffs plugin

* Add $EDITOR to nuke plugin for editing/reading text file format

* Modify diff command to fix CircleCI failures

* Fix getplugs prompt

* Allow nuke to use custom $PAGER

5 years agoDo a complete erase
Arun Prakash Jana [Sat, 18 Apr 2020 21:41:12 +0000 (03:11 +0530)]
Do a complete erase

5 years agoFix listing files directly under /
Arun Prakash Jana [Sat, 18 Apr 2020 09:38:23 +0000 (15:08 +0530)]
Fix listing files directly under /

5 years agoRemove hacky single path handling
Arun Prakash Jana [Sat, 18 Apr 2020 08:05:57 +0000 (13:35 +0530)]
Remove hacky single path handling

5 years agoFix #520: minimal erasure
Arun Prakash Jana [Sat, 18 Apr 2020 01:48:35 +0000 (07:18 +0530)]
Fix #520: minimal erasure

5 years agoUpdate issue template, add feature template
Arun Prakash Jana [Sat, 18 Apr 2020 01:28:19 +0000 (06:58 +0530)]
Update issue template, add feature template

5 years agoFix #526: persistent session
Arun Prakash Jana [Fri, 17 Apr 2020 23:24:07 +0000 (04:54 +0530)]
Fix #526: persistent session

5 years agoFix #523: handle NNN_PIPE (#525)
Todd Yamakawa [Fri, 17 Apr 2020 12:21:57 +0000 (07:21 -0500)]
Fix #523: handle NNN_PIPE (#525)

Co-authored-by: Todd Yamakawa <todd.yamakawa@arm.com>
5 years agoSave offset in key-val pairs
Arun Prakash Jana [Fri, 17 Apr 2020 08:13:25 +0000 (13:43 +0530)]
Save offset in key-val pairs

5 years agoFix #523: create NNN_PIPE early
Arun Prakash Jana [Fri, 17 Apr 2020 03:23:44 +0000 (08:53 +0530)]
Fix #523: create NNN_PIPE early

5 years agonuke: add lowdown as alternative markdown viewer (#524)
lvgx [Fri, 17 Apr 2020 02:41:08 +0000 (04:41 +0200)]
nuke: add lowdown as alternative markdown viewer (#524)

See https://kristaps.bsd.lv/lowdown/

5 years agoExperimental: guards to reduce repeat screen redraws
Arun Prakash Jana [Thu, 16 Apr 2020 12:15:58 +0000 (17:45 +0530)]
Experimental: guards to reduce repeat screen redraws

5 years agoGo to first file or next match
Arun Prakash Jana [Wed, 15 Apr 2020 22:12:36 +0000 (03:42 +0530)]
Go to first file or next match

5 years agoEnv var NNN_LOCKER
Arun Prakash Jana [Wed, 15 Apr 2020 18:59:45 +0000 (00:29 +0530)]
Env var NNN_LOCKER

5 years agoFix #520
Arun Prakash Jana [Wed, 15 Apr 2020 17:06:33 +0000 (22:36 +0530)]
Fix #520

5 years agoFix build break
Arun Prakash Jana [Wed, 15 Apr 2020 15:35:10 +0000 (21:05 +0530)]
Fix build break

5 years agoOne-pass key-val pair parsing for bms and plugs
Arun Prakash Jana [Wed, 15 Apr 2020 15:13:26 +0000 (20:43 +0530)]
One-pass key-val pair parsing for bms and plugs

5 years agoShow entry even if no permission
Arun Prakash Jana [Wed, 15 Apr 2020 12:22:21 +0000 (17:52 +0530)]
Show entry even if no permission

5 years agoOptimized xstrlen(), xstrdup()
Arun Prakash Jana [Wed, 15 Apr 2020 09:30:40 +0000 (15:00 +0530)]
Optimized xstrlen(), xstrdup()

5 years agoRefactor set_time_type()
Arun Prakash Jana [Tue, 14 Apr 2020 17:08:33 +0000 (22:38 +0530)]
Refactor set_time_type()

5 years agoCheck for file first (more in number)
Arun Prakash Jana [Tue, 14 Apr 2020 15:29:37 +0000 (20:59 +0530)]
Check for file first (more in number)

5 years agoMInor refactor
Arun Prakash Jana [Tue, 14 Apr 2020 04:24:42 +0000 (09:54 +0530)]
MInor refactor

5 years agoUpdate docs
Arun Prakash Jana [Mon, 13 Apr 2020 21:32:53 +0000 (03:02 +0530)]
Update docs

5 years agoUpdate docs
Arun Prakash Jana [Mon, 13 Apr 2020 19:55:54 +0000 (01:25 +0530)]
Update docs

5 years agoReduce the scope of loop variables
Arun Prakash Jana [Mon, 13 Apr 2020 17:51:15 +0000 (23:21 +0530)]
Reduce the scope of loop variables

5 years agoFix typo (#516)
Katrin Leinweber [Mon, 13 Apr 2020 17:09:32 +0000 (19:09 +0200)]
Fix typo (#516)

5 years agoMake NNN_COLORS override NO_COLORS (#515)
lvgx [Mon, 13 Apr 2020 16:51:56 +0000 (18:51 +0200)]
Make NNN_COLORS override NO_COLORS (#515)

5 years agoFix build break
Arun Prakash Jana [Mon, 13 Apr 2020 16:25:11 +0000 (21:55 +0530)]
Fix build break

5 years agoFix build break
Arun Prakash Jana [Mon, 13 Apr 2020 16:12:23 +0000 (21:42 +0530)]
Fix build break

5 years agoFix symlink to dir indicator in detail mode
Arun Prakash Jana [Mon, 13 Apr 2020 15:12:19 +0000 (20:42 +0530)]
Fix symlink to dir indicator in detail mode

5 years agoUse memccpy
Arun Prakash Jana [Mon, 13 Apr 2020 15:05:14 +0000 (20:35 +0530)]
Use memccpy

5 years agoHappy Birthday nnn! 🍰 v3.1
Arun Prakash Jana [Mon, 13 Apr 2020 03:02:32 +0000 (08:32 +0530)]
Happy Birthday nnn! 🍰

5 years agoSupport $FZF_DEFAULT_COMMAND on fzopen plugin (#514)
Krisan Alifari [Sun, 12 Apr 2020 13:36:59 +0000 (20:36 +0700)]
Support $FZF_DEFAULT_COMMAND on fzopen plugin (#514)

5 years agoChange nav-as-you-type to type-to-nav
Arun Prakash Jana [Sun, 12 Apr 2020 13:31:02 +0000 (19:01 +0530)]
Change nav-as-you-type to type-to-nav

5 years agoSimplified dirname()
Arun Prakash Jana [Sun, 12 Apr 2020 12:14:29 +0000 (17:44 +0530)]
Simplified dirname()

5 years agoSimplify finding valid parent
Arun Prakash Jana [Sun, 12 Apr 2020 11:42:14 +0000 (17:12 +0530)]
Simplify finding valid parent

5 years agoFix indent
Arun Prakash Jana [Sun, 12 Apr 2020 03:26:56 +0000 (08:56 +0530)]
Fix indent

5 years agoOpinionated xstrlcpy changes (#513)
Saagar Jha [Sun, 12 Apr 2020 00:35:14 +0000 (17:35 -0700)]
Opinionated xstrlcpy changes (#513)

* Unvectorize xstrlcpy

On all libcs I could find, memcpy does a better job than we can.

* Rename xstrlcpy to xstrsncpy to avoid confusion

The semantics of our xstrlcpy differed slightly from strlcpy; we return
the number of copied characters; strlcpy returns the strlen(src).
strscpy from Linux is similar except it returns the number of copied
characters sans the NUL byte, so this is named strsncpy to be different.

5 years agoMinor refactor
Arun Prakash Jana [Sat, 11 Apr 2020 17:46:59 +0000 (23:16 +0530)]
Minor refactor

5 years agoMinor refactor
Arun Prakash Jana [Sat, 11 Apr 2020 14:53:24 +0000 (20:23 +0530)]
Minor refactor

5 years agoUpdate docs
Arun Prakash Jana [Sat, 11 Apr 2020 05:46:21 +0000 (11:16 +0530)]
Update docs

5 years agoHover on dir and connect remote
Arun Prakash Jana [Fri, 10 Apr 2020 13:02:28 +0000 (18:32 +0530)]
Hover on dir and connect remote

5 years agoUpdate docs
Arun Prakash Jana [Fri, 10 Apr 2020 12:30:52 +0000 (18:00 +0530)]
Update docs

5 years agoMinor reformat
Arun Prakash Jana [Thu, 9 Apr 2020 13:43:42 +0000 (19:13 +0530)]
Minor reformat

5 years agoShow status bar info in context color
Arun Prakash Jana [Thu, 9 Apr 2020 11:22:36 +0000 (16:52 +0530)]
Show status bar info in context color

5 years agoUpdate docs
Arun Prakash Jana [Thu, 9 Apr 2020 04:18:04 +0000 (09:48 +0530)]
Update docs

5 years agox to extract archive
Arun Prakash Jana [Tue, 7 Apr 2020 15:48:24 +0000 (21:18 +0530)]
x to extract archive

5 years agoFix #511: chew ling strings at filter prompt
Arun Prakash Jana [Mon, 6 Apr 2020 16:07:36 +0000 (21:37 +0530)]
Fix #511: chew ling strings at filter prompt

5 years agoFix #511
Arun Prakash Jana [Mon, 6 Apr 2020 15:36:39 +0000 (21:06 +0530)]
Fix #511

5 years agoFix #510
Arun Prakash Jana [Mon, 6 Apr 2020 14:00:16 +0000 (19:30 +0530)]
Fix #510

5 years agoA nocolor msg print
Arun Prakash Jana [Sun, 5 Apr 2020 16:23:15 +0000 (21:53 +0530)]
A nocolor msg print

5 years agoRemove redundant calls
Arun Prakash Jana [Sun, 5 Apr 2020 16:15:30 +0000 (21:45 +0530)]
Remove redundant calls

5 years agoFix jump on canceled duplicate
Arun Prakash Jana [Sun, 5 Apr 2020 09:12:32 +0000 (14:42 +0530)]
Fix jump on canceled duplicate

5 years agoSupport only NO_COLOR, revert -C to disable color
Arun Prakash Jana [Sun, 5 Apr 2020 07:34:14 +0000 (13:04 +0530)]
Support only NO_COLOR, revert -C to disable color

5 years agoAdd suport for "standard" NO_COLOR env variable (#508)
lvgx [Sun, 5 Apr 2020 01:56:18 +0000 (03:56 +0200)]
Add suport for "standard" NO_COLOR env variable (#508)

See https://no-color.org

5 years agoFix screen not cleared with drag down on narrow terms
Arun Prakash Jana [Sun, 5 Apr 2020 01:07:26 +0000 (06:37 +0530)]
Fix screen not cleared with drag down on narrow terms

5 years agoWith dimming, @ is not required for symlink to dir
Arun Prakash Jana [Sun, 5 Apr 2020 01:00:28 +0000 (06:30 +0530)]
With dimming, @ is not required for symlink to dir

5 years agoOption -C to disable color
Arun Prakash Jana [Sun, 5 Apr 2020 00:23:46 +0000 (05:53 +0530)]
Option -C to disable color

5 years agoStatus bar in context color
Arun Prakash Jana [Sat, 4 Apr 2020 18:09:21 +0000 (23:39 +0530)]
Status bar in context color

5 years agoAdd script to generate files
Arun Prakash Jana [Sat, 4 Apr 2020 04:27:21 +0000 (09:57 +0530)]
Add script to generate files

5 years agoUpdate docs
Arun Prakash Jana [Fri, 3 Apr 2020 14:13:33 +0000 (19:43 +0530)]
Update docs

5 years ago(Sh)TAB should get a new context if required
Arun Prakash Jana [Thu, 2 Apr 2020 15:17:15 +0000 (20:47 +0530)]
(Sh)TAB should get a new context if required