]> Sergey Matveev's repositories - nnn.git/log
nnn.git
8 years agoImplement navigation roll over
Arun Prakash Jana [Wed, 29 Mar 2017 10:29:56 +0000 (15:59 +0530)]
Implement navigation roll over

8 years agoUpdate readme
Arun Prakash Jana [Wed, 29 Mar 2017 05:33:22 +0000 (11:03 +0530)]
Update readme

8 years agoMerge remote-tracking branch 'upstream/master'
Arun Prakash Jana [Wed, 5 Oct 2016 15:11:32 +0000 (20:41 +0530)]
Merge remote-tracking branch 'upstream/master'

8 years agoBump to 0.6
sin [Wed, 24 Aug 2016 09:47:25 +0000 (10:47 +0100)]
Bump to 0.6

8 years agoSplit out default filter initialization
sin [Mon, 22 Aug 2016 13:10:14 +0000 (14:10 +0100)]
Split out default filter initialization

8 years agoMake toggle dot behaviour persistent
sin [Mon, 22 Aug 2016 12:44:52 +0000 (13:44 +0100)]
Make toggle dot behaviour persistent

Once set, the default filter is updated.  This means that
toggle dot will also work as expected when noice is executed
as root.

Based on discussion with Ypnose.

8 years agoAlign fields in config.def.h
sin [Mon, 22 Aug 2016 10:23:47 +0000 (11:23 +0100)]
Align fields in config.def.h

Diff by Ypnose

8 years agoAccept user-defined LDFLAGS in Makefile
sin [Mon, 22 Aug 2016 10:22:24 +0000 (11:22 +0100)]
Accept user-defined LDFLAGS in Makefile

Diff by Ypnose

8 years agoUpdate README.md
Arun Prakash Jana [Sun, 21 Aug 2016 16:14:56 +0000 (21:44 +0530)]
Update README.md

8 years agoUpdate README.md
Arun Prakash Jana [Sun, 21 Aug 2016 16:10:34 +0000 (21:40 +0530)]
Update README.md

8 years agoUpdate README.md
Arun Prakash Jana [Sun, 21 Aug 2016 15:47:43 +0000 (21:17 +0530)]
Update README.md

8 years agoUpdate README.md
Arun Prakash Jana [Sun, 21 Aug 2016 15:47:23 +0000 (21:17 +0530)]
Update README.md

8 years agoUpdate README.md
Arun Prakash Jana [Sun, 21 Aug 2016 14:51:20 +0000 (20:21 +0530)]
Update README.md

8 years agoUpdate README.md
Arun Prakash Jana [Sun, 21 Aug 2016 13:12:22 +0000 (18:42 +0530)]
Update README.md

8 years agoUpdate readme.
Arun Prakash Jana [Sun, 21 Aug 2016 12:49:57 +0000 (18:19 +0530)]
Update readme.

8 years agoList alphabetically, case ignored (like 'ls -l').
Arun Prakash Jana [Sun, 21 Aug 2016 12:47:34 +0000 (18:17 +0530)]
List alphabetically, case ignored (like 'ls -l').

8 years agoUpdate README.md
Arun Prakash Jana [Sun, 21 Aug 2016 12:07:18 +0000 (17:37 +0530)]
Update README.md

8 years agoDocument NOICE_FALLBAK_OPENER.
Arun Prakash Jana [Sun, 21 Aug 2016 10:32:03 +0000 (16:02 +0530)]
Document NOICE_FALLBAK_OPENER.

8 years agoSupport NOICE_FALLBAK_OPENER.
Arun Prakash Jana [Sun, 21 Aug 2016 10:19:54 +0000 (15:49 +0530)]
Support NOICE_FALLBAK_OPENER.

8 years agoUpdate README.md
Arun Prakash Jana [Sun, 21 Aug 2016 08:35:26 +0000 (14:05 +0530)]
Update README.md

8 years agoDoc update on NOICE_OPENER.
Arun Prakash Jana [Sun, 21 Aug 2016 08:28:53 +0000 (13:58 +0530)]
Doc update on NOICE_OPENER.

