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

10 years agoStyle fix in a comment
lostd [Fri, 31 Oct 2014 23:56:26 +0000 (01:56 +0200)]
Style fix in a comment

10 years agoEmulate ls -F completely including sockets and FIFOs
lostd [Fri, 31 Oct 2014 23:55:26 +0000 (01:55 +0200)]
Emulate ls -F completely including sockets and FIFOs

10 years agoEnsure manprefix exists
sin [Mon, 27 Oct 2014 13:56:33 +0000 (13:56 +0000)]
Ensure manprefix exists

10 years agoRevert "No need to manually strip trailing slashes"
lostd [Thu, 23 Oct 2014 15:38:00 +0000 (18:38 +0300)]
Revert "No need to manually strip trailing slashes"

This reverts commit abd301333da81b72070fbb575dcd0824d3af038e.

10 years agoDocument the old path history thing
lostd [Thu, 23 Oct 2014 15:26:06 +0000 (18:26 +0300)]
Document the old path history thing

10 years agoThe queue header is not needed for now
lostd [Thu, 23 Oct 2014 15:14:18 +0000 (18:14 +0300)]
The queue header is not needed for now

10 years agoWe don't use realpath(3) anymore
lostd [Thu, 23 Oct 2014 15:12:17 +0000 (18:12 +0300)]
We don't use realpath(3) anymore

10 years agoGet rid of the LIFO history, an oldpath is enough
lostd [Thu, 23 Oct 2014 15:10:45 +0000 (18:10 +0300)]
Get rid of the LIFO history, an oldpath is enough

10 years agoIf you call makepath() with an absolute name it returns a copy of it
lostd [Thu, 23 Oct 2014 14:53:26 +0000 (17:53 +0300)]
If you call makepath() with an absolute name it returns a copy of it

10 years agoDon't attempt to go back if on the relative root
lostd [Thu, 23 Oct 2014 14:39:39 +0000 (17:39 +0300)]
Don't attempt to go back if on the relative root

10 years agoOnly use chdir(3) just before spawning a shell
lostd [Thu, 23 Oct 2014 14:37:12 +0000 (17:37 +0300)]
Only use chdir(3) just before spawning a shell

10 years agoTry to open file to see access errors on the status bar
lostd [Wed, 22 Oct 2014 21:31:45 +0000 (00:31 +0300)]
Try to open file to see access errors on the status bar

10 years agoCreate test files and directories
lostd [Wed, 22 Oct 2014 21:12:57 +0000 (00:12 +0300)]
Create test files and directories

10 years agoOnly free history path if it is valid
lostd [Wed, 22 Oct 2014 19:32:45 +0000 (22:32 +0300)]
Only free history path if it is valid

10 years agoStrip trailing whitespace
lostd [Wed, 22 Oct 2014 19:12:09 +0000 (22:12 +0300)]
Strip trailing whitespace

10 years agoKeep history based on paths instead of positions
lostd [Wed, 22 Oct 2014 18:05:59 +0000 (21:05 +0300)]
Keep history based on paths instead of positions

10 years agorealloc() behaves like free() if size is 0
sin [Wed, 22 Oct 2014 16:57:59 +0000 (17:57 +0100)]
realloc() behaves like free() if size is 0

10 years agoManpage reword
sin [Wed, 22 Oct 2014 16:43:55 +0000 (17:43 +0100)]
Manpage reword

10 years agoSome systems define this already.
sin [Wed, 22 Oct 2014 16:41:16 +0000 (17:41 +0100)]
Some systems define this already.

10 years agoStyle fix
sin [Wed, 22 Oct 2014 16:31:08 +0000 (17:31 +0100)]
Style fix

10 years agoCall dentfree() when we quit
sin [Wed, 22 Oct 2014 16:28:27 +0000 (17:28 +0100)]
Call dentfree() when we quit

10 years agoRename testopendir() to canopendir()
sin [Wed, 22 Oct 2014 16:26:35 +0000 (17:26 +0100)]
Rename testopendir() to canopendir()

10 years agoTest if we can back out/enter directories
sin [Wed, 22 Oct 2014 16:25:25 +0000 (17:25 +0100)]
Test if we can back out/enter directories

