]> Sergey Matveev's repositories - nnn.git/log
nnn.git
3 years agoMerge pull request #1118 from N-R-K/xdgdefault
Terminator X [Wed, 28 Jul 2021 09:03:49 +0000 (14:33 +0530)]
Merge pull request #1118 from N-R-K/xdgdefault

xdgdefault: make dmenu case-insensitive, fix style

3 years agoxdgdefault: make dmenu case-insensitive, fix style
NRK [Wed, 28 Jul 2021 06:30:30 +0000 (12:30 +0600)]
xdgdefault: make dmenu case-insensitive, fix style

Most *.desktop entries have same name as their application name so this
is not an issue most of the time. However in the case of Neovim, the
application name is "Neovim" while the desktop entry is "nvim.desktop"

Since dmenu is case sensitive by default this means that searching
"neovim" will not show any results since the N is not capitalized and
the desktop entry name is "nvim"

fzf doesn't have this issue since its case-insensitive/fuzzy by
default. Making dmenu case-insensitive solves this.

Also fix the indentation to be consistent with the rest of the script.

3 years agoEliminate redundant stat()
Arun Prakash Jana [Tue, 27 Jul 2021 17:34:23 +0000 (23:04 +0530)]
Eliminate redundant stat()

3 years agoredraw() is heavy and distracting
Arun Prakash Jana [Mon, 26 Jul 2021 00:45:11 +0000 (06:15 +0530)]
redraw() is heavy and distracting

3 years agoFix build break
Arun Prakash Jana [Sun, 25 Jul 2021 01:50:43 +0000 (07:20 +0530)]
Fix build break

3 years agoAllow specifying output file in NNN_TMPFILE for cd on quit
Arun Prakash Jana [Sun, 25 Jul 2021 01:33:09 +0000 (07:03 +0530)]
Allow specifying output file in NNN_TMPFILE for cd on quit

3 years agoOpen controlling terminal only as stdin
Arun Prakash Jana [Sat, 24 Jul 2021 16:51:21 +0000 (22:21 +0530)]
Open controlling terminal only as stdin

3 years agoMerge pull request #1114 from jcromero/patch-1
Terminator X [Sat, 24 Jul 2021 10:18:36 +0000 (15:48 +0530)]
Merge pull request #1114 from jcromero/patch-1

Fix wrong exclamation mark char description

3 years agoFix wrong exclamation mark char description
jcromero [Sat, 24 Jul 2021 09:54:27 +0000 (11:54 +0200)]
Fix wrong exclamation mark char description

3 years agoCheck if file is already selected before appending in picker mode
Arun Prakash Jana [Fri, 23 Jul 2021 20:21:20 +0000 (01:51 +0530)]
Check if file is already selected before appending in picker mode

3 years agoTruncate output file before writing in picker mode
Arun Prakash Jana [Fri, 23 Jul 2021 19:55:28 +0000 (01:25 +0530)]
Truncate output file before writing in picker mode

3 years agoOpen controlling terminal for input when run in a script
Arun Prakash Jana [Fri, 23 Jul 2021 18:16:20 +0000 (23:46 +0530)]
Open controlling terminal for input when run in a script

