aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Make the manpages mostly acceptablePřemysl Eric Janouch2020-10-273-16/+91
| | | | Closes #1
* Update README.adocPřemysl Eric Janouch2020-10-271-1/+6
| | | | I've put the project in AUR, it seems to deserve it.
* Add some mediocre manpagesPřemysl Eric Janouch2020-10-263-0/+69
| | | | I'm not particularly happy to write in mdoc but here goes.
* Implement the --version optionPřemysl Eric Janouch2020-10-261-0/+5
| | | | Since we have a version number at all, even if it's meaningless.
* CMakeLists.txt: cleanupPřemysl Eric Janouch2020-10-261-9/+6
|
* Bind F1 to show the helpPřemysl Eric Janouch2020-10-251-1/+2
|
* Mark a minor issue for later resolutionPřemysl Eric Janouch2020-10-241-0/+1
|
* sdn-install: bash: fix UTF-8 collisionsPřemysl Eric Janouch2020-10-241-3/+4
|
* Makefile: make portable, support static linkingPřemysl Eric Janouch2020-10-231-7/+14
| | | | | | | | | | | We can happily stick to POSIX and the usual variable names, with the following exceptions: - pkg-config(1) is used to find libraries and compile flags - the new "static" target uses non-standard compiler and linker flags, though it's not the default target sdn is predestined for wild distribution, even the dynamically linked libc is rather suboptimal.
* CleanupPřemysl Eric Janouch2020-10-231-7/+0
| | | | | | The wchar_t variant of compute_width() is no longer needed. So all in all the better help has saved code.
* Group help message by actionPřemysl Eric Janouch2020-10-231-5/+7
| | | | Considerably more useful and concise.
* Bind M-Up to the "parent" actionPřemysl Eric Janouch2020-10-231-1/+2
| | | | | | Taken from Windows Explorer, which previously used Backspace. We might want to use h/l for parent/choose by default.
* Bind C-d in the editorPřemysl Eric Janouch2020-10-231-1/+1
| | | | | | We do get these as a key, after all. Closes #4
* Implement C-v in the editorPřemysl Eric Janouch2020-10-231-2/+14
| | | | | | Not completely happy with the explicit `halfdelay (1)`. Updates #4
* Implement C-u C-k in the editorPřemysl Eric Janouch2020-10-231-0/+10
| | | | Updates #4
* CleanupPřemysl Eric Janouch2020-10-221-16/+17
|
* Implement Delete in the editorPřemysl Eric Janouch2020-10-221-2/+11
| | | | | | | Not caring about C-d right now, we might have to convince the tty to send it to us--I'm not sure if it does, or returns EOF. Updates #4
* Implement C-a C-e C-b C-f in the editorPřemysl Eric Janouch2020-10-211-1/+26
| | | | Updates #4
* Make backspace erase combining charactersPřemysl Eric Janouch2020-10-211-2/+7
| | | | | | They might not be even printed correctly, though. Updates #4
* Track cursor position in the editorPřemysl Eric Janouch2020-10-211-6/+13
| | | | Updates #4
* Minor fix-ups and adjustmentsPřemysl Eric Janouch2020-10-212-4/+4
|
* Add an installation scriptPřemysl Eric Janouch2020-10-214-110/+188
| | | | | | | | Copying snippets from the README was uncomfortable and laborious, and wasted a lot of space in the document, especially after the recent additions. Closes #3
* README.adoc: avoid unnecessary quotes for bashPřemysl Eric Janouch2020-10-201-3/+3
| | | | Word expansion is not performed there.
* README.adoc: fish after bashPřemysl Eric Janouch2020-10-201-20/+20
| | | | Bash is a bad citizen but this order makes more sense.
* Fix ext-helpers with older bash versionsPřemysl Eric Janouch2020-10-201-1/+7
| | | | | | See Midnight Commander commit 436296f, blindly trusting it. wc(1) could be used unconditionally but let's make it clear.
* Let the caller decide how to launch helpersPřemysl Eric Janouch2020-10-082-6/+5
| | | | | In the end, we don't need to impose any policy on it, and it removes a level of quoting, as well as an `eval`.
* When resuming a child, resume the whole groupPřemysl Eric Janouch2020-10-081-1/+1
| | | | | | | | | | | | SIGTSTP is sent to the entire foreground process group, so do the some with our SIGCONT. Debian's default sh (dash) doesn't replace itself with the command, even if it's the last one in the -c option. Of course, we do not need to use /bin/sh for the helpers at all, though it doesn't cost us much. We could also issue an explicit `exec`.
* Fix the help in absence of a bindings filePřemysl Eric Janouch2020-10-081-4/+4
|
* Fix showing DEL in the helpPřemysl Eric Janouch2020-10-081-14/+14
| | | | And in general fix all CTRL processing to handle the DEL character.
* README.adoc: add configuration for elvishPřemysl Eric Janouch2020-10-071-6/+29
| | | | | | | | | | And remove it from the "similar software" section. Our relationship has progressed. Other unusual shells I've checked before I gave up: - nushell lacks the ability to bind keys to user functions - yash can but is otherwise way too basic
* Revisit zsh integrationPřemysl Eric Janouch2020-10-042-3/+4
| | | | | | | | | zsh's antisocial behaviour was fairly promptly fixed (thanks to Stephane Chazelas and his patience). zle-line-init and zle-line-reset seem to be user-defined widgets and the order inverted. Put zle-line-init before reset-prompt because some people do weird things in there.
* Survive a removed CWD, as well as an empty rootPřemysl Eric Janouch2020-10-021-14/+22
| | | | | All the omitted error checking sometimes sucks a lot, and I need to include it later anyway.
* README.adoc: fix zsh integration snippetPřemysl Eric Janouch2020-10-021-0/+6
|
* Make the outer prompt look more normalPřemysl Eric Janouch2020-10-012-8/+10
| | | | | | | | There's a slight issue with the inverted cell representing the cursor standing out a bit too much amongst the rest of the characters. The resulting experience is a lot more consistent, though.
* Show external command line if appropriatePřemysl Eric Janouch2020-10-012-9/+27
| | | | | | | | | | | | | | Since I'm already dealing with the fish shell. All of our supported shells seem to handle cursor position in Unicode (wide character) codepoints. It was easiest and most straight-forward to pass the data through yet-unused program arguments. The cursor position is marked by a Unicode glyph equivalent to ACS_DIAMOND, although ncurses doesn't get a chance to make any ACS translation.
* README.adoc: clarify bash problemsPřemysl Eric Janouch2020-10-011-2/+3
| | | | | I've also tried tcsh but while it /can/ be used for directory navigation, it has several issues that are much more serious.
* README.adoc: fix up hswg compatibilityPřemysl Eric Janouch2020-10-011-6/+6
|
* README.adoc: split into subsectionsPřemysl Eric Janouch2020-10-011-14/+20
|
* README.adoc: add configuration for fishPřemysl Eric Janouch2020-10-011-1/+19
|
* Set cursor to child when going to parent dirPřemysl Eric Janouch2020-09-291-18/+26
| | | | | | | | | | | That is, if it's missing from our history. This makes for a more consistent experience when traversing the filesystem. Arguably, it's only good for when 'h' is bound to the 'parent' action. Also make sure that the offset and cursor are reset when the path is changed.
* CleanupPřemysl Eric Janouch2020-09-291-3/+2
|
* Add ability to run helpers externallyPřemysl Eric Janouch2020-09-292-13/+36
| | | | So far experimental and essentially undocumented.
* reload() doesn't really need to know the old pathPřemysl Eric Janouch2020-09-281-12/+13
| | | | | | | | | Just whether it's safe for it to keep an anchor on the current item. I've left in the safety check for an empty entries array, for the theoretical case of an empty or entirely filtered-out root directory. It will likely crash in that case, anyway, the cursor may be either -1 or 0.
* Make anchor processing a bit more obviousPřemysl Eric Janouch2020-09-281-2/+2
|
* Improve PAGER defaultsPřemysl Eric Janouch2020-09-281-2/+4
| | | | | | We basically need less(1), nothing else will work correctly. I'm not sure where I took pager(1) from, might be a Debian thing.
* README.adoc: talk about view and edit helpersPřemysl Eric Janouch2020-09-281-4/+18
|
* Expand a comment about overstriked underliningPřemysl Eric Janouch2020-09-281-1/+2
|
* Show error output from failed helpersPřemysl Eric Janouch2020-09-281-0/+6
| | | | | | | | | | | | | Usually, when the pager or the editor fail and return a non-zero exit status, they display a message on the standard error output. We might also try to redirect this output to show_mesage() but it might not fit as a whole, so, given the relative rareness of this situation, this slight inconsistency shouldn't be much of an issue. It'd also be possible to redirect the output to run_pager() but in doing so, we might make the problem recursive.
* Fix tilde expansion algorithmPřemysl Eric Janouch2020-09-281-2/+2
| | | | | | | In principle correct, in practice completely broken. I wrongly assumed basic_string::find() would behave like strcspn(), and also used a nonsensical string index to check for the tilde.
* Fix comment: the word "no-op" needs to be splitPřemysl Eric Janouch2020-09-281-1/+1
|