100 Commits
Author SHA1 Message Date
p 8556ea1588 Bump version
Alpine 3.24 Success
Alpine 3.24 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2026-08-04 06:23:02 +02:00
p 338572806b Assign unnesting level to the last history level
Alpine 3.24 Success
Alpine 3.24 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
Surprise unnesting ~ is no fun.
2026-08-04 06:16:34 +02:00
p 60fcff0285 Update documentation
Alpine 3.24 Success
Alpine 3.24 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2026-08-04 05:46:31 +02:00
p f33795329e README.adoc: add a nicer demo
Alpine 3.24 Success
Alpine 3.24 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
I'm not quite sure what to put in it, but it beats a static image.
2026-08-01 03:25:51 +02:00
p 85416db143 Let's call it unnesting rather than unpacking 2026-08-01 03:25:51 +02:00
p c3662b0f13 Fix shifted function keys
Make both the normal and rxvt interpretations of pcfkeys work,
while trying to make rxvt work better in general.

Blargh.
2026-07-31 23:54:21 +02:00
p f7f85cb08a README.adoc: rewrite the pitch
Alpine 3.24 Success
Alpine 3.24 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
I suppose it's now "shell directory navigator" rather than "simple ...".
2026-07-31 13:01:05 +02:00
p aa4be26520 Add an action to compute directory sizes
Alpine 3.24 Success
Alpine 3.24 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
The binding, modelled after Midnight Commander, aliases to C-Space.

Not saving this to the state file.
2026-07-28 22:59:33 +02:00
p 73093cac74 Adjust keyboard bindings 2026-07-28 22:51:35 +02:00
p 9873a06761 Improve matching in the lookup function
Alpine 3.24 Success
Alpine 3.24 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2026-07-24 19:42:29 +02:00
p 2ac93c0e0e Allow unpacking multiple levels of directories
Alpine 3.24 Success
Alpine 3.24 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
To get an overview despite hierarchies.
2026-07-24 15:30:37 +02:00
p 28dcbd8a2c Make status bar contents configurable
Started calling it a status bar rather than just a bar now.

Inventing our own format, because:
 - tmux doesn't have quite enough useful variables,
   besides #h/#{host_short}, #{USER}, and perhaps #{PWD}.
 - zsh uses weird names for everything.
 - bash uses mildly inconvenient \escapes, and lacks formatting.

Also bumping C++ to 17, because the project already requires it
to build anyway (it's a relict from the time of sdn's conception).
2026-07-24 15:30:37 +02:00
p b2701d93bd Avoid variable shadowing 2026-07-24 15:30:37 +02:00
p b7d516c66f Fix shell quoting
The tilde character was an odd UTF-8 multibyte one.
2026-07-24 15:30:32 +02:00
p d6e0b9bc01 Rectify a non-commented odd condition 2026-07-24 15:30:32 +02:00
p f3f0bc3d33 Rename ic and dc keys
Alpine 3.24 Success
Alpine 3.24 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
Since I got confused by this, others would too.