8 years agoSupport NOICE_OPENER env variable.
Arun Prakash Jana [Sun, 21 Aug 2016 08:18:19 +0000 (13:48 +0530)]
Support NOICE_OPENER env variable.

8 years agoUpdate README.md
Arun Prakash Jana [Sun, 21 Aug 2016 07:28:38 +0000 (12:58 +0530)]
Update README.md

8 years agoUpdate man page.
Arun Prakash Jana [Sun, 21 Aug 2016 07:19:42 +0000 (12:49 +0530)]
Update man page.

8 years agoUpdate README.
Arun Prakash Jana [Sun, 21 Aug 2016 04:41:19 +0000 (10:11 +0530)]
Update README.

8 years agoRemove libmagic, use file command.
Arun Prakash Jana [Sun, 21 Aug 2016 02:55:12 +0000 (08:25 +0530)]
Remove libmagic, use file command.

The magic.mgc file gets created in the local directory, opening
the global file throws unwanted messages. So we are using the o/p
of the file command to determine if the file is a plain text file.

8 years agoUpdate README
Arun Prakash Jana [Sat, 20 Aug 2016 16:27:14 +0000 (21:57 +0530)]
Update README

8 years agoRemove config.h on clean.
Arun Prakash Jana [Sat, 20 Aug 2016 16:13:32 +0000 (21:43 +0530)]
Remove config.h on clean.

8 years agoFix compilation issues with -O3 optimization.
Arun Prakash Jana [Sat, 20 Aug 2016 16:09:47 +0000 (21:39 +0530)]
Fix compilation issues with -O3 optimization.

8 years agoModify file type handling.
Arun Prakash Jana [Sat, 20 Aug 2016 14:35:35 +0000 (20:05 +0530)]
Modify file type handling.

Use mpv, fmedia, zathura.
Invoke libmagic to identify text files and open with vim.
Use xdg-open for unhandled mimes.

8 years agoMerge remote-tracking branch 'upstream/master'
Arun Prakash Jana [Sat, 20 Aug 2016 14:14:31 +0000 (19:44 +0530)]
Merge remote-tracking branch 'upstream/master'

8 years agoInitial commit
Arun Prakash Jana [Sat, 20 Aug 2016 14:10:14 +0000 (19:40 +0530)]
Initial commit

9 years agoBump to 0.5
sin [Fri, 11 Mar 2016 09:59:48 +0000 (09:59 +0000)]
Bump to 0.5

9 years agoFix initscr() crash on NetBSD
sin [Thu, 10 Mar 2016 17:00:12 +0000 (17:00 +0000)]
Fix initscr() crash on NetBSD

NetBSD has its own curses implementation and initscr() does not
terminate with an error if TERM is not set properly.

Instead check the return value and exit if an initialization
error occurs.

9 years agoAdd command to cd back to HOME
sin [Thu, 25 Feb 2016 15:06:57 +0000 (15:06 +0000)]
Add command to cd back to HOME

Original patch written by Richard Hyde and taken from
https://github.com/RichardHyde/noice

9 years agoAdd command to toggle hide .dot files
sin [Thu, 25 Feb 2016 14:54:41 +0000 (14:54 +0000)]
Add command to toggle hide .dot files

Patch written by Richard Hyde and taken from
https://github.com/RichardHyde/noice

9 years agoStyle fix
sin [Fri, 19 Feb 2016 14:03:06 +0000 (14:03 +0000)]
Style fix

9 years agoFix grammar in manpage
sin [Fri, 19 Feb 2016 13:56:42 +0000 (13:56 +0000)]
Fix grammar in manpage

9 years agoFix strlcpy() size argument
sin [Fri, 19 Feb 2016 13:40:44 +0000 (13:40 +0000)]
Fix strlcpy() size argument

It should be the size of the destination buffer, not the source.

In this case, both src and dest have the same size.

