]> Sergey Matveev's repositories - nnn.git/log
nnn.git
4 years agoFix broken dir read from pipe
Arun Prakash Jana [Wed, 6 May 2020 13:33:29 +0000 (19:03 +0530)]
Fix broken dir read from pipe

4 years agoDrop fzy support
Arun Prakash Jana [Wed, 6 May 2020 13:11:01 +0000 (18:41 +0530)]
Drop fzy support

4 years agoAdd a bookmarks plugin that supports names (#558)
Todd Yamakawa [Wed, 6 May 2020 11:54:21 +0000 (06:54 -0500)]
Add a bookmarks plugin that supports names (#558)

Co-authored-by: Todd Yamakawa <todd.yamakawa@arm.com>
4 years agoUpdate docs
Arun Prakash Jana [Wed, 6 May 2020 05:49:39 +0000 (11:19 +0530)]
Update docs

4 years agoChange requires to dependencies
Arun Prakash Jana [Wed, 6 May 2020 05:29:57 +0000 (10:59 +0530)]
Change requires to dependencies

4 years agoUniform plugins
Arun Prakash Jana [Wed, 6 May 2020 05:12:29 +0000 (10:42 +0530)]
Uniform plugins

4 years agopreview-tui: fix tmux behaviour, del refs to nuke (#559)
lvgx [Wed, 6 May 2020 04:24:31 +0000 (06:24 +0200)]
preview-tui: fix tmux behaviour, del refs to nuke (#559)

As reported by @toddyamakawa

4 years agoPrevent open FIFO prom leaking to subprocess
Léo Villeveygoux [Tue, 5 May 2020 23:45:21 +0000 (01:45 +0200)]
Prevent open FIFO prom leaking to subprocess

This fix previews window staying open after nnn exits, because they
inherited open FIFO (in write mode) from parent nnn process, and never
close it.

4 years agoShorten column width
Arun Prakash Jana [Tue, 5 May 2020 23:17:35 +0000 (04:47 +0530)]
Shorten column width

4 years agoAdd a tmux/xterm based text previewer plugin (#557)
lvgx [Tue, 5 May 2020 23:08:10 +0000 (01:08 +0200)]
Add a tmux/xterm based text previewer plugin (#557)

Uses `NNN_FIFO`, minimal dependencies.

Co-authored-by: Todd Yamakawa <todd.yamakawa@arm.com>
Co-authored-by: Todd Yamakawa <todd.yamakawa@arm.com>
4 years agowhich prints to screen
Arun Prakash Jana [Tue, 5 May 2020 23:06:26 +0000 (04:36 +0530)]
which prints to screen

4 years agoUpdate docs
Arun Prakash Jana [Tue, 5 May 2020 20:15:04 +0000 (01:45 +0530)]
Update docs

4 years agoMinor previewer plugin update, docs update
Arun Prakash Jana [Tue, 5 May 2020 19:03:46 +0000 (00:33 +0530)]
Minor previewer plugin update, docs update

4 years agoAdd a tabbed/xembed based file previewer plugin (#552)
lvgx [Tue, 5 May 2020 18:58:57 +0000 (20:58 +0200)]
Add a tabbed/xembed based file previewer plugin (#552)

* Add a tabbed/xembed based file previewer plugin

This plugin is written in bash, because job control is not well
specified in POSIX sh (`jobs` can return anything).

We use `tabbed` [1] as a xembed [2] host, to have a single window
owning each previewer window.

Uses mpv, sxiv, zathura, and the nuke plugin.

[1]: http://tools.suckless.org/tabbed/
[2]: https://specifications.freedesktop.org/xembed-spec/xembed-spec-latest.html

* tabbed-preview: prevent focus steal with xdotool

* preview-tabbed: tabs->4 spaces

* preview-tabbed: add focus prevention timeout

4 years agoFix double free when starting in list mode
Arun Prakash Jana [Tue, 5 May 2020 18:05:14 +0000 (23:35 +0530)]
Fix double free when starting in list mode

4 years agoUpdate docs
Arun Prakash Jana [Tue, 5 May 2020 17:39:24 +0000 (23:09 +0530)]
Update docs

4 years agoDouble click only works on same item (#555)
0xACE [Tue, 5 May 2020 12:32:42 +0000 (14:32 +0200)]
Double click only works on same item (#555)

This patch disables accidental triggering of double clicking when you
are just single clicking on multiple objects fast.

4 years agoSEL_FIRST now displays the correct message (#556)
0xACE [Tue, 5 May 2020 12:19:26 +0000 (14:19 +0200)]
SEL_FIRST now displays the correct message (#556)

A bit scary when you get prompted to remove a file but you wanted to
select a file.

I also made sure all strings are correctly ordered.

4 years agoFix context range check
Arun Prakash Jana [Tue, 5 May 2020 11:44:42 +0000 (17:14 +0530)]
Fix context range check

4 years agoUpdate docs
Arun Prakash Jana [Mon, 4 May 2020 14:47:40 +0000 (20:17 +0530)]
Update docs

4 years agoUpdate docs
Arun Prakash Jana [Mon, 4 May 2020 04:20:31 +0000 (09:50 +0530)]
Update docs

4 years agoAdd an option to print hovered files to a FIFO (#548)
lvgx [Mon, 4 May 2020 04:05:13 +0000 (06:05 +0200)]
Add an option to print hovered files to a FIFO (#548)

* Add an option to print hovered files to a FIFO

This adds an env variable, `NNN_FIFO`, that can be set to a path that
`nnn` will open/create as a FIFO, and where every hovered file's path is
printed. This allows creating external perview/quick open plugins, ...

It can be compiled out with the make variable `O_NOFIFO`.

* Check filename ptr instead of full path (for FIFO)

* Add documentation to use NNN_FIFO in plugins

* Fix path sent to FIFO in empty dirs

4 years agoUse const type
Arun Prakash Jana [Mon, 4 May 2020 02:18:51 +0000 (07:48 +0530)]
Use const type

4 years agoRefactor move_cursor()
Arun Prakash Jana [Mon, 4 May 2020 00:47:38 +0000 (06:17 +0530)]
Refactor move_cursor()

4 years agoFix #550
Arun Prakash Jana [Sun, 3 May 2020 22:55:26 +0000 (04:25 +0530)]
Fix #550

4 years agoAdd is_prefix(), block empty files completely
Arun Prakash Jana [Sun, 3 May 2020 22:38:12 +0000 (04:08 +0530)]
Add is_prefix(), block empty files completely

4 years agoBind getplugs to installed version
Arun Prakash Jana [Sun, 3 May 2020 14:56:06 +0000 (20:26 +0530)]
Bind getplugs to installed version

4 years agoPlugin finder: run custom find/fd/grep/rg/fzf and list
Arun Prakash Jana [Sun, 3 May 2020 11:39:30 +0000 (17:09 +0530)]
Plugin finder: run custom find/fd/grep/rg/fzf and list

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