Update NEWS.
2026-07-24 07:03:10 +02:00
p 5a3948de21 sdn-install: work around zsh 5.9.2 regression
Alpine 3.24 Success
Alpine 3.24 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2026-07-22 07:06:20 +02:00
p 7d4cb5ec7a Fix the mc.ext.ini parser
Alpine 3.24 Success
Alpine 3.24 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2026-07-22 05:45:07 +02:00
p ea694cc633 Don't lose configuration on first run 2026-07-22 05:38:47 +02:00
p 4c4a64bff4 Move pages by visible lines
Alpine 3.23 Success
Alpine 3.23 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2026-03-23 03:01:14 +01:00
p d1e54fee0d Fix inotify readouts 2026-03-23 00:39:32 +01:00
p d9b1ea079e Bind C-b C-f in the normal mode 2026-03-23 00:28:23 +01:00
p 769be55153 Update README.adoc
Alpine 3.23 Success
Alpine 3.23 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2026-01-27 17:23:21 +01:00
p 1dc39f900c Add and integrate sdn-edit
Alpine 3.23 Success
Alpine 3.23 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2026-01-27 15:35:55 +01:00
p dbea5cb193 CMakeLists.txt: adjust packaging
Alpine 3.23 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
Alpine 3.23 aarch64 Success
2026-01-25 12:02:53 +01:00
p 600d5b724b Bump version
Alpine 3.23 Success
Alpine 3.23 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2026-01-10 13:53:33 +01:00
p 4d787e728c README.adoc: patch up formatting 2026-01-04 14:30:13 +01:00
p 431d266411 README.adoc: update
Alpine 3.23 Success
Alpine 3.23 aarch64 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2026-01-04 14:05:39 +01:00
p 5a0732a622 README.adoc: link to static builds
Alpine 3.22 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2026-01-03 09:31:58 +01:00
p 0407c2abce Tune up the static build rule 2026-01-03 08:07:16 +01:00
p 0a3224dd96 Old libstdc++ is probably circumvented already 2026-01-03 07:09:25 +01:00
p 10b6c04c97 Add support for MSYS2
Alpine 3.22 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2026-01-03 04:30:53 +01:00
p 16ef3f9e47 sdn-open: improve macOS and WSL experiences
Alpine 3.22 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
2025-11-21 12:52:56 +01:00
p 3e39cc5660 Add and integrate sdn-open
Alpine 3.22 Success
Arch Linux AUR Success
OpenBSD 7.8 Success
Originally I thought that not supporting %cd would be an issue,
making this kind of utility unclean.

It turns out the desire to launch xdg-open quickly is stronger.
2025-11-20 21:16:30 +01:00
p 977d1a7120 Update documentation
Alpine 3.20 Success
Arch Linux AUR Success
OpenBSD 7.5 Success
2024-12-30 19:36:51 +01:00
p 9b274417c5 Make pressing / in search activate ACTION_ENTER
Alpine 3.20 Success
Arch Linux AUR Success
OpenBSD 7.5 Success
You can disable this in the bindings file using: search / none

Closes #6
2024-12-30 00:57:55 +01:00
p cc14a9f735 Add selection functionality
Alpine 3.20 Success
Arch Linux AUR Success
OpenBSD 7.5 Success
At least for now, other actions mostly ignore the selection,
which is consistent with MC.

The selection is saved in the config/state file.

Closes #2
2024-12-30 00:30:34 +01:00
p b070df6010 Rewrite sdn-view AWK core in C++
Alpine 3.20 Success
Arch Linux AUR Success
OpenBSD 7.5 Success
sdn-view is still slower than I'd like it to be,
just no longer ridiculously so.
2024-12-29 02:58:35 +01:00
p 3075d47aeb Add and integrate a script to execute mc.ext.ini
Tsk, tsk, parasiting on what we wanted to replace.

macOS is annoying to port to.

Unfortunately, this script is also very slow, for some reason.
2024-12-28 04:58:13 +01:00
p 85b2d8a2ee Use more of the relevant pkg-config variables
Alpine 3.20 Success
Arch Linux AUR Success
OpenBSD 7.5 Success
2024-12-21 16:57:43 +01:00
p 272ee62ad8 Make a release
Alpine 3.20 Success
Arch Linux AUR Success
OpenBSD 7.5 Success
2024-12-21 09:10:54 +01:00
p a85426541a sdn-install: improve macOS installation
Alpine 3.20 Success
Arch Linux AUR Success
OpenBSD 7.5 Success
Login shells have a dash at the beginning of their first argument.
2024-12-21 08:16:23 +01:00
p c9b003735d Fix OpenBSD build
Arch Linux AUR Success
Alpine 3.20 Success
OpenBSD 7.5 Success
2024-12-21 07:59:44 +01:00
p 52a28f01c8 Add support for BSD derivatives, fix macOS
Alpine 3.20 Success
Arch Linux AUR Success
2024-12-21 07:37:06 +01:00
p 3607757554 Improve filename passing
Alpine 3.19 Success
Arch Linux AUR Success
c9662f1 forgot about internal helpers.

