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

10 years agoBump to 0.2
sin [Thu, 12 Mar 2015 14:20:36 +0000 (14:20 +0000)]
Bump to 0.2

10 years agoKey bindings to run user-defined commands
lostd [Thu, 12 Mar 2015 14:12:01 +0000 (16:12 +0200)]
Key bindings to run user-defined commands

10 years agoConfirm we are in a terminal
lostd [Thu, 12 Mar 2015 12:57:34 +0000 (14:57 +0200)]
Confirm we are in a terminal

10 years agoUpdate contact information in README
sin [Wed, 11 Mar 2015 19:03:43 +0000 (19:03 +0000)]
Update contact information in README

10 years agoAdd C-l to force a redraw
sin [Wed, 11 Mar 2015 18:55:28 +0000 (18:55 +0000)]
Add C-l to force a redraw

Often I am waiting for a file to download and be renamed from
.foo.part to .foo.  Forcing a redraw is a simple way to check if
the file has completed downloading.

10 years agoFix an unsigned conversion error
lostd [Tue, 17 Feb 2015 17:03:51 +0000 (19:03 +0200)]
Fix an unsigned conversion error

10 years agoClarify state toggling
lostd [Thu, 5 Feb 2015 15:53:50 +0000 (17:53 +0200)]
Clarify state toggling

10 years agoMove mtimeorder to config.def.h
sin [Wed, 4 Feb 2015 12:32:16 +0000 (12:32 +0000)]
Move mtimeorder to config.def.h

10 years agoMeaningful comments
lostd [Sun, 1 Feb 2015 12:10:28 +0000 (14:10 +0200)]
Meaningful comments

10 years agoMinor manpage fix
sin [Sat, 31 Jan 2015 22:58:08 +0000 (22:58 +0000)]
Minor manpage fix

10 years agoAdd 't' command to sort output by entry's mtime
sin [Sat, 31 Jan 2015 22:02:59 +0000 (22:02 +0000)]
Add 't' command to sort output by entry's mtime

10 years agoMore concise comment on nextsel()
lostd [Wed, 28 Jan 2015 20:01:26 +0000 (22:01 +0200)]
More concise comment on nextsel()

10 years agoChange scope to always check the correct return value
lostd [Wed, 28 Jan 2015 10:47:11 +0000 (12:47 +0200)]
Change scope to always check the correct return value

10 years agoRework readmore(), replace goto with a switch
lostd [Wed, 28 Jan 2015 10:30:59 +0000 (12:30 +0200)]
Rework readmore(), replace goto with a switch

10 years agoKeep last valid state on regex errors
lostd [Tue, 27 Jan 2015 12:38:37 +0000 (14:38 +0200)]
Keep last valid state on regex errors

10 years agoRemove unused include
lostd [Tue, 27 Jan 2015 11:45:25 +0000 (13:45 +0200)]
Remove unused include

10 years agoAlso treat ^H as backspace
lostd [Tue, 27 Jan 2015 11:29:12 +0000 (13:29 +0200)]
Also treat ^H as backspace

10 years agoCorrect IRIX build notes
lostd [Tue, 27 Jan 2015 11:28:00 +0000 (13:28 +0200)]
Correct IRIX build notes

10 years agoUpdate dates
lostd [Tue, 27 Jan 2015 10:46:42 +0000 (12:46 +0200)]
Update dates

10 years agoUpdate author section in manpage
sin [Tue, 27 Jan 2015 10:42:30 +0000 (10:42 +0000)]
Update author section in manpage

10 years agoUpdate LICENSE
sin [Tue, 27 Jan 2015 10:42:13 +0000 (10:42 +0000)]
Update LICENSE

10 years agoDocument changes regarding filters
lostd [Tue, 27 Jan 2015 10:24:09 +0000 (12:24 +0200)]
Document changes regarding filters

10 years agoBasic filter-as-you-type mode
lostd [Tue, 27 Jan 2015 08:47:57 +0000 (10:47 +0200)]
Basic filter-as-you-type mode

10 years agoComment and cleanup
lostd [Tue, 27 Jan 2015 07:58:32 +0000 (09:58 +0200)]
Comment and cleanup

10 years agoEmpty filter resets filter to the default
lostd [Tue, 27 Jan 2015 07:55:07 +0000 (09:55 +0200)]
Empty filter resets filter to the default

10 years agoFix segfault when a non-matching filter is applied twice
lostd [Tue, 27 Jan 2015 07:47:56 +0000 (09:47 +0200)]
Fix segfault when a non-matching filter is applied twice

10 years agoSpawn a program that segfaults for testing
lostd [Mon, 26 Jan 2015 20:48:47 +0000 (22:48 +0200)]
Spawn a program that segfaults for testing

10 years agoUpdate assocs section in manpage
sin [Mon, 12 Jan 2015 17:10:45 +0000 (17:10 +0000)]
Update assocs section in manpage

10 years agoMatch the whole path to enable associations based on a prefix dir
lostd [Sun, 11 Jan 2015 22:28:54 +0000 (00:28 +0200)]
Match the whole path to enable associations based on a prefix dir

10 years agoSimplify condition
sin [Sat, 20 Dec 2014 19:35:27 +0000 (19:35 +0000)]
Simplify condition

10 years agoSimplify visible()
sin [Sat, 20 Dec 2014 19:21:03 +0000 (19:21 +0000)]
Simplify visible()

10 years agoRemove unnecessary curly brackets
sin [Sat, 20 Dec 2014 19:14:10 +0000 (19:14 +0000)]
Remove unnecessary curly brackets

