]>
Sergey Matveev's repositories - nnn.git/log
Arun Prakash Jana [Wed, 6 May 2020 13:33:29 +0000 (19:03 +0530)]
Fix broken dir read from pipe
Arun Prakash Jana [Wed, 6 May 2020 13:11:01 +0000 (18:41 +0530)]
Drop fzy support
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>
Arun Prakash Jana [Wed, 6 May 2020 05:49:39 +0000 (11:19 +0530)]
Update docs
Arun Prakash Jana [Wed, 6 May 2020 05:29:57 +0000 (10:59 +0530)]
Change requires to dependencies
Arun Prakash Jana [Wed, 6 May 2020 05:12:29 +0000 (10:42 +0530)]
Uniform plugins
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
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.
Arun Prakash Jana [Tue, 5 May 2020 23:17:35 +0000 (04:47 +0530)]
Shorten column width
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>
Arun Prakash Jana [Tue, 5 May 2020 23:06:26 +0000 (04:36 +0530)]
which prints to screen
Arun Prakash Jana [Tue, 5 May 2020 20:15:04 +0000 (01:45 +0530)]
Update docs
Arun Prakash Jana [Tue, 5 May 2020 19:03:46 +0000 (00:33 +0530)]
Minor previewer plugin update, docs update
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
Arun Prakash Jana [Tue, 5 May 2020 18:05:14 +0000 (23:35 +0530)]
Fix double free when starting in list mode
Arun Prakash Jana [Tue, 5 May 2020 17:39:24 +0000 (23:09 +0530)]
Update docs
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.
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.
Arun Prakash Jana [Tue, 5 May 2020 11:44:42 +0000 (17:14 +0530)]
Fix context range check
Arun Prakash Jana [Mon, 4 May 2020 14:47:40 +0000 (20:17 +0530)]
Update docs
Arun Prakash Jana [Mon, 4 May 2020 04:20:31 +0000 (09:50 +0530)]
Update docs
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
Arun Prakash Jana [Mon, 4 May 2020 02:18:51 +0000 (07:48 +0530)]
Use const type
Arun Prakash Jana [Mon, 4 May 2020 00:47:38 +0000 (06:17 +0530)]
Refactor move_cursor()
Arun Prakash Jana [Sun, 3 May 2020 22:55:26 +0000 (04:25 +0530)]
Fix #550
Arun Prakash Jana [Sun, 3 May 2020 22:38:12 +0000 (04:08 +0530)]
Add is_prefix(), block empty files completely
Arun Prakash Jana [Sun, 3 May 2020 14:56:06 +0000 (20:26 +0530)]
Bind getplugs to installed version
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
Arun Prakash Jana [Sun, 3 May 2020 10:46:14 +0000 (16:16 +0530)]
Context code '+' to create context smartly
Arun Prakash Jana [Sun, 3 May 2020 09:55:19 +0000 (15:25 +0530)]
Decouple listpath and initpath
Arun Prakash Jana [Sun, 3 May 2020 09:44:26 +0000 (15:14 +0530)]
Show messages appropriately
Arun Prakash Jana [Sun, 3 May 2020 09:25:33 +0000 (14:55 +0530)]
Plugin mimelist: support reading file list from (cmd as) plugin
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
Arun Prakash Jana [Sat, 2 May 2020 21:22:48 +0000 (02:52 +0530)]
Simplify unescape() in no locale mode
Arun Prakash Jana [Sat, 2 May 2020 14:28:10 +0000 (19:58 +0530)]
Dim file details in detail mode
Rami3L [Sat, 2 May 2020 04:14:19 +0000 (12:14 +0800)]
Fix: BSD expr syntax error on empty $NNNLVL (#546)
Arun Prakash Jana [Fri, 1 May 2020 22:55:42 +0000 (04:25 +0530)]
Update docs
Arun Prakash Jana [Fri, 1 May 2020 15:56:56 +0000 (21:26 +0530)]
Update docs
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).
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.
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.
Arun Prakash Jana [Fri, 1 May 2020 05:51:25 +0000 (11:21 +0530)]
Move installation section to Wiki
Arun Prakash Jana [Fri, 1 May 2020 05:15:25 +0000 (10:45 +0530)]
Update autogen packages
Arun Prakash Jana [Tue, 28 Apr 2020 12:52:09 +0000 (18:22 +0530)]
New logo: n³
Arun Prakash Jana [Mon, 27 Apr 2020 03:05:43 +0000 (08:35 +0530)]
Randomize mocp
Arun Prakash Jana [Mon, 27 Apr 2020 02:55:13 +0000 (08:25 +0530)]
Use mem* function
Arun Prakash Jana [Mon, 27 Apr 2020 02:53:22 +0000 (08:23 +0530)]
Let mocp shuffle
Arun Prakash Jana [Sun, 26 Apr 2020 19:47:03 +0000 (01:17 +0530)]
Randomize mocp playlist
Arun Prakash Jana [Sun, 26 Apr 2020 18:35:11 +0000 (00:05 +0530)]
Various plugin improvements
KlzXS [Sun, 26 Apr 2020 16:55:03 +0000 (18:55 +0200)]
Optimize dups (#539)
Arun Prakash Jana [Sun, 26 Apr 2020 08:35:56 +0000 (14:05 +0530)]
Show error at source
Arun Prakash Jana [Sun, 26 Apr 2020 08:24:12 +0000 (13:54 +0530)]
Fix #537
Arun Prakash Jana [Sun, 26 Apr 2020 05:29:01 +0000 (10:59 +0530)]
Fix buffer cleanup
Arun Prakash Jana [Sat, 25 Apr 2020 21:07:16 +0000 (02:37 +0530)]
Fix buffer cleanup
Arun Prakash Jana [Sat, 25 Apr 2020 19:33:17 +0000 (01:03 +0530)]
Use memrchr if available
Arun Prakash Jana [Sat, 25 Apr 2020 15:06:10 +0000 (20:36 +0530)]
Resolve path in list mode
Arun Prakash Jana [Fri, 24 Apr 2020 19:58:01 +0000 (01:28 +0530)]
Minor refactor
Arun Prakash Jana [Fri, 24 Apr 2020 18:18:47 +0000 (23:48 +0530)]
Silently ignore invalid paths (documented)
Arun Prakash Jana [Fri, 24 Apr 2020 18:05:43 +0000 (23:35 +0530)]
Fix #532: support picker and list modes together
Arun Prakash Jana [Fri, 24 Apr 2020 15:00:16 +0000 (20:30 +0530)]
Fix return and show error
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
Arun Prakash Jana [Fri, 24 Apr 2020 04:42:24 +0000 (10:12 +0530)]
NNN_SEL: custom selection file
Arun Prakash Jana [Fri, 24 Apr 2020 04:24:43 +0000 (09:54 +0530)]
Bookmark key get priority over session
Arun Prakash Jana [Fri, 24 Apr 2020 04:06:33 +0000 (09:36 +0530)]
Update completion scripts
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
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>
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
Arun Prakash Jana [Sat, 18 Apr 2020 21:41:12 +0000 (03:11 +0530)]
Do a complete erase
Arun Prakash Jana [Sat, 18 Apr 2020 09:38:23 +0000 (15:08 +0530)]
Fix listing files directly under /
Arun Prakash Jana [Sat, 18 Apr 2020 08:05:57 +0000 (13:35 +0530)]
Remove hacky single path handling
Arun Prakash Jana [Sat, 18 Apr 2020 01:48:35 +0000 (07:18 +0530)]
Fix #520: minimal erasure
Arun Prakash Jana [Sat, 18 Apr 2020 01:28:19 +0000 (06:58 +0530)]
Update issue template, add feature template
Arun Prakash Jana [Fri, 17 Apr 2020 23:24:07 +0000 (04:54 +0530)]
Fix #526: persistent session
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>
Arun Prakash Jana [Fri, 17 Apr 2020 08:13:25 +0000 (13:43 +0530)]
Save offset in key-val pairs
Arun Prakash Jana [Fri, 17 Apr 2020 03:23:44 +0000 (08:53 +0530)]
Fix #523: create NNN_PIPE early
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/
Arun Prakash Jana [Thu, 16 Apr 2020 12:15:58 +0000 (17:45 +0530)]
Experimental: guards to reduce repeat screen redraws
Arun Prakash Jana [Wed, 15 Apr 2020 22:12:36 +0000 (03:42 +0530)]
Go to first file or next match
Arun Prakash Jana [Wed, 15 Apr 2020 18:59:45 +0000 (00:29 +0530)]
Env var NNN_LOCKER
Arun Prakash Jana [Wed, 15 Apr 2020 17:06:33 +0000 (22:36 +0530)]
Fix #520
Arun Prakash Jana [Wed, 15 Apr 2020 15:35:10 +0000 (21:05 +0530)]
Fix build break
Arun Prakash Jana [Wed, 15 Apr 2020 15:13:26 +0000 (20:43 +0530)]
One-pass key-val pair parsing for bms and plugs
Arun Prakash Jana [Wed, 15 Apr 2020 12:22:21 +0000 (17:52 +0530)]
Show entry even if no permission
Arun Prakash Jana [Wed, 15 Apr 2020 09:30:40 +0000 (15:00 +0530)]
Optimized xstrlen(), xstrdup()
Arun Prakash Jana [Tue, 14 Apr 2020 17:08:33 +0000 (22:38 +0530)]
Refactor set_time_type()
Arun Prakash Jana [Tue, 14 Apr 2020 15:29:37 +0000 (20:59 +0530)]
Check for file first (more in number)
Arun Prakash Jana [Tue, 14 Apr 2020 04:24:42 +0000 (09:54 +0530)]
MInor refactor
Arun Prakash Jana [Mon, 13 Apr 2020 21:32:53 +0000 (03:02 +0530)]
Update docs
Arun Prakash Jana [Mon, 13 Apr 2020 19:55:54 +0000 (01:25 +0530)]
Update docs
Arun Prakash Jana [Mon, 13 Apr 2020 17:51:15 +0000 (23:21 +0530)]
Reduce the scope of loop variables
Katrin Leinweber [Mon, 13 Apr 2020 17:09:32 +0000 (19:09 +0200)]
Fix typo (#516)
lvgx [Mon, 13 Apr 2020 16:51:56 +0000 (18:51 +0200)]
Make NNN_COLORS override NO_COLORS (#515)
Arun Prakash Jana [Mon, 13 Apr 2020 16:25:11 +0000 (21:55 +0530)]
Fix build break
Arun Prakash Jana [Mon, 13 Apr 2020 16:12:23 +0000 (21:42 +0530)]
Fix build break
Arun Prakash Jana [Mon, 13 Apr 2020 15:12:19 +0000 (20:42 +0530)]
Fix symlink to dir indicator in detail mode
Arun Prakash Jana [Mon, 13 Apr 2020 15:05:14 +0000 (20:35 +0530)]
Use memccpy
Arun Prakash Jana [Mon, 13 Apr 2020 03:02:32 +0000 (08:32 +0530)]
Happy Birthday nnn! 🍰
Krisan Alifari [Sun, 12 Apr 2020 13:36:59 +0000 (20:36 +0700)]
Support $FZF_DEFAULT_COMMAND on fzopen plugin (#514)
Arun Prakash Jana [Sun, 12 Apr 2020 13:31:02 +0000 (19:01 +0530)]
Change nav-as-you-type to type-to-nav