Moreover, it is annoying to see the -- in shell history
for every single external helper call.
2024-04-17 02:00:10 +02:00
p 6eb216a40a Remove linker preference from CMakeLists.txt
Arch Linux AUR Success
Alpine 3.19 Success
ld.gold doesn't understand all options that ld.bfd does.

In particular, this broke AUR builds with the current makepkg.conf.
2024-04-08 01:49:55 +02:00
p 9ce6f47716 Use more precise filesizes
Arch Linux AUR Scripts failed
The behaviour differs from GNU `ls -lh` in that we use binary units,
meaning we get 1023 before 1.0K rather than 999 before 1.0K,
which is nonetheless still four characters wide.
2024-04-07 16:00:21 +02:00
p c9662f1a7b Fix passing filenames starting with -
We don't want to pass them as program options.
2024-01-20 08:33:17 +01:00
p 9ddeb03652 CMakeLists.txt: declare compatibility with 3.27
Sadly, the 3.5 deprecation warning doesn't go away after this.
2023-08-01 03:11:11 +02:00
p acb187c6b1 README.adoc: update package information 2023-07-01 21:58:29 +02:00
p 9427df62e7 Fix code formatting, bump copyright years 2023-06-12 14:00:58 +02:00
p 4d6999c415 Do not beep on window resizes 2023-06-11 21:11:20 +02:00
p 30ed61fdd2 Implement ^W in the editor 2023-06-11 21:05:55 +02:00
p 2df916c9b3 Support wildcards in interactive search
The previous search for the longest match is functionally
duplicated by typing individual characters on the input line,
and wildcards can be escaped, so there shouldn't be regressions
in terms of capability.
2022-09-03 12:17:02 +02:00
p 24401825b4 Add a missing case break 2022-01-08 11:23:36 +01:00
p 2bfb490798 Add and bind an action to center the cursor
"z" stands for VIM's "zz".
2022-01-08 11:17:24 +01:00
p 338d00d605 Do not crash on opendir() failures
Show an error message, and a way out.
2021-11-09 07:52:48 +01:00
p 015652e379 Fix build with recent ncurses
Easily gained, easily lost.  No more ^S binding.
2021-11-09 07:45:20 +01:00
p c298b6fc97 bash integration: add helpers to command history 2021-11-05 22:11:30 +01:00
p 7c2ab8ab59 zsh integration: add helpers to command history 2021-11-05 21:54:56 +01:00
p e423a3a1b1 Add clang-format configuration, clean up 2021-11-05 21:34:05 +01:00
p 916f354c9b Move the cursor to just created directories 2021-10-30 12:32:40 +02:00
p 050f875c47 Clean up 2021-10-30 12:13:45 +02:00
p aeffe40efc Bind ^S to search, as in Emacs, with a trick
We heavily depend on ncurses anyway, so no worries about portability.
2021-10-18 11:23:17 +02:00
p 536aa57761 Slightly optimize very large directories
Cumulatively 10% of user time, give or take.

These are mainly pointless multibyte to wide string conversions.