9 years agoUpdate README - OSX works too
sin [Fri, 19 Feb 2016 13:37:24 +0000 (13:37 +0000)]
Update README - OSX works too

9 years agoMove mkpath() higher up so we don't need to declare it
sin [Wed, 10 Feb 2016 15:38:22 +0000 (15:38 +0000)]
Move mkpath() higher up so we don't need to declare it

9 years agoMove path[], oldpath[] and fltr[] inside browse()
sin [Wed, 10 Feb 2016 15:32:41 +0000 (15:32 +0000)]
Move path[], oldpath[] and fltr[] inside browse()

9 years agoMinor style fix
sin [Wed, 10 Feb 2016 15:20:28 +0000 (15:20 +0000)]
Minor style fix

9 years agoRename global `n` to `ndents`
sin [Wed, 10 Feb 2016 15:16:19 +0000 (15:16 +0000)]
Rename global `n` to `ndents`

This is more descriptive for a global variable which
can easily be shadowed.

9 years agoUse dents name directly like we do in other places
sin [Wed, 10 Feb 2016 15:09:04 +0000 (15:09 +0000)]
Use dents name directly like we do in other places

9 years agoMinor README update
sin [Mon, 8 Feb 2016 17:25:35 +0000 (17:25 +0000)]
Minor README update

9 years agoMinor style fix
sin [Mon, 8 Feb 2016 17:22:30 +0000 (17:22 +0000)]
Minor style fix

9 years agoNuke some newlines
sin [Mon, 8 Feb 2016 17:08:26 +0000 (17:08 +0000)]
Nuke some newlines

9 years agoRemove some const bullshit
sin [Mon, 8 Feb 2016 16:59:19 +0000 (16:59 +0000)]
Remove some const bullshit

9 years agoRemove some more useless memory allocations
sin [Mon, 8 Feb 2016 16:57:56 +0000 (16:57 +0000)]
Remove some more useless memory allocations

9 years agoRemove filter as you type mode
sin [Mon, 8 Feb 2016 16:52:07 +0000 (16:52 +0000)]
Remove filter as you type mode

Nobody uses it and adds additional complexity.

9 years agoNo need for cast in qsort callback
sin [Mon, 8 Feb 2016 16:44:39 +0000 (16:44 +0000)]
No need for cast in qsort callback

9 years agoBump to 0.4
sin [Tue, 26 Jan 2016 20:07:29 +0000 (20:07 +0000)]
Bump to 0.4

9 years agoYear bump
sin [Wed, 13 Jan 2016 18:52:19 +0000 (18:52 +0000)]
Year bump

9 years agonoice: No need to perform so many memory allocations
sin [Thu, 7 Jan 2016 10:26:44 +0000 (10:26 +0000)]
noice: No need to perform so many memory allocations

The code was quite fragile.  As a first pass, use buffers of size
PATH_MAX and LINE_MAX accordingly until we simplify the overall logic.

9 years agoFix memory leak
sin [Wed, 6 Jan 2016 15:59:27 +0000 (15:59 +0000)]
Fix memory leak

9 years agoAvoid another allocation
sin [Wed, 6 Jan 2016 15:55:25 +0000 (15:55 +0000)]
Avoid another allocation

9 years agoAvoid unneeded memory allocation in xdirname()
sin [Wed, 6 Jan 2016 15:53:04 +0000 (15:53 +0000)]
Avoid unneeded memory allocation in xdirname()

9 years agosizeof(char) is always 1, no need to be explicit
sin [Wed, 6 Jan 2016 15:24:35 +0000 (15:24 +0000)]
sizeof(char) is always 1, no need to be explicit

9 years agoPrint the resolved path for cwd
sin [Wed, 6 Jan 2016 15:21:41 +0000 (15:21 +0000)]
Print the resolved path for cwd

Avoids weird things like /etc/.. when displaying cwd.

Also no need for cwd to be on the heap.

9 years agoFix comment
sin [Thu, 26 Nov 2015 16:05:13 +0000 (16:05 +0000)]
Fix comment

