aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Ignore empty XDG_CONFIG_DIRSPřemysl Eric Janouch2021-09-261-1/+1
| | | | | | | | As the specification says we should. GLib does this as well. It is still possible to achieve an empty set by using ":", which are two non-absolute paths that should be ignored. GLib doesn't implement this. Thus, we're now better than GLib.
* Makefile: make the static build a non-phony targetPřemysl Eric Janouch2021-07-191-5/+5
|
* Explicitly disable GCC's -Wmisleading-indentationPřemysl Eric Janouch2021-07-192-2/+3
|
* Fix a signedness compiler warningPřemysl Eric Janouch2021-07-191-5/+5
|
* Bind F6 to a rename promptPřemysl Eric Janouch2021-07-171-1/+1
| | | | | | Mostly just so that the F7 binding isn't completely alone. Since Shift-F6 isn't something we can just bind to, use a prefill.
* Bind F7 to an mkdir promptPřemysl Eric Janouch2021-07-171-2/+12
| | | | This might have needed more thought, but we'll see.
* Implement search iterationPřemysl Eric Janouch2021-07-171-17/+37
| | | | | | The interactive search now has its own keymap, overriding "input". Closes #5
* Add a right-side prompt to the searchPřemysl Eric Janouch2021-07-171-7/+24
|
* Enable pushing the search in a certain directionPřemysl Eric Janouch2021-07-171-6/+7
| | | | We want to make it possible to iterate all current matches.
* Make search() return the number of matchesPřemysl Eric Janouch2021-07-171-2/+4
|
* Make removing characters invoke g.editor_on_changePřemysl Eric Janouch2021-07-171-3/+4
|
* Improve C-char parsingPřemysl Eric Janouch2021-07-091-4/+4
| | | | | | | | | I was hoping that a superoptimiser would help me find a miraculous branchless equation to cover it, but in the end the branching doesn't hurt at all in our case. It's more readable than `(((char >> 2) - 0x38) & 0x60) ^ char` or `(char ^ 0x40) & (((char >> 1) ^ 0x20) | 0x5f)`.
* sdn-install: explain why -dot is experimentalPřemysl Eric Janouch2021-07-071-0/+1
| | | | Add an explanatory link, so that I don't need to look it up again.
* Makefile: fix version extractionPřemysl Eric Janouch2021-07-071-2/+2
| | | | Regression introduced by cc59fcf.
* Allow binding to custom key sequencesPřemysl Eric Janouch2021-07-073-7/+33
| | | | And document this feature in the manual page.
* README.adoc: make use of the "plus" attributePřemysl Eric Janouch2020-11-071-4/+2
|
* sdn.1: refer to a better manual pagePřemysl Eric Janouch2020-11-051-1/+1
|
* sdn.1: take care about sentence spacingPřemysl Eric Janouch2020-10-291-16/+25
| | | | | | | | | | | For more info, see e.g. https://github.com/asciidoc/asciidoc-py3/issues/137 I'll probably commit to mandoc here but scdoc is appealing. Somewhat sadly, it explicitly suppresses sentence spacing but I'm wondering whether it couldn't be reimplemented better, in a more AsciiDoc-like fashion.
* Include a header required for kill()Přemysl Eric Janouch2020-10-291-0/+1
| | | | Yet, this program remains fairly unportable.
* sdn.1: improve wording about envvarsPřemysl Eric Janouch2020-10-271-2/+2
|
* sdn.1: fix default key binding referencesPřemysl Eric Janouch2020-10-271-1/+1
|
* 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.