The hit to source code readibility is minimal.
2021-10-05 21:01:32 +02:00
p 0d10ae06e6 Measured stat performance, io_uring not worth it
Large directories are slow for different reasons.
2021-10-05 19:18:15 +02:00
p e1b0831854 Don't reload on sort changes
It is unexpected behaviour, and likes to take too long.
2021-09-26 09:38:16 +02:00
p 4e93dfbb8d Add a comment about libacl
So that I don't repeat my actions in the future.
2021-09-26 09:19:54 +02:00
p 8a6bb54eb5 Ignore empty XDG_CONFIG_DIRS
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.
2021-09-26 08:59:57 +02:00
p 4ef7c9edf7 Makefile: make the static build a non-phony target 2021-07-19 09:28:50 +02:00
p 3eea106c3c Explicitly disable GCC's -Wmisleading-indentation 2021-07-19 09:23:28 +02:00
p 7de8c84e8f Fix a signedness compiler warning 2021-07-19 09:12:17 +02:00
p e17c5e2083 Bind F6 to a rename prompt
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.
2021-07-17 14:47:50 +02:00
p 9bd3739122 Bind F7 to an mkdir prompt
This might have needed more thought, but we'll see.
2021-07-17 14:41:57 +02:00
p ec1f1031cc Implement search iteration
The interactive search now has its own keymap, overriding "input".

Closes #5
2021-07-17 14:19:37 +02:00
p bc99b3dd48 Add a right-side prompt to the search 2021-07-17 13:04:42 +02:00
p e948741864 Enable pushing the search in a certain direction
We want to make it possible to iterate all current matches.
2021-07-17 08:49:54 +02:00
p 0adbac2066 Make search() return the number of matches 2021-07-17 07:54:03 +02:00
p 2238db5a4e Make removing characters invoke g.editor_on_change 2021-07-17 07:24:16 +02:00
p 98612f5492 Improve C-char parsing
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)`.
2021-07-09 05:16:37 +02:00
p 1034321f81 sdn-install: explain why -dot is experimental
Add an explanatory link, so that I don't need to look it up again.
2021-07-07 22:13:46 +02:00
p e7da32160c Makefile: fix version extraction
Regression introduced by cc59fcf.
2021-07-07 21:21:52 +02:00
p fdb338fe12 Allow binding to custom key sequences
And document this feature in the manual page.
2021-07-07 21:21:32 +02:00
p 9056ef4194 README.adoc: make use of the "plus" attribute 2020-11-07 03:22:51 +01:00
p b8a4742fb9 sdn.1: refer to a better manual page 2020-11-05 01:24:05 +01:00
p c999e5a8e4 sdn.1: take care about sentence spacing
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.
2020-10-29 19:22:20 +01:00
p 07ef834a1e Include a header required for kill()
Yet, this program remains fairly unportable.
2020-10-29 03:24:37 +01:00
p 997f5c25a2 sdn.1: improve wording about envvars 2020-10-27 14:58:23 +01:00
p 39e68a977c sdn.1: fix default key binding references 2020-10-27 14:46:04 +01:00
p c20d3780b2 Make the manpages mostly acceptable
Closes #1
2020-10-27 04:17:52 +01:00
p 22725ba3b7 Update README.adoc
I've put the project in AUR, it seems to deserve it.
2020-10-27 01:16:07 +01:00
p df046bb071 Add some mediocre manpages
I'm not particularly happy to write in mdoc but here goes.
2020-10-26 20:46:09 +01:00
p 0c1a8d9902 Implement the --version option
Since we have a version number at all, even if it's meaningless.
2020-10-26 19:07:47 +01:00
p cc59fcfb41 CMakeLists.txt: cleanup 2020-10-26 18:56:14 +01:00
p c88566e7bb Bind F1 to show the help 2020-10-25 08:19:49 +01:00
p 39c840cd74 Mark a minor issue for later resolution 2020-10-24 19:28:11 +02:00
p f231828e8d sdn-install: bash: fix UTF-8 collisions 2020-10-24 19:27:07 +02:00
p 1318c4983f Makefile: make portable, support static linking
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.
2020-10-23 08:22:59 +02:00
p c503954f44 Cleanup
The wchar_t variant of compute_width() is no longer needed.

So all in all the better help has saved code.
2020-10-23 07:53:37 +02:00
p 77973fc026 Group help message by action
Considerably more useful and concise.
2020-10-23 03:51:26 +02:00