9 years agoAdd usage
sin [Thu, 26 Nov 2015 16:00:26 +0000 (16:00 +0000)]
Add usage

9 years agoDon't use printerr() before curses has been initialized
sin [Thu, 26 Nov 2015 15:54:54 +0000 (15:54 +0000)]
Don't use printerr() before curses has been initialized

9 years agoDon't name vars in prototypes
sin [Thu, 26 Nov 2015 15:35:53 +0000 (15:35 +0000)]
Don't name vars in prototypes

9 years agoRename makepath() to mkpath()
sin [Thu, 26 Nov 2015 15:33:49 +0000 (15:33 +0000)]
Rename makepath() to mkpath()

9 years agoOnly use the environment variable when it is not empty
sin [Thu, 26 Nov 2015 15:10:12 +0000 (15:10 +0000)]
Only use the environment variable when it is not empty

9 years agoBe consistent in manpage
sin [Thu, 26 Nov 2015 15:05:16 +0000 (15:05 +0000)]
Be consistent in manpage

9 years agoMinor fixes for manpage
sin [Thu, 26 Nov 2015 15:03:26 +0000 (15:03 +0000)]
Minor fixes for manpage

9 years agoFix instructions for Solaris 9
sin [Thu, 26 Nov 2015 13:51:09 +0000 (13:51 +0000)]
Fix instructions for Solaris 9

9 years agoMinor grammar fix in README
sin [Thu, 26 Nov 2015 13:45:20 +0000 (13:45 +0000)]
Minor grammar fix in README

9 years agoDeclare var at top of block
sin [Thu, 26 Nov 2015 13:42:41 +0000 (13:42 +0000)]
Declare var at top of block

9 years agoSupport commands specified by environment variables
Martin Kühl [Fri, 20 Nov 2015 15:42:33 +0000 (16:42 +0100)]
Support commands specified by environment variables

Specifying commands by name in config.h means that
every time one switches ones editor (for example),
one has to modify every config.h file referencing that editor
and then recompile every corresponding program.

This change adds a string `env` for specifying an environment
variable to `struct key` and uses it to optionally specify the
command to run on SEL_{RUN,RUNARG}.
The `run` string is used as a fallback when the environment variable
has not been specified or is not set.
It also updates `config.def.h` to demonstrate this new capability.

9 years agoNo need for strlen()
sin [Fri, 20 Nov 2015 17:41:11 +0000 (17:41 +0000)]
No need for strlen()

Thanks Hiltjo!

9 years agoBump to 0.3
sin [Fri, 20 Nov 2015 14:59:41 +0000 (14:59 +0000)]
Bump to 0.3

9 years agoThe 2f30 lists were taken down so update README
sin [Fri, 20 Nov 2015 14:37:27 +0000 (14:37 +0000)]
The 2f30 lists were taken down so update README

9 years agoAdd license pointer
sin [Fri, 20 Nov 2015 14:36:40 +0000 (14:36 +0000)]
Add license pointer

9 years agoRestore screensaver mode
sin [Fri, 20 Nov 2015 14:14:58 +0000 (14:14 +0000)]
Restore screensaver mode

Disable timeout when in filter or type mode.

9 years agoSync strlcpy/strlcat from OpenBSD
sin [Fri, 20 Nov 2015 14:12:47 +0000 (14:12 +0000)]
Sync strlcpy/strlcat from OpenBSD

9 years agoUse wgetnstr() instead of getnstr() because IRIX lacks the latter
sin [Fri, 20 Nov 2015 14:04:01 +0000 (14:04 +0000)]
Use wgetnstr() instead of getnstr() because IRIX lacks the latter

9 years agoProperly handle empty filters
sin [Fri, 20 Nov 2015 11:55:41 +0000 (11:55 +0000)]
Properly handle empty filters

9 years agoMake room for null-terminator
sin [Fri, 20 Nov 2015 11:42:15 +0000 (11:42 +0000)]
Make room for null-terminator