10 years agoRemove unnecessary label
lostd [Thu, 18 Dec 2014 09:13:45 +0000 (11:13 +0200)]
Remove unnecessary label

10 years agono need to check for NULL before free
Hiltjo Posthuma [Wed, 17 Dec 2014 11:54:57 +0000 (11:54 +0000)]
no need to check for NULL before free

10 years agostyle: dont declare vars inline
Hiltjo Posthuma [Wed, 17 Dec 2014 11:51:53 +0000 (11:51 +0000)]
style: dont declare vars inline

10 years agoremove unused variables
Hiltjo Posthuma [Wed, 17 Dec 2014 11:48:34 +0000 (11:48 +0000)]
remove unused variables

10 years agoregexec: check on success return code
Hiltjo Posthuma [Wed, 17 Dec 2014 11:25:55 +0000 (11:25 +0000)]
regexec: check on success return code

on OpenBSD: "Other non-zero error codes may be returned in exceptional
situations; see DIAGNOSTICS" regcomp(3).

10 years agoJust say Linux
sin [Tue, 2 Dec 2014 16:10:37 +0000 (16:10 +0000)]
Just say Linux

10 years agoFix whitespace
lostd [Wed, 26 Nov 2014 16:09:03 +0000 (18:09 +0200)]
Fix whitespace

10 years agoRemember current entry accross filter changes
lostd [Wed, 26 Nov 2014 15:42:57 +0000 (17:42 +0200)]
Remember current entry accross filter changes

10 years agoDon't care about cur, it defaults to 0
lostd [Wed, 26 Nov 2014 15:39:19 +0000 (17:39 +0200)]
Don't care about cur, it defaults to 0

10 years agoWorks on DragonFly BSD as well
sin [Wed, 26 Nov 2014 15:38:51 +0000 (15:38 +0000)]
Works on DragonFly BSD as well

10 years agoSimplify default regexes
lostd [Tue, 25 Nov 2014 15:20:06 +0000 (17:20 +0200)]
Simplify default regexes

10 years agoFirst release
lostd [Fri, 14 Nov 2014 18:17:33 +0000 (20:17 +0200)]
First release

10 years agoMore notes on building
lostd [Fri, 14 Nov 2014 18:13:00 +0000 (20:13 +0200)]
More notes on building

10 years agoNo need for +=, also favors portability
lostd [Fri, 14 Nov 2014 16:32:24 +0000 (18:32 +0200)]
No need for +=, also favors portability

10 years agoAlso on FreeBSD
lostd [Fri, 14 Nov 2014 16:28:48 +0000 (18:28 +0200)]
Also on FreeBSD

10 years agoWorks on Haiku too so update README
sin [Fri, 14 Nov 2014 16:26:49 +0000 (16:26 +0000)]
Works on Haiku too so update README

10 years agoBuild with -lcurses by default to be more generic
lostd [Fri, 14 Nov 2014 16:13:02 +0000 (18:13 +0200)]
Build with -lcurses by default to be more generic

10 years agoTest unicode on filename and content
lostd [Fri, 14 Nov 2014 16:12:14 +0000 (18:12 +0200)]
Test unicode on filename and content

10 years agoBuilding and compatibility notes
lostd [Fri, 14 Nov 2014 15:24:54 +0000 (17:24 +0200)]
Building and compatibility notes

10 years agoRenew date
lostd [Fri, 14 Nov 2014 14:50:29 +0000 (16:50 +0200)]
Renew date

10 years agoRemove history section because it resembles historical notes
lostd [Fri, 14 Nov 2014 14:45:17 +0000 (16:45 +0200)]
Remove history section because it resembles historical notes

10 years agoStyle changes and rephrasing
lostd [Fri, 14 Nov 2014 14:41:46 +0000 (16:41 +0200)]
Style changes and rephrasing

10 years agoDocument the relative path feature
lostd [Fri, 14 Nov 2014 14:22:07 +0000 (16:22 +0200)]
Document the relative path feature

10 years agoUse a var for dist files and remove queue.h
lostd [Fri, 14 Nov 2014 13:47:18 +0000 (15:47 +0200)]
Use a var for dist files and remove queue.h

10 years agoAdd a simple dprintf() implementation for systems that do not have it
sin [Fri, 14 Nov 2014 13:05:17 +0000 (13:05 +0000)]
Add a simple dprintf() implementation for systems that do not have it

10 years agoJust use xstrdup() in makepath()
sin [Fri, 14 Nov 2014 12:50:41 +0000 (12:50 +0000)]
Just use xstrdup() in makepath()

10 years agoAdd dist target
sin [Fri, 14 Nov 2014 12:20:37 +0000 (12:20 +0000)]
Add dist target

10 years agoReplace asprintf() with strlcpy() and strlcat()
sin [Fri, 14 Nov 2014 09:59:19 +0000 (09:59 +0000)]
Replace asprintf() with strlcpy() and strlcat()

10 years agoSame functionality using lstat(2) instead of fstatat(2)
lostd [Thu, 13 Nov 2014 16:49:57 +0000 (18:49 +0200)]
Same functionality using lstat(2) instead of fstatat(2)

10 years agoUpdate error to reflect actual syscall
sin [Thu, 6 Nov 2014 14:41:16 +0000 (14:41 +0000)]
Update error to reflect actual syscall

10 years agoExpose key bindings in the configuration header
lostd [Thu, 6 Nov 2014 11:46:37 +0000 (13:46 +0200)]
Expose key bindings in the configuration header

10 years agoNow nextsel() just maps keys to actions
lostd [Thu, 6 Nov 2014 08:54:20 +0000 (10:54 +0200)]
Now nextsel() just maps keys to actions