10 years agoAdd pushhist(), pophist() and forgethist()
sin [Wed, 22 Oct 2014 16:07:04 +0000 (17:07 +0100)]
Add pushhist(), pophist() and forgethist()

10 years agoSave one level of indentation
sin [Wed, 22 Oct 2014 15:56:31 +0000 (16:56 +0100)]
Save one level of indentation

10 years agoVertical spacing fixes
sin [Wed, 22 Oct 2014 15:55:26 +0000 (16:55 +0100)]
Vertical spacing fixes

10 years agoSave one level of indentation
sin [Wed, 22 Oct 2014 15:53:38 +0000 (16:53 +0100)]
Save one level of indentation

10 years agoUse fstatat() wherever possible
sin [Wed, 22 Oct 2014 15:50:30 +0000 (16:50 +0100)]
Use fstatat() wherever possible

10 years agoInitialize `n' and `dents'
sin [Wed, 22 Oct 2014 15:33:59 +0000 (16:33 +0100)]
Initialize `n' and `dents'

10 years agoCheck getch() against ERR
sin [Wed, 22 Oct 2014 15:30:27 +0000 (16:30 +0100)]
Check getch() against ERR

10 years agoRemember to set dents to NULL
sin [Wed, 22 Oct 2014 15:28:23 +0000 (16:28 +0100)]
Remember to set dents to NULL

10 years agoInclude sys/wait.h for waitpid()
sin [Wed, 22 Oct 2014 15:27:08 +0000 (16:27 +0100)]
Include sys/wait.h for waitpid()

10 years agoRemove unused vars
sin [Wed, 22 Oct 2014 15:25:59 +0000 (16:25 +0100)]
Remove unused vars

10 years agoJust let the commands show up
lostd [Wed, 22 Oct 2014 15:24:05 +0000 (18:24 +0300)]
Just let the commands show up

10 years agoAdd dentfill() and dentfree()
sin [Wed, 22 Oct 2014 15:21:50 +0000 (16:21 +0100)]
Add dentfill() and dentfree()

10 years agoFunctions for setting and clearing the prompt
lostd [Wed, 22 Oct 2014 14:54:13 +0000 (17:54 +0300)]
Functions for setting and clearing the prompt

10 years agoMore accurate description
lostd [Wed, 22 Oct 2014 14:27:53 +0000 (17:27 +0300)]
More accurate description

10 years agoFree tmp string if dirname fails
lostd [Wed, 22 Oct 2014 14:21:53 +0000 (17:21 +0300)]
Free tmp string if dirname fails

10 years agoNo need for a temporary buffer
sin [Wed, 22 Oct 2014 14:14:33 +0000 (15:14 +0100)]
No need for a temporary buffer

xdirname() uses xstrdup() internally so we are safe to use that
pointer directly.

10 years agoOnly free() after xstrdup()
sin [Wed, 22 Oct 2014 14:05:14 +0000 (15:05 +0100)]
Only free() after xstrdup()

10 years agoAdd a KNOWN ISSUES sections
sin [Wed, 22 Oct 2014 13:59:15 +0000 (14:59 +0100)]
Add a KNOWN ISSUES sections

10 years agoAdd xdirname() again and give dirname(3) another chance
lostd [Wed, 22 Oct 2014 14:02:15 +0000 (17:02 +0300)]
Add xdirname() again and give dirname(3) another chance

10 years agoRemove xdirname()
sin [Wed, 22 Oct 2014 13:44:16 +0000 (14:44 +0100)]
Remove xdirname()

dirname(3) should be shot to death.

10 years agoUse stat() instead of open() + fstat()
sin [Wed, 22 Oct 2014 13:33:00 +0000 (14:33 +0100)]
Use stat() instead of open() + fstat()

10 years agoForget all history on manual dir change
lostd [Wed, 22 Oct 2014 13:26:58 +0000 (16:26 +0300)]
Forget all history on manual dir change

10 years agoAdd section on history
sin [Wed, 22 Oct 2014 13:28:47 +0000 (14:28 +0100)]
Add section on history

10 years agoAdd xdirname() to avoid quirks with dirname(3)
sin [Wed, 22 Oct 2014 13:22:55 +0000 (14:22 +0100)]
Add xdirname() to avoid quirks with dirname(3)