9 years agoSimplify readln()
sin [Fri, 20 Nov 2015 11:38:19 +0000 (11:38 +0000)]
Simplify readln()

Use getnstr() and be done with it.  It will even beep now!

9 years agoRevert "Run screensaver after a period of idleness"
sin [Sat, 14 Nov 2015 14:51:29 +0000 (14:51 +0000)]
Revert "Run screensaver after a period of idleness"

This reverts commit 1e18b85e56d98ca2daeb7adc587c28f5d653a01f.

Revert until remaining issues are fixed.  The filter search expires
after 1 second of inactivity without the revert.

9 years agoIgnore SIGINT to allow returning back to noice when we kill the screensaver
sin [Tue, 3 Nov 2015 17:48:39 +0000 (17:48 +0000)]
Ignore SIGINT to allow returning back to noice when we kill the screensaver

Use 'q' to quit.

9 years agoRun screensaver after a period of idleness
lostd [Mon, 2 Nov 2015 01:21:41 +0000 (03:21 +0200)]
Run screensaver after a period of idleness

9 years agoAdd .mov to config.h
sin [Wed, 19 Aug 2015 07:39:19 +0000 (08:39 +0100)]
Add .mov to config.h

9 years agoRecall current item on refresh or sorting mode change
lostd [Sun, 12 Jul 2015 23:56:51 +0000 (00:56 +0100)]
Recall current item on refresh or sorting mode change

9 years agoAdd keys to move to the first and last entry
lostd [Sun, 12 Jul 2015 12:32:31 +0000 (13:32 +0100)]
Add keys to move to the first and last entry

9 years agoWe don't want to exit the typing mode because of an error
lostd [Thu, 2 Jul 2015 21:51:58 +0000 (22:51 +0100)]
We don't want to exit the typing mode because of an error

Delay displaying the message until return is pressed.
Also contain all printwarn() calls inside browse().

9 years agoUse proper tags for AUTHORS section in manpage
sin [Thu, 2 Jul 2015 16:49:17 +0000 (17:49 +0100)]
Use proper tags for AUTHORS section in manpage

Fix some mandoc -Tlint warnings as well.

9 years agoTest the case of unreadable parent
lostd [Thu, 2 Jul 2015 00:14:27 +0000 (01:14 +0100)]
Test the case of unreadable parent

9 years agoEscape unreadable dirs we are already into
lostd [Thu, 2 Jul 2015 00:07:09 +0000 (01:07 +0100)]
Escape unreadable dirs we are already into

We care about the directory we are going to, so there is no reason
to get locked inside there if the parent is readable.

9 years agoTest for when permissions change while browsing
lostd [Thu, 2 Jul 2015 00:02:47 +0000 (01:02 +0100)]
Test for when permissions change while browsing

9 years agoMore test cases about permissions
lostd [Wed, 1 Jul 2015 23:58:01 +0000 (00:58 +0100)]
More test cases about permissions

9 years agoRefactor parts of browse() into populate() and redraw()
lostd [Wed, 1 Jul 2015 23:56:47 +0000 (00:56 +0100)]
Refactor parts of browse() into populate() and redraw()

9 years agoWe no longer use lists
lostd [Sat, 13 Jun 2015 10:09:58 +0000 (11:09 +0100)]
We no longer use lists

9 years agoSort includes
lostd [Tue, 9 Jun 2015 08:12:17 +0000 (09:12 +0100)]
Sort includes

9 years agoMake config independent to avoid accidental overwrites
lostd [Thu, 4 Jun 2015 22:03:57 +0000 (23:03 +0100)]
Make config independent to avoid accidental overwrites

9 years agoMake setfilter() regexes case-insensitive
sin [Tue, 5 May 2015 17:45:35 +0000 (18:45 +0100)]
Make setfilter() regexes case-insensitive

9 years agoBe case insensitive for file extensions
Alexander Huemer [Mon, 4 May 2015 21:19:20 +0000 (23:19 +0200)]
Be case insensitive for file extensions