]> Sergey Matveev's repositories - nnn.git/log
nnn.git
2 years agoUpdate colemak patch
Arun Prakash Jana [Sun, 31 Jul 2022 14:10:50 +0000 (19:40 +0530)]
Update colemak patch

2 years agoKey 'J' to jump to entry number or relative offset
Arun Prakash Jana [Sun, 31 Jul 2022 13:24:47 +0000 (18:54 +0530)]
Key 'J' to jump to entry number or relative offset

2 years agoContinue listing when max files/size is exceeded
Arun Prakash Jana [Sun, 31 Jul 2022 07:19:42 +0000 (12:49 +0530)]
Continue listing when max files/size is exceeded

2 years agoFile list mode changes
Arun Prakash Jana [Sun, 31 Jul 2022 05:33:25 +0000 (11:03 +0530)]
File list mode changes

- support listing maximum 16K files
- check if target directory exists before directory tree creation
  in most of the cases many files will be under the same directory
- make frequently used function 'inline'

2 years agoLet ffmpegthumbnailer use embedded image metadata
Arun Prakash Jana [Sat, 30 Jul 2022 16:14:00 +0000 (21:44 +0530)]
Let ffmpegthumbnailer use embedded image metadata

2 years agoUpdate patches
Arun Prakash Jana [Fri, 29 Jul 2022 17:11:17 +0000 (22:41 +0530)]
Update patches

2 years agoOption -B to use bsdtar as archive tool
Arun Prakash Jana [Fri, 29 Jul 2022 17:05:43 +0000 (22:35 +0530)]
Option -B to use bsdtar as archive tool

2 years agoFix typo
Arun Prakash Jana [Fri, 29 Jul 2022 16:48:34 +0000 (22:18 +0530)]
Fix typo

2 years agoRevert "Patch #1386: make bsdtar the default archive handler"
Arun Prakash Jana [Fri, 29 Jul 2022 16:44:00 +0000 (22:14 +0530)]
Revert "Patch #1386: make bsdtar the default archive handler"

This reverts commit e104b749be2fd6dc22a89404ffb9e5bd155cbab1.

2 years agoFix rm prompt
Arun Prakash Jana [Thu, 28 Jul 2022 14:08:55 +0000 (19:38 +0530)]
Fix rm prompt

Esc - cancels the search
y/Y - adds the force option
n/N/any other key - prompts for every file

2 years agoUpdate gitignore file
Arun Prakash Jana [Thu, 28 Jul 2022 13:08:22 +0000 (18:38 +0530)]
Update gitignore file

2 years agoMerge pull request #1440 from N-R-K/fix_emoji_tar
Arun [Tue, 26 Jul 2022 15:39:59 +0000 (21:09 +0530)]
Merge pull request #1440 from N-R-K/fix_emoji_tar

fix emoji tar command

2 years agofix emoji tar command
NRK [Tue, 26 Jul 2022 15:37:38 +0000 (21:37 +0600)]
fix emoji tar command

