Commit graph

276 commits

Author SHA1 Message Date
d295666572
feat: add option for custom shell 2024-08-25 19:49:43 +02:00
5c20bd47f2
add Nix flake 2024-08-25 19:49:20 +02:00
e08e44c43c
port to Zig 0.13.0 2024-08-25 19:46:01 +02:00
Leon Henrik Plickat
b584002850 fix DirView scroll offset
This in turn fixes a crash w.r.t. scrollbar positioning
2023-11-07 00:50:44 +01:00
Leon Henrik Plickat
9656189de5 more UI code overhaul 2023-11-06 20:52:04 +01:00
Leon Henrik Plickat
76578e8b4e fix themes which use inverted colours for selected items 2023-11-05 12:56:20 +01:00
Leon Henrik Plickat
3d43ce343f UI: draw arrows at top/bottom of scrollbar slider 2023-11-05 04:52:23 +01:00
Leon Henrik Plickat
9d72ba8f52 add move-cursor-to-previous-match 2023-11-05 04:21:53 +01:00
Leon Henrik Plickat
aa7c89ff11 README: mention zig version 2023-11-05 03:03:24 +01:00
Leon Henrik Plickat
5baa27c57b UI overhaul
- auto-parser for colour values
- code cleanup
- scrollbars in file list view
2023-11-05 03:02:26 +01:00
Leon Henrik Plickat
4d09cead57 port to zig 0.11.0, but actually 0.12.0-dev
This /should/ be valid zig 0.11.0, but it crashes the compiler, so we use
0.12.0-dev for now...
2023-11-05 03:01:40 +01:00
Leon Henrik Plickat
8546055b0f update build system & use zig package manager 2023-11-01 19:50:48 +01:00
Leon Henrik Plickat
958c7fe409 remove git submodules
This in in preparation for the port to zig 0.11.0 where we'll use the new
package manager.
2023-11-01 12:59:20 +01:00
Leon Henrik Plickat
ce2faf294c improve ini tokenizer 2023-07-12 09:44:00 +02:00
Leon Henrik Plickat
7bb71f9ef2 Merge branch 'catppuccin-theme' of https://mzte.de/git/LordMZTE/nfm 2023-07-07 16:47:58 +02:00
9231f4f3b5
feat: implement catppuccin themes 2023-07-07 15:46:40 +02:00
Leon Henrik Plickat
9643f5542f new default bind: C-x 2 -> open new terminal with nfm 2023-07-06 20:05:55 +02:00
Leon Henrik Plickat
ddde0d5be6 fix TitleBar test 2023-06-30 22:54:06 +02:00
Leon Henrik Plickat
e6750ac286 add TitleBar abstraction 2023-06-30 06:56:27 +02:00
Leon Henrik Plickat
893a87d9cb add function to Context for changing keybind mode 2023-06-29 07:37:26 +02:00
Leon Henrik Plickat
c1b3890fdf move active_bind_mode to Context 2023-06-28 21:23:16 +02:00
Leon Henrik Plickat
7319752f84 add g-mode binds for page up/down 2023-06-28 19:27:52 +02:00
Leon Henrik Plickat
26353279f5 changes to default keybinds 2023-06-28 19:24:35 +02:00
Leon Henrik Plickat
c5091b924c add bind modes
also remove the bookmarks view, since it can now be implemented as a custom
bind mode
2023-06-27 10:32:09 +02:00
Leon Henrik Plickat
530183783d Use a StringHashMap as backend for StringPoolUnmanaged 2023-06-26 02:21:55 +02:00
Leon Henrik Plickat
5d4febc7db Add StringPoolUnmanaged
This leads to a minimal memory usage reduction
2023-06-25 19:20:44 +02:00
Leon Henrik Plickat
c7bbd907f2 Complete executabe names from $PATH 2023-06-10 17:35:42 +02:00
Leon Henrik Plickat
fd421f141d Merge branch 'robust-filesystem-list' 2023-04-28 20:27:23 +02:00
Leon Henrik Plickat
5d1a6bc791 Add some documentation to some functions 2023-04-28 20:26:52 +02:00
Leon Henrik Plickat
6842e3d405 improve robustness of file system list parser 2023-04-28 20:26:34 +02:00
Hugo Machet
4692295559 doc: Fix some typos 2023-04-13 15:29:16 +02:00
Leon Henrik Plickat
d54ab31117 Draw separator lines in vertical layout
Without these it is hard to tell the directories apart
2023-04-10 15:21:17 +02:00
Leon Henrik Plickat
2149bfb078 automatically shrink scroll_offset 2023-04-10 14:58:05 +02:00
Leon Henrik Plickat
35ce9b72a5 doc: add HTML and X11 colours
zig-spoon supports these now, document them so that users know about this
feature.
2023-04-09 03:05:47 +02:00
Leon Henrik Plickat
c0c9235087 minor cleanup of select/keep/discard code 2023-03-24 19:50:34 +01:00
Leon Henrik Plickat
af8b17b0c4 Workaround possible miscompilation 2023-03-24 04:51:43 +01:00
Leon Henrik Plickat
9d2545ea9c Mildly restructure TitleBarMode code 2023-03-24 04:24:25 +01:00
Leon Henrik Plickat
3c7dca24be make EditableUTF8String require an allocator for initialisation
This allows us to explicitly set the testing allocator in tests, which in term
allows us to remove the hack setting context.allocator to testing.allocator
in test builds.

Also fixes a bug that causes run(), select(), search(), keep() and discard() to
insert format tokens always without quotes.
2023-03-22 17:58:53 +01:00
Leon Henrik Plickat
71733d1e13 improve default mv binds 2023-03-22 16:52:03 +01:00
Leon Henrik Plickat
4c55d4179d more and better titlebar messages 2023-03-22 06:23:24 +01:00
Leon Henrik Plickat
8d513076d6 fold mode.zig into Context.zig 2023-03-22 05:54:28 +01:00
Leon Henrik Plickat
5b5e2facac fold History.zig into Context.zig 2023-03-22 05:00:36 +01:00
Leon Henrik Plickat
67963071f4 fix crash when trying to edit search history item 2023-03-22 01:43:23 +01:00
Leon Henrik Plickat
50a0a21017 dirmap: automatically delete dirs that are not viewed and have no marked files
It makes no sense to keep them in memory and receive inotify events.
2023-01-29 18:13:23 +01:00
Leon Henrik Plickat
21910aeb0b system: posix: more idiomatic zig code for closing std{in, out, err} in execBackground() 2023-01-29 18:01:24 +01:00
Leon Henrik Plickat
2b7b3e49d2 Better fix for EditableUTF8String test 2023-01-02 11:02:15 +01:00
Leon Henrik Plickat
d3794a87d8 fix EditableUTF8String tests 2023-01-02 10:56:44 +01:00
Leon Henrik Plickat
dc7269b056 prevent crash on bad config 2023-01-02 09:32:19 +01:00
Leon Henrik Plickat
3d5c8fa8ed allocator convention changes
* use context.alloc for general purpose allocations
* use arena as local variable name for arena allocators
* use ValidationAllocator in Debug builds
2023-01-02 08:37:21 +01:00
Leon Henrik Plickat
f19e849948 minor cleanup to startup code paths 2023-01-02 08:05:41 +01:00