3 years agoxdgdefault plugin: add dmenu support (#1112)
N-R-K [Fri, 23 Jul 2021 11:36:19 +0000 (17:36 +0600)]
xdgdefault plugin: add dmenu support (#1112)

* xdgdefault plugin: add dmenu support

use fzf if available. otherwise, if available, use dmenu.
should be possible to use rofi as well, but i don't use rofi nor do i
have it installed for testing.

* xdgdefault plugin: add GUI flag

* update xdgdefault requirement

3 years agoUpdate plugin docs
Arun Prakash Jana [Thu, 22 Jul 2021 14:41:07 +0000 (20:11 +0530)]
Update plugin docs

3 years agoRemove dated documentation
Arun Prakash Jana [Wed, 21 Jul 2021 18:13:59 +0000 (23:43 +0530)]
Remove dated documentation

3 years agoRevert variety in Haiku Makefile
Arun Prakash Jana [Wed, 21 Jul 2021 12:26:46 +0000 (17:56 +0530)]
Revert variety in Haiku Makefile

3 years agoPrepare for release v4.2 Mojito v4.2
Arun Prakash Jana [Wed, 21 Jul 2021 12:15:39 +0000 (17:45 +0530)]
Prepare for release v4.2 Mojito

3 years agoAdd option to specify arguments to exec
Arun Prakash Jana [Wed, 21 Jul 2021 06:24:40 +0000 (11:54 +0530)]
Add option to specify arguments to exec

3 years agoPress TAB to insert current file name at prompt
Arun Prakash Jana [Wed, 21 Jul 2021 05:54:46 +0000 (11:24 +0530)]
Press TAB to insert current file name at prompt

3 years agoAdded execute fallback to nuke
Jonathan Rash [Tue, 20 Jul 2021 23:12:37 +0000 (19:12 -0400)]
Added execute fallback to nuke

3 years agoMinor update
Arun Prakash Jana [Tue, 20 Jul 2021 18:01:40 +0000 (23:31 +0530)]
Minor update

3 years agoFix #1110: sanitize path from plugin
Arun Prakash Jana [Sun, 18 Jul 2021 22:21:32 +0000 (03:51 +0530)]
Fix #1110: sanitize path from plugin

3 years agoClear filter early before running plugin
Arun Prakash Jana [Sun, 18 Jul 2021 20:22:44 +0000 (01:52 +0530)]
Clear filter early before running plugin

3 years agoSelection-specific scratch buffer
Arun Prakash Jana [Sun, 18 Jul 2021 06:15:50 +0000 (11:45 +0530)]
Selection-specific scratch buffer

3 years agoFree allocated memory
Arun Prakash Jana [Sat, 17 Jul 2021 21:21:09 +0000 (02:51 +0530)]
Free allocated memory

3 years agoPlugin suedit - preserve environment
Arun Prakash Jana [Sat, 17 Jul 2021 16:11:19 +0000 (21:41 +0530)]
Plugin suedit - preserve environment

3 years agofzopen - add option to open files in nuke
Arun Prakash Jana [Sat, 17 Jul 2021 15:02:01 +0000 (20:32 +0530)]
fzopen - add option to open files in nuke

3 years agoMerge plugin fzz into autojump
Arun Prakash Jana [Sat, 17 Jul 2021 14:17:53 +0000 (19:47 +0530)]
Merge plugin fzz into autojump

3 years agoRemember the last command executed at prompt
Arun Prakash Jana [Sat, 17 Jul 2021 08:17:08 +0000 (13:47 +0530)]
Remember the last command executed at prompt

3 years agoAdd macro for prompt
Arun Prakash Jana [Sat, 17 Jul 2021 07:39:33 +0000 (13:09 +0530)]
Add macro for prompt

3 years agoUse a simpler macro
Arun Prakash Jana [Sat, 17 Jul 2021 07:35:37 +0000 (13:05 +0530)]
Use a simpler macro

3 years agoFix unused variable warning
Arun Prakash Jana [Fri, 16 Jul 2021 23:16:35 +0000 (04:46 +0530)]
Fix unused variable warning

3 years agoCode reformat
Arun Prakash Jana [Fri, 16 Jul 2021 15:49:17 +0000 (21:19 +0530)]
Code reformat

3 years agoFix selection in /
Arun Prakash Jana [Fri, 16 Jul 2021 05:39:20 +0000 (11:09 +0530)]
Fix selection in /

3 years agoRemove from selection when hovered entry is deleted
Arun Prakash Jana [Thu, 15 Jul 2021 22:24:19 +0000 (03:54 +0530)]
Remove from selection when hovered entry is deleted

3 years agoIgnore filter key if no results
Arun Prakash Jana [Thu, 15 Jul 2021 20:50:28 +0000 (02:20 +0530)]
Ignore filter key if no results

3 years agoDo not apply filter if directory is empty
Arun Prakash Jana [Thu, 15 Jul 2021 20:24:15 +0000 (01:54 +0530)]
Do not apply filter if directory is empty

3 years agoAllocate PATH_MAX aligned memory size
Arun Prakash Jana [Thu, 15 Jul 2021 18:52:27 +0000 (00:22 +0530)]
Allocate PATH_MAX aligned memory size

3 years agoOptimize repeat copy of same prefix
Arun Prakash Jana [Thu, 15 Jul 2021 17:25:31 +0000 (22:55 +0530)]
Optimize repeat copy of same prefix

3 years agoOptimize bulk selection
Arun Prakash Jana [Thu, 15 Jul 2021 14:42:07 +0000 (20:12 +0530)]
Optimize bulk selection

3 years agoInvert optimization: allocate in a go
Arun Prakash Jana [Thu, 15 Jul 2021 13:25:03 +0000 (18:55 +0530)]
Invert optimization: allocate in a go

3 years agoShow msg for both invert and select all
Arun Prakash Jana [Thu, 15 Jul 2021 06:15:32 +0000 (11:45 +0530)]
Show msg for both invert and select all

3 years agoOptimize invert further
Arun Prakash Jana [Wed, 14 Jul 2021 20:36:11 +0000 (02:06 +0530)]
Optimize invert further

3 years agoIn-place invert optimization
Arun Prakash Jana [Wed, 14 Jul 2021 15:34:02 +0000 (21:04 +0530)]
In-place invert optimization

3 years agoUpdate docs
Arun Prakash Jana [Tue, 13 Jul 2021 21:07:53 +0000 (02:37 +0530)]
Update docs

3 years agoUpdate add to and invert selection logic
Arun Prakash Jana [Tue, 13 Jul 2021 16:16:18 +0000 (21:46 +0530)]
Update add to and invert selection logic

3 years agoScan for selection status on redraw()
Arun Prakash Jana [Mon, 12 Jul 2021 19:37:11 +0000 (01:07 +0530)]
Scan for selection status on redraw()

3 years agoRemove redundant macro
Arun Prakash Jana [Sun, 11 Jul 2021 21:24:00 +0000 (02:54 +0530)]
Remove redundant macro

3 years agoRemove redundant prompt
Arun Prakash Jana [Sun, 11 Jul 2021 19:00:41 +0000 (00:30 +0530)]
Remove redundant prompt

3 years agoMerge pull request #1106 from KlzXS/persistent_selection
Terminator X [Sun, 11 Jul 2021 18:28:58 +0000 (23:58 +0530)]
Merge pull request #1106 from KlzXS/persistent_selection

Use selbufpos instead of selbuflen

3 years agoUse selbufpos instead of selbuflen
KlzXS [Sun, 11 Jul 2021 18:16:28 +0000 (20:16 +0200)]
Use selbufpos instead of selbuflen

3 years agoPersistent selection (#1086)
KlzXS [Sat, 10 Jul 2021 01:49:39 +0000 (03:49 +0200)]
Persistent selection (#1086)

* Add persistsel

* Fix Makefile spacing

* Update Haiku Makefile

* Do a double pass on inversion

* Split single and double pass for easier testing

Removed lastappendpos

Eliminate suffix matches

* Check if dir is in selection before searching for files

Fix double pass

* Switch to mainline

Optimize memory moving

Handle large selection in invertsel()

Going forward with 2pass

* Update Makefiles

* Fix style

* Move forward declarations

* Remove edit selection in inversion

Replace buf with g_buf to fix CI

Fix CI

* Style changes

* Comment the code

* Style fixes

* Fix infinite loop

* Fix crash on empty invert

* Fix off-by-one-in-two-places

Off-by-twice?

* Adopt changes from master

* Only check directory if entry in it is selected

* Better organization

* Wrong variable

* Tiny optimizations

* Style fixes and updated man page

* Update man page

* Remember where we found directory path in selection

Add in progress message on invert

3 years agoFix #1102: suppress clang unused variable warnings
Arun Prakash Jana [Fri, 9 Jul 2021 20:38:48 +0000 (02:08 +0530)]
Fix #1102: suppress clang unused variable warnings

3 years agoFix #1101: confirm trashing files
Arun Prakash Jana [Fri, 9 Jul 2021 15:30:46 +0000 (21:00 +0530)]
Fix #1101: confirm trashing files

3 years agoFix #1098: clear selmode on last deselect
Arun Prakash Jana [Tue, 6 Jul 2021 17:55:49 +0000 (23:25 +0530)]
Fix #1098: clear selmode on last deselect

3 years agoMerge pull request #1095 from luukvbaal/patches
Piña Colada [Tue, 6 Jul 2021 12:18:25 +0000 (17:48 +0530)]
Merge pull request #1095 from luukvbaal/patches

Remove gitstatus libgit2 dependency

3 years agoRemove gitstatus libgit2 dependency
Luuk van Baal [Tue, 6 Jul 2021 00:01:19 +0000 (02:01 +0200)]
Remove gitstatus libgit2 dependency

3 years agoMerge pull request #1094 from jarun/preview-tui
Piña Colada [Mon, 5 Jul 2021 16:59:03 +0000 (22:29 +0530)]
Merge pull request #1094 from jarun/preview-tui

Allow tmux inside kitty without KITTY_LISTEN_ON set

3 years agoAllow tmux inside kitty without KITTY_LISTEN_ON set
Luuk van Baal [Mon, 5 Jul 2021 13:40:18 +0000 (15:40 +0200)]
Allow tmux inside kitty without KITTY_LISTEN_ON set

3 years agoMerge pull request #1091 from luukvbaal/adjust_cols
Piña Colada [Fri, 2 Jul 2021 23:54:23 +0000 (05:24 +0530)]
Merge pull request #1091 from luukvbaal/adjust_cols

Move adjust_cols and no else braces

3 years agoMove ajust cols and no else braces
Luuk van Baal [Fri, 2 Jul 2021 22:50:51 +0000 (00:50 +0200)]
Move ajust cols and no else braces

3 years agoFix off_t to uint_t comparison warning
Arun Prakash Jana [Fri, 2 Jul 2021 15:04:02 +0000 (20:34 +0530)]
Fix off_t to uint_t comparison warning

The man page says:

"blkcnt_t and off_t shall be signed integer types."

https://man7.org/linux/man-pages/man0/sys_types.h.0p.html

3 years agoMerge pull request #1090 from luukvbaal/imgview
Piña Colada [Thu, 1 Jul 2021 09:26:53 +0000 (14:56 +0530)]
Merge pull request #1090 from luukvbaal/imgview

Imgview fix ucollage directory

3 years agoImgview fix ucollage directory
Luuk van Baal [Thu, 1 Jul 2021 09:23:57 +0000 (11:23 +0200)]
Imgview fix ucollage directory

3 years agoMerge pull request #1084 from luukvbaal/imgview
Piña Colada [Thu, 1 Jul 2021 09:06:07 +0000 (14:36 +0530)]
Merge pull request #1084 from luukvbaal/imgview

Imgview open hovered image and reuse NNN_PREVIEWDIR

3 years agoImgview hovered image/thumbnail dir
Luuk van Baal [Thu, 1 Jul 2021 00:26:47 +0000 (02:26 +0200)]
Imgview hovered image/thumbnail dir

3 years agoMerge pull request #1088 from 1bman/1bman-patch-1
Piña Colada [Wed, 30 Jun 2021 14:21:50 +0000 (19:51 +0530)]
Merge pull request #1088 from 1bman/1bman-patch-1

fix icons.h typo

3 years agofix icons.h typo
1bman [Wed, 30 Jun 2021 08:55:01 +0000 (14:25 +0530)]
fix icons.h typo

fixed some typo

3 years agoMerge pull request #1087 from KlzXS/debug
Piña Colada [Tue, 29 Jun 2021 18:29:30 +0000 (23:59 +0530)]
Merge pull request #1087 from KlzXS/debug

Fix debug line number

3 years agoFix debug line number
KlzXS [Tue, 29 Jun 2021 17:49:59 +0000 (19:49 +0200)]
Fix debug line number

3 years agoTry to unmount hovered local dir
Arun Prakash Jana [Sun, 27 Jun 2021 18:46:32 +0000 (00:16 +0530)]
Try to unmount hovered local dir

3 years agoReformat help
Arun Prakash Jana [Sun, 27 Jun 2021 15:47:33 +0000 (21:17 +0530)]
Reformat help

3 years agoMerge pull request #1082 from tonijarjour/patch-1
Piña Colada [Sun, 27 Jun 2021 15:24:42 +0000 (20:54 +0530)]
Merge pull request #1082 from tonijarjour/patch-1

Make sxiv play gifs automatically

3 years agoReformat help
Arun Prakash Jana [Sun, 27 Jun 2021 15:13:26 +0000 (20:43 +0530)]
Reformat help

3 years agoMake sxiv play gifs automatically
Toni Jarjour [Sun, 27 Jun 2021 15:11:39 +0000 (11:11 -0400)]
Make sxiv play gifs automatically

3 years agoUpdate docs
Arun Prakash Jana [Fri, 25 Jun 2021 18:27:28 +0000 (23:57 +0530)]
Update docs

3 years agoUpdate readme
Arun Prakash Jana [Thu, 24 Jun 2021 18:24:43 +0000 (23:54 +0530)]
Update readme

3 years agoRemove redundant param
Arun Prakash Jana [Wed, 23 Jun 2021 18:12:10 +0000 (23:42 +0530)]
Remove redundant param

3 years agoFix memory leak
Arun Prakash Jana [Tue, 22 Jun 2021 15:21:23 +0000 (20:51 +0530)]
Fix memory leak

3 years agoSimplify mkpath()
Arun Prakash Jana [Tue, 22 Jun 2021 14:57:07 +0000 (20:27 +0530)]
Simplify mkpath()

3 years agoReplace fd dependency with find (#1078)
KlzXS [Sun, 20 Jun 2021 20:09:45 +0000 (22:09 +0200)]
Replace fd dependency with find (#1078)

3 years agoBreak long macros
Arun Prakash Jana [Sun, 20 Jun 2021 16:46:09 +0000 (22:16 +0530)]
Break long macros

3 years agoOne notify FIFO mode at a time
Arun Prakash Jana [Sun, 20 Jun 2021 16:11:16 +0000 (21:41 +0530)]
One notify FIFO mode at a time

3 years agoFix patch break
Arun Prakash Jana [Sun, 20 Jun 2021 15:55:22 +0000 (21:25 +0530)]
Fix patch break

3 years agoImprove alignment
Arun Prakash Jana [Sun, 20 Jun 2021 14:59:41 +0000 (20:29 +0530)]
Improve alignment

3 years agoAdd range check
Arun Prakash Jana [Sun, 20 Jun 2021 13:50:10 +0000 (19:20 +0530)]
Add range check

3 years agoFix alignments
Arun Prakash Jana [Sun, 20 Jun 2021 10:15:03 +0000 (15:45 +0530)]
Fix alignments

3 years agoFix patch break
Arun Prakash Jana [Sun, 20 Jun 2021 08:59:07 +0000 (14:29 +0530)]
Fix patch break

3 years agoAlphabetically order internal states
Arun Prakash Jana [Sun, 20 Jun 2021 08:53:13 +0000 (14:23 +0530)]
Alphabetically order internal states

3 years agoShared previewer and explorer
Arun Prakash Jana [Sun, 20 Jun 2021 07:19:24 +0000 (12:49 +0530)]
Shared previewer and explorer

3 years agoPrint version to stdout
Arun Prakash Jana [Sun, 20 Jun 2021 04:55:40 +0000 (10:25 +0530)]
Print version to stdout

3 years agoFix compilation error when FIFO is disabled
Arun Prakash Jana [Sat, 19 Jun 2021 15:34:21 +0000 (21:04 +0530)]
Fix compilation error when FIFO is disabled

3 years agoUse macro in all places
Arun Prakash Jana [Sat, 19 Jun 2021 15:06:16 +0000 (20:36 +0530)]
Use macro in all places

3 years agoUse easily identifiable type
Arun Prakash Jana [Sat, 19 Jun 2021 13:09:35 +0000 (18:39 +0530)]
Use easily identifiable type

3 years agoRestore statusbar after unmounting remote/archive
Arun Prakash Jana [Sat, 19 Jun 2021 11:53:28 +0000 (17:23 +0530)]
Restore statusbar after unmounting remote/archive

3 years agoFix created archive not highlighted
Arun Prakash Jana [Sat, 19 Jun 2021 09:46:24 +0000 (15:16 +0530)]
Fix created archive not highlighted

3 years agoDefault to CWD for atool
Arun Prakash Jana [Sat, 19 Jun 2021 08:19:48 +0000 (13:49 +0530)]
Default to CWD for atool

3 years agoDo not open current dir in nez context when extracting archive
Arun Prakash Jana [Sat, 19 Jun 2021 07:30:50 +0000 (13:00 +0530)]
Do not open current dir in nez context when extracting archive

3 years agoFix #1076: show file name in archive extract prompt
Arun Prakash Jana [Sat, 19 Jun 2021 05:45:17 +0000 (11:15 +0530)]
Fix #1076: show file name in archive extract prompt

3 years agoFix returns
Arun Prakash Jana [Fri, 18 Jun 2021 20:18:14 +0000 (01:48 +0530)]
Fix returns