]> Sergey Matveev's repositories - nnn.git/log
nnn.git
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

3 years agoFix broken window due to double spawn
Arun Prakash Jana [Fri, 18 Jun 2021 14:49:27 +0000 (20:19 +0530)]
Fix broken window due to double spawn

3 years agoRefactor fifo code and add explorer (#1075)
Michael Lan [Thu, 17 Jun 2021 23:51:51 +0000 (16:51 -0700)]
Refactor fifo code and add explorer (#1075)

* Refactor fifo code and add explorer

* add explorer option and flag

* notify explorer fifo on selection

* close explorer fifo file descriptor

* Try to create explorer fifo if doesn't exist

This doesn't quite work

* Allow uncreated fifos

* delete persistence fifo on cleanup

with correct formatting

Co-authored-by: luukvbaal <31730729+luukvbaal@users.noreply.github.com>
* Work correctly with NOFIFO

* Refactor variable names

* fix

* Use -X flag for explorer mode

* Update manpage with explorer mode

Co-authored-by: luukvbaal <31730729+luukvbaal@users.noreply.github.com>
3 years agoUpdate gitstatus patch (#1074)
luukvbaal [Thu, 17 Jun 2021 23:32:44 +0000 (01:32 +0200)]
Update gitstatus patch (#1074)

3 years agosigwinch test
Arun Prakash Jana [Thu, 17 Jun 2021 22:16:50 +0000 (03:46 +0530)]
sigwinch test

3 years agoRevert "Remove redundant old state handlers"
Arun Prakash Jana [Wed, 16 Jun 2021 19:01:26 +0000 (00:31 +0530)]
Revert "Remove redundant old state handlers"

This reverts commit 1590103ab7fbb87f05c8b3cc1b3db14d9f9a11c7.

3 years agoUpdate docs
Arun Prakash Jana [Wed, 16 Jun 2021 18:14:24 +0000 (23:44 +0530)]
Update docs

3 years agoRemove redundant old state handlers
Arun Prakash Jana [Tue, 15 Jun 2021 18:47:01 +0000 (00:17 +0530)]
Remove redundant old state handlers

3 years agoGet rid of file stream functions
Arun Prakash Jana [Tue, 15 Jun 2021 15:22:59 +0000 (20:52 +0530)]
Get rid of file stream functions

3 years agoCode reformat, use basic IO functions
Arun Prakash Jana [Tue, 15 Jun 2021 13:32:10 +0000 (19:02 +0530)]
Code reformat, use basic IO functions

3 years agoUse raw functions instead of file functions
Arun Prakash Jana [Tue, 15 Jun 2021 09:49:06 +0000 (15:19 +0530)]
Use raw functions instead of file functions

3 years agoFix #1072: use internal tmp file to page output
Arun Prakash Jana [Tue, 15 Jun 2021 09:08:08 +0000 (14:38 +0530)]
Fix #1072: use internal tmp file to page output

3 years agoRemove redundant newline
Arun Prakash Jana [Mon, 14 Jun 2021 16:42:55 +0000 (22:12 +0530)]
Remove redundant newline

3 years agoExtract archive to, mount remove/archive in smart context
Arun Prakash Jana [Sun, 13 Jun 2021 18:20:28 +0000 (23:50 +0530)]
Extract archive to, mount remove/archive in smart context

3 years agoSupport archive "extract to..."
Arun Prakash Jana [Sun, 13 Jun 2021 08:43:39 +0000 (14:13 +0530)]
Support archive "extract to..."

3 years agoUpdate docs
Arun Prakash Jana [Sun, 13 Jun 2021 05:08:12 +0000 (10:38 +0530)]
Update docs

3 years agoFix patch incompatibility
Arun Prakash Jana [Sun, 13 Jun 2021 03:34:49 +0000 (09:04 +0530)]
Fix patch incompatibility

3 years agoRemove option from auto-complete
Arun Prakash Jana [Sat, 12 Jun 2021 20:33:47 +0000 (02:03 +0530)]
Remove option from auto-complete

3 years agoConfig NNN_HELP to show output of a program on top of help page
Arun Prakash Jana [Sat, 12 Jun 2021 19:52:36 +0000 (01:22 +0530)]
Config NNN_HELP to show output of a program on top of help page

3 years agoUse netbsd-curses v0.3.2
Arun Prakash Jana [Sat, 12 Jun 2021 19:06:45 +0000 (00:36 +0530)]
Use netbsd-curses v0.3.2

3 years agoFix #1067: handle SIGWINCH the ncurses way
Arun Prakash Jana [Sat, 12 Jun 2021 18:46:09 +0000 (00:16 +0530)]
Fix #1067: handle SIGWINCH the ncurses way

Ref: https://invisible-island.net/ncurses/ncurses-intro.html#xterm

3 years agoAdd force-tty capability to spawn and set pagers to it (#1070)
Anna Arad [Sat, 12 Jun 2021 17:32:48 +0000 (19:32 +0200)]
Add force-tty capability to spawn and set pagers to it (#1070)

Co-authored-by: Anna Arad <annagram@shards.me>
3 years agoDrop unreliable popen() call [e.g. fails if filename has "]
Arun Prakash Jana [Sat, 12 Jun 2021 17:01:27 +0000 (22:31 +0530)]
Drop unreliable popen() call [e.g. fails if filename has "]

3 years agoSimplify show_stats()
Arun Prakash Jana [Sat, 12 Jun 2021 16:03:26 +0000 (21:33 +0530)]
Simplify show_stats()

3 years agoInitialize local array to NULL
Arun Prakash Jana [Sat, 12 Jun 2021 14:10:43 +0000 (19:40 +0530)]
Initialize local array to NULL

3 years agoAttempt to fix #1067: hook into ncurses to resize on KEY_RESIZE
Arun Prakash Jana [Sat, 12 Jun 2021 07:28:28 +0000 (12:58 +0530)]
Attempt to fix #1067: hook into ncurses to resize on KEY_RESIZE

3 years agoUse standard descriptor names
Arun Prakash Jana [Fri, 11 Jun 2021 18:05:57 +0000 (23:35 +0530)]
Use standard descriptor names

3 years agoMerge pull request #1066 from kevinsjoberg/remove-fzf-options
Piña Colada [Fri, 11 Jun 2021 14:04:32 +0000 (19:34 +0530)]
Merge pull request #1066 from kevinsjoberg/remove-fzf-options

Remove opinionated options

3 years agoRemove opinionated options
Kevin Sjöberg [Fri, 11 Jun 2021 13:48:29 +0000 (15:48 +0200)]
Remove opinionated options

3 years agoSupport opening regular text files on macOS
Kevin Sjöberg [Fri, 11 Jun 2021 09:46:51 +0000 (11:46 +0200)]
Support opening regular text files on macOS

3 years agoCheckpatch fixes
Arun Prakash Jana [Wed, 9 Jun 2021 18:39:24 +0000 (00:09 +0530)]
Checkpatch fixes

3 years agoUse static global
Arun Prakash Jana [Tue, 8 Jun 2021 15:20:09 +0000 (20:50 +0530)]
Use static global

3 years agoUpdate examples
Arun Prakash Jana [Sun, 6 Jun 2021 19:48:34 +0000 (01:18 +0530)]
Update examples

3 years agoUpdate docs
Arun Prakash Jana [Sun, 6 Jun 2021 18:05:15 +0000 (23:35 +0530)]
Update docs

3 years agoRemove redundant examples
Arun Prakash Jana [Sun, 6 Jun 2021 16:46:24 +0000 (22:16 +0530)]
Remove redundant examples

3 years agoNNN_PLUG: use `|` to page run-and-exit cmd output
Arun Prakash Jana [Sun, 6 Jun 2021 16:21:30 +0000 (21:51 +0530)]
NNN_PLUG: use `|` to page run-and-exit cmd output

3 years agoFix alignment
Arun Prakash Jana [Sun, 6 Jun 2021 13:28:13 +0000 (18:58 +0530)]
Fix alignment

3 years agoNNN_PLUG: use & as run-gui-cmd-as-plugin symbol (earlier |)
Arun Prakash Jana [Sun, 6 Jun 2021 13:18:14 +0000 (18:48 +0530)]
NNN_PLUG: use & as run-gui-cmd-as-plugin symbol (earlier |)

3 years agoNNN_PLUG: use ! as run-cmd-as-plugin symbol (earlier _)
Arun Prakash Jana [Sun, 6 Jun 2021 13:07:49 +0000 (18:37 +0530)]
NNN_PLUG: use ! as run-cmd-as-plugin symbol (earlier _)

3 years agoAdd another useful plugin example
Arun Prakash Jana [Sun, 6 Jun 2021 12:05:05 +0000 (17:35 +0530)]
Add another useful plugin example

3 years agoPlugin fzcd - decouple from selection
Arun Prakash Jana [Sun, 6 Jun 2021 11:37:23 +0000 (17:07 +0530)]
Plugin fzcd - decouple from selection

3 years agoPlugin cleanup 2: one-liners with paged output
Arun Prakash Jana [Sun, 6 Jun 2021 08:26:09 +0000 (13:56 +0530)]
Plugin cleanup 2: one-liners with paged output

- remove `mediainf`
- remove `uidgid`
- remove `hexview`
- remove `pdfview`

3 years agoPlugin cleanup 1
Arun Prakash Jana [Sun, 6 Jun 2021 05:11:30 +0000 (10:41 +0530)]
Plugin cleanup 1

- rename `wall` to `wallpaper`
- remove `upgrade` - packaging is on OBS now
- remove `treeview` - needs minor preview-tui tweak
- remove `picker` - `nnn -p -` does the same

3 years agoMerge pull request #1055 from luukvbaal/patches
Piña Colada [Sat, 5 Jun 2021 14:30:09 +0000 (20:00 +0530)]
Merge pull request #1055 from luukvbaal/patches

Add gitstatus patch -G flag

3 years agoAdd gitstatus patch -G flag
Luuk van Baal [Sat, 5 Jun 2021 14:21:01 +0000 (16:21 +0200)]
Add gitstatus patch -G flag

3 years agoMention patch framework
Arun Prakash Jana [Fri, 4 Jun 2021 23:18:34 +0000 (04:48 +0530)]
Mention patch framework

3 years agoMerge pull request #1054 from luukvbaal/preview-tui
Piña Colada [Fri, 4 Jun 2021 22:57:58 +0000 (04:27 +0530)]
Merge pull request #1054 from luukvbaal/preview-tui

Preview-tui single previewpid file

3 years agoPreview-tui single previewpid file
Luuk van Baal [Fri, 4 Jun 2021 22:35:54 +0000 (00:35 +0200)]
Preview-tui single previewpid file

3 years agoMerge pull request #1053 from luukvbaal/preview-tui
Piña Colada [Fri, 4 Jun 2021 15:54:27 +0000 (21:24 +0530)]
Merge pull request #1053 from luukvbaal/preview-tui

Suppress pgrep output

3 years agoSupress pgrep output
Luuk van Baal [Fri, 4 Jun 2021 15:04:01 +0000 (17:04 +0200)]
Supress pgrep output