Fixes: https://github.com/jarun/nnn/pull/1356#discussion_r930094949
2 years agoMakefile: more robust generated header tracking (#1439)
N-R-K [Tue, 26 Jul 2022 14:56:49 +0000 (14:56 +0000)]
Makefile: more robust generated header tracking (#1439)

give each generated header it's own unique file so that it's not
possible to try and build `O_EMOJI=1` with the generated header for
`O_NERD=1`.

2 years agoUpdate Haiku file
Arun Prakash Jana [Tue, 26 Jul 2022 14:50:04 +0000 (20:20 +0530)]
Update Haiku file

2 years agoPrepare for release v4.6 Absinthe v4.6
Arun Prakash Jana [Tue, 26 Jul 2022 13:47:58 +0000 (19:17 +0530)]
Prepare for release v4.6 Absinthe

2 years agoAdd Elixir icon (#1437)
Tharindu Abeydeera [Mon, 25 Jul 2022 14:10:00 +0000 (19:40 +0530)]
Add Elixir icon (#1437)

* Added icons for erlang, elixir and lockfile

* Lockfile icon updated

* Added colors for Erlang and elixir

* Added few more color variations and configured colors and file
extensions

* remove erlang and lock, use 1 color for elixir

Co-authored-by: Tharindu Abeydeera <tharindu.a@vizuamatix.com>
Co-authored-by: NRK <nrk@disroot.org>
2 years agoMerge pull request #1438 from N-R-K/icons_cleanup
Arun [Mon, 25 Jul 2022 13:49:25 +0000 (19:19 +0530)]
Merge pull request #1438 from N-R-K/icons_cleanup

icons-hash: comments and cleanups

2 years agoicons-hash: comments and cleanups
NRK [Mon, 25 Jul 2022 11:52:44 +0000 (17:52 +0600)]
icons-hash: comments and cleanups

adds some comments, references and cleanups. no change in functionality.

2 years agoRemove redundant spaces
Arun Prakash Jana [Sun, 24 Jul 2022 14:37:27 +0000 (20:07 +0530)]
Remove redundant spaces

2 years agoAdd example to quick find in subtree and nuke
Arun Prakash Jana [Sun, 24 Jul 2022 10:50:54 +0000 (16:20 +0530)]
Add example to quick find in subtree and nuke

2 years agoMerge pull request #1436 from N-R-K/icon_compaction
Arun [Sun, 24 Jul 2022 10:44:52 +0000 (16:14 +0530)]
Merge pull request #1436 from N-R-K/icon_compaction

icons: use a compact array

2 years agoicons: use a compact array
NRK [Sun, 24 Jul 2022 10:10:28 +0000 (16:10 +0600)]
icons: use a compact array

a lot of the extension use the same icon. this can be exploited via
having an array with all the unique icons and then storing a single byte
index into the unique array.

when using `O_EMOJI` this results in around ~1.7KiB drop in the total
table size. `O_NERD` and `O_ICONS` get roughly ~0.5KiB savings.

2 years agoicons-hash: some minor cleanups
NRK [Sun, 24 Jul 2022 10:09:58 +0000 (16:09 +0600)]
icons-hash: some minor cleanups

2 years agoMerge pull request #1435 from N-R-K/icons_update
Arun [Sun, 24 Jul 2022 10:10:18 +0000 (15:40 +0530)]
Merge pull request #1435 from N-R-K/icons_update

Update some icons and colors

2 years agoicons: replace double-width icons
NRK [Sun, 24 Jul 2022 10:05:33 +0000 (16:05 +0600)]
icons: replace double-width icons

2 years agoicons: use COLOR_C for go files
NRK [Sun, 24 Jul 2022 09:50:36 +0000 (15:50 +0600)]
icons: use COLOR_C for go files

2 years agoEnable hidden when opening a hidden file
Arun Prakash Jana [Sat, 23 Jul 2022 03:40:50 +0000 (09:10 +0530)]
Enable hidden when opening a hidden file

2 years agoMerge pull request #1432 from N-R-K/icon_rework_squashed
Arun [Fri, 22 Jul 2022 17:07:25 +0000 (22:37 +0530)]
Merge pull request #1432 from N-R-K/icon_rework_squashed

Revise and optimize icons handling

2 years agoMerge pull request #1431 from luukvbaal/preview-tui
Arun [Fri, 22 Jul 2022 17:03:16 +0000 (22:33 +0530)]
Merge pull request #1431 from luukvbaal/preview-tui

Preview-tui improvements

2 years agosome cleanups and comments
NRK [Fri, 22 Jul 2022 15:33:35 +0000 (21:33 +0600)]
some cleanups and comments

2 years agomake clang-tidy happy
NRK [Fri, 22 Jul 2022 11:31:55 +0000 (17:31 +0600)]
make clang-tidy happy

2 years agoRevise and optimize icons handling
NRK [Wed, 20 Jul 2022 09:57:05 +0000 (15:57 +0600)]
Revise and optimize icons handling

This pretty much reworks the entire icon system. Some notable changes:

* The extensions are put into a statically generated hash-table instead
  of a sorted array. We use Robin-Hood insertion to reduce the max probe
  length. Currently we need to probe only 2 slots for `O_EMOJI` and only
  3 for `O_NERD`/`O_ICONS`.
* I've opted not to use a perfect-hash since the perfect hashes
  generated by [`gperf`](https://www.gnu.org/software/gperf) used some
  huge lookup table. The hash function also wasn't as minimal as I'd
  like.
* Colors are now using X-Macros. This should speed up startup since we
  don't have to search `icons_ext` linearly to find unique colors.
* The hash-table generator outputs a more space optimized `struct
  icon_pair` using a char array instead of char pointer. This brings
  down the binary size from `145KiB` when using `O_NERD` down to
  `137KiB`.
* Some unnecessary duplication and indirection has been reduced by using
  the `ICON_STR()` macro.

2 years agoPreview-tui improvements
Luuk van Baal [Fri, 22 Jul 2022 08:49:13 +0000 (10:49 +0200)]
Preview-tui improvements

2 years agoUse unget_wch()
Arun Prakash Jana [Thu, 21 Jul 2022 12:21:20 +0000 (17:51 +0530)]
Use unget_wch()

2 years agoFix #1428: handle unicode keybinds
Arun Prakash Jana [Wed, 20 Jul 2022 14:18:27 +0000 (19:48 +0530)]
Fix #1428: handle unicode keybinds

2 years agoReduce get_wch() array length and initialization.
Arun Prakash Jana [Wed, 20 Jul 2022 13:19:24 +0000 (18:49 +0530)]
Reduce get_wch() array length and initialization.

2 years agoescape call to `nnn` so `nnn` can be used as an alias to `n`
Anomalocaridid [Sun, 17 Jul 2022 00:25:59 +0000 (00:25 +0000)]
escape call to `nnn` so `nnn` can be used as an alias to `n`

2 years agoAdd Makefile target shellcheck
Arun Prakash Jana [Sat, 16 Jul 2022 17:47:32 +0000 (23:17 +0530)]
Add Makefile target shellcheck

2 years agoMinor improvements
Arun Prakash Jana [Sat, 16 Jul 2022 17:14:53 +0000 (22:44 +0530)]
Minor improvements

2 years agoShow volume used information in help
Arun Prakash Jana [Thu, 14 Jul 2022 02:38:31 +0000 (08:08 +0530)]
Show volume used information in help

2 years agoFix double order chars on filter case match change
Arun Prakash Jana [Wed, 13 Jul 2022 15:50:05 +0000 (21:20 +0530)]
Fix double order chars on filter case match change

2 years agoFix checkpatches duplicate make
Luuk van Baal [Mon, 11 Jul 2022 13:15:56 +0000 (15:15 +0200)]
Fix checkpatches duplicate make

2 years agoUpdate README
Arun Prakash Jana [Sun, 10 Jul 2022 16:06:56 +0000 (21:36 +0530)]
Update README

2 years agoRemove redundant check
Arun Prakash Jana [Sun, 10 Jul 2022 04:27:20 +0000 (09:57 +0530)]
Remove redundant check

sdfdf

2 years agoMerge pull request #1421 from luukvbaal/patches
Arun [Sat, 9 Jul 2022 11:50:46 +0000 (17:20 +0530)]
Merge pull request #1421 from luukvbaal/patches

Add colemak patch

2 years agoAdd colemak patch
Luuk van Baal [Sat, 9 Jul 2022 11:42:38 +0000 (13:42 +0200)]
Add colemak patch

2 years agoMerge pull request #1420 from CinnamonJui/patch-1
Arun [Fri, 8 Jul 2022 15:27:35 +0000 (20:57 +0530)]
Merge pull request #1420 from CinnamonJui/patch-1

Update plugin name in Configuration section

2 years agoUpdate plugin name in Configuration section
Jie [Fri, 8 Jul 2022 15:25:40 +0000 (23:25 +0800)]
Update plugin name in Configuration section

As the plugin was renamed from 'mocplay' to 'mocq' in 4dcefcc4d4a1f4b0d3c62d6c842eb5ced4c26d5b

2 years agoUdpate ToDO list
Arun Prakash Jana [Fri, 1 Jul 2022 16:56:47 +0000 (22:26 +0530)]
Udpate ToDO list

2 years agoMerge pull request #1413 from N-R-K/patches_ci
Arun [Fri, 1 Jul 2022 02:15:00 +0000 (07:45 +0530)]
Merge pull request #1413 from N-R-K/patches_ci

make it easy to check for failing patches locally

2 years agomake it easy to check for failing patches locally
NRK [Wed, 29 Jun 2022 19:23:32 +0000 (01:23 +0600)]
make it easy to check for failing patches locally

adds a script `check-patches.sh` to check for patch failures and also
adds a make target `checkpatches` which will invoke the check-patches
script.

2 years agoFix build break
NRK [Thu, 30 Jun 2022 09:36:59 +0000 (15:36 +0600)]
Fix build break

2 years agoadd z.lua to autojump
happy wang [Thu, 30 Jun 2022 03:22:36 +0000 (11:22 +0800)]
add z.lua to autojump

2 years agoMerge pull request #1412 from N-R-K/misc_cleanups
Arun [Wed, 29 Jun 2022 19:21:43 +0000 (00:51 +0530)]
Merge pull request #1412 from N-R-K/misc_cleanups

Misc cleanups

2 years agofix breaking patches
NRK [Wed, 29 Jun 2022 18:54:31 +0000 (00:54 +0600)]
fix breaking patches

2 years agoinitialize to zero instead of using memset
NRK [Sat, 28 May 2022 02:49:15 +0000 (08:49 +0600)]
initialize to zero instead of using memset

reduces some unncessary code. and when initializing larger objects,
compilers (gcc and clang at least) typically tend to compile it down to
a memset anyways.

2 years agocfg: use designated initializer
NRK [Wed, 1 Jun 2022 13:40:21 +0000 (19:40 +0600)]
cfg: use designated initializer

anything not explicitly initialized will be implicitly initialized to
zero. this makes things more robust since comments are not checked by
the compiler and can be incorrect.

2 years agofix incorrect comment
NRK [Wed, 1 Jun 2022 13:42:29 +0000 (19:42 +0600)]
fix incorrect comment

xextension() uses xmemrchr to find '.'

2 years agoMerge pull request #1411 from luukvbaal/preview-tui
Arun [Wed, 29 Jun 2022 15:29:14 +0000 (20:59 +0530)]
Merge pull request #1411 from luukvbaal/preview-tui

Account for ueberzug offset in preview-tui

2 years agoAccount for ueberzug offset in preview-tui
Luuk van Baal [Wed, 29 Jun 2022 10:33:11 +0000 (12:33 +0200)]
Account for ueberzug offset in preview-tui

2 years agoFix build break
Arun Prakash Jana [Tue, 28 Jun 2022 17:37:05 +0000 (23:07 +0530)]
Fix build break

2 years agoMerge pull request #1409 from luukvbaal/preview-tui
Arun [Tue, 28 Jun 2022 11:25:22 +0000 (16:55 +0530)]
Merge pull request #1409 from luukvbaal/preview-tui

Scale up kitty previews

2 years agoScale up kitty previews
Luuk van Baal [Tue, 28 Jun 2022 10:43:35 +0000 (12:43 +0200)]
Scale up kitty previews

2 years agoAdd new emoji for C files
Arun Prakash Jana [Sat, 25 Jun 2022 14:37:43 +0000 (20:07 +0530)]
Add new emoji for C files

2 years agoNew icons for audio and video
Arun Prakash Jana [Sat, 25 Jun 2022 14:29:13 +0000 (19:59 +0530)]
New icons for audio and video

2 years agoMerge pull request #1406 from N-R-K/realpath
Arun [Mon, 20 Jun 2022 16:18:20 +0000 (21:48 +0530)]
Merge pull request #1406 from N-R-K/realpath

account for realpath failure and update link

2 years agoREADME: update my name and link
NRK [Mon, 20 Jun 2022 16:06:23 +0000 (22:06 +0600)]
README: update my name and link

2 years agoaccount for realpath failure
NRK [Mon, 20 Jun 2022 15:49:41 +0000 (21:49 +0600)]
account for realpath failure

realpath may fail, in which case fallback to mkpath.

2 years agoUpdate plugin doc
Arun Prakash Jana [Thu, 16 Jun 2022 18:10:05 +0000 (23:40 +0530)]
Update plugin doc

2 years agoUse the term auto-advance instead of auto-jump
Arun Prakash Jana [Wed, 15 Jun 2022 14:18:11 +0000 (19:48 +0530)]
Use the term auto-advance instead of auto-jump

There's no jump.

2 years agoRevert "Add bookmarknav patch"
Arun Prakash Jana [Tue, 14 Jun 2022 12:13:50 +0000 (17:43 +0530)]
Revert "Add bookmarknav patch"

This reverts commit fbd6f69f25795f210c2acabd3306e707c0c9c382.

2 years agoFix docs, allow `/` to enable filter inside bookmarks
Arun Prakash Jana [Tue, 14 Jun 2022 12:06:17 +0000 (17:36 +0530)]
Fix docs, allow `/` to enable filter inside bookmarks

2 years agoEnable automatic dir entry on unique filer match
Arun Prakash Jana [Tue, 14 Jun 2022 08:19:41 +0000 (13:49 +0530)]
Enable automatic dir entry on unique filer match

2 years agoEnable filtering in plugins/bookmarks dirs
Arun Prakash Jana [Tue, 14 Jun 2022 07:40:54 +0000 (13:10 +0530)]
Enable filtering in plugins/bookmarks dirs

Enable auto-dir entry on filter mode

2 years agoRevert #1398: Go to prev dir on bookmark key repeat
Arun Prakash Jana [Tue, 14 Jun 2022 07:21:42 +0000 (12:51 +0530)]
Revert #1398: Go to prev dir on bookmark key repeat

Reasons:

1. `b` is not a special key and will be interpreted as a filter
2. with this change pressing the standard `-` inside a symlinked
   bookmark takes back to the bookmarks directory. This deviates
   from the regular bookmarks behaviour.

2 years agoMerge pull request #1402 from luukvbaal/selbm
Arun [Mon, 13 Jun 2022 11:51:02 +0000 (17:21 +0530)]
Merge pull request #1402 from luukvbaal/selbm

Fix false positive selbm

2 years agoFix false positive selbm
Luuk van Baal [Mon, 13 Jun 2022 02:07:40 +0000 (04:07 +0200)]
Fix false positive selbm

2 years agoFix patch doc
Arun Prakash Jana [Sun, 12 Jun 2022 02:26:21 +0000 (07:56 +0530)]
Fix patch doc

2 years agoUse a more visible color
Arun Prakash Jana [Sun, 12 Jun 2022 02:01:32 +0000 (07:31 +0530)]
Use a more visible color

2 years agoMerge pull request #1401 from luukvbaal/master
Arun [Sun, 12 Jun 2022 02:01:06 +0000 (07:31 +0530)]
Merge pull request #1401 from luukvbaal/master

Add bookmarknav patch

2 years agoAdd bookmarknav patch
Luuk van Baal [Sat, 11 Jun 2022 17:44:44 +0000 (19:44 +0200)]
Add bookmarknav patch

2 years agoSkip redundant getutil() call
Arun Prakash Jana [Sat, 11 Jun 2022 16:02:16 +0000 (21:32 +0530)]
Skip redundant getutil() call

2 years agoAdd informative comment
Arun Prakash Jana [Sat, 11 Jun 2022 15:55:03 +0000 (21:25 +0530)]
Add informative comment

2 years agoPatch #1386: make bsdtar the default archive handler
Arun Prakash Jana [Sat, 11 Jun 2022 09:39:40 +0000 (15:09 +0530)]
Patch #1386: make bsdtar the default archive handler

2 years agoAdd new icon colors for mp4 and flac formats
Arun Prakash Jana [Sat, 11 Jun 2022 01:49:57 +0000 (07:19 +0530)]
Add new icon colors for mp4 and flac formats

2 years agoFix segfault when last dir is not set
Arun Prakash Jana [Sat, 11 Jun 2022 00:35:57 +0000 (06:05 +0530)]
Fix segfault when last dir is not set

2 years agoGo to last dir on bookmark key repeat
Göran Gustafsson [Wed, 8 Jun 2022 05:45:18 +0000 (07:45 +0200)]
Go to last dir on bookmark key repeat

2 years agoFix #1385: document internal files in 'plugins' dir
Arun Prakash Jana [Fri, 10 Jun 2022 15:29:09 +0000 (20:59 +0530)]
Fix #1385: document internal files in 'plugins' dir

2 years agoMerge pull request #1394 from luukvbaal/explorer
Arun [Wed, 8 Jun 2022 20:56:27 +0000 (02:26 +0530)]
Merge pull request #1394 from luukvbaal/explorer

Disable e on explorer mode

2 years agoDisable e on explorer mode
Luuk van Baal [Wed, 8 Jun 2022 19:01:03 +0000 (21:01 +0200)]
Disable e on explorer mode

2 years agoMerge pull request #1391 from ggustafsson/feat/usage-stdout-fix
Arun [Tue, 7 Jun 2022 21:24:27 +0000 (02:54 +0530)]
Merge pull request #1391 from ggustafsson/feat/usage-stdout-fix

Print usage info to stdout instead of stderr

2 years agoMerge pull request #1389 from ggustafsson/feat/bsd-stat-x-fix
Arun [Tue, 7 Jun 2022 20:08:53 +0000 (01:38 +0530)]
Merge pull request #1389 from ggustafsson/feat/bsd-stat-x-fix

Use -x flag with BSD stat

2 years agoPrint usage info to stdout instead of stderr
Göran Gustafsson [Tue, 7 Jun 2022 18:33:05 +0000 (20:33 +0200)]
Print usage info to stdout instead of stderr

2 years agoUse -x flag with BSD stat
Göran Gustafsson [Sun, 5 Jun 2022 20:13:23 +0000 (22:13 +0200)]
Use -x flag with BSD stat

2 years agoMerge pull request #1384 from N-R-K/fix_sizeof
Arun [Thu, 2 Jun 2022 16:14:52 +0000 (21:44 +0530)]
Merge pull request #1384 from N-R-K/fix_sizeof

fix incorrect usage of sizeof

2 years agofix incorrect usage of sizeof
NRK [Wed, 1 Jun 2022 13:57:09 +0000 (19:57 +0600)]
fix incorrect usage of sizeof

`sizeof(cmd)` here would give the sizeof a char pointer, not the sizeof
the cp/mv array.

2 years agoMerge pull request #1380 from luukvbaal/master
Arun [Tue, 31 May 2022 11:06:23 +0000 (16:36 +0530)]
Merge pull request #1380 from luukvbaal/master

Update patch conflict instructions/workflow

2 years agoUpdate patch conflict instructions/workflow
Luuk van Baal [Tue, 31 May 2022 09:07:31 +0000 (11:07 +0200)]
Update patch conflict instructions/workflow

2 years agoMerge pull request #1379 from luukvbaal/master
Arun [Mon, 30 May 2022 17:59:46 +0000 (23:29 +0530)]
Merge pull request #1379 from luukvbaal/master

Move patch ci to ubuntu