~leon_plickat/nfm

nfm: Add default keybind '~' to go to home dir v2 APPLIED

Hugo Machet: 1
 Add default keybind '~' to go to home dir

 2 files changed, 2 insertions(+), 0 deletions(-)
#781961 alpine.yml success
#781962 freebsd.yml failed
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~leon_plickat/nfm/patches/33061/mbox | git am -3
Learn more about email & git

[PATCH nfm v2] Add default keybind '~' to go to home dir Export this patch

---
v1 -> v2:
  Only use `cd ~`

 example/config.ini | 1 +
 src/Config.zig     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/example/config.ini b/example/config.ini
index ee92b8f23745..faaec19915ac 100644
--- a/example/config.ini
+++ b/example/config.ini
@@ -21,6 +21,7 @@ home = cursor-move-to-top;
end = cursor-move-to-bottom;
page-down = cursor-move-page-down;
page-up = cursor-move-page-up;
~ = run(cd ~);
: = open-cmd;
m = mark-file-at-cursor;
M = open-select;
diff --git a/src/Config.zig b/src/Config.zig
index ac6fb1810bd3..61077afbc220 100644
--- a/src/Config.zig
+++ b/src/Config.zig
@@ -94,6 +94,7 @@ pub fn init(self: *Self) !void {
    try self.addBindIfUndefined("end", impl.@"cursor-move-to-bottom", null);
    try self.addBindIfUndefined("page-down", impl.@"cursor-move-page-down", null);
    try self.addBindIfUndefined("page-up", impl.@"cursor-move-page-up", null);
    try self.addBindIfUndefined("~", impl.@"run", "cd ~");
    try self.addBindIfUndefined(":", impl.@"open-cmd", null);
    try self.addBindIfUndefined("m", impl.@"mark-file-at-cursor", null);
    try self.addBindIfUndefined("M", impl.@"open-select", null);
-- 
2.36.1
nfm/patches: FAILED in 54s

[Add default keybind '~' to go to home dir][0] v2 from [Hugo Machet][1]

[0]: https://lists.sr.ht/~leon_plickat/nfm/patches/33061
[1]: mailto:mail@hmachet.com

✓ #781961 SUCCESS nfm/patches/alpine.yml  https://builds.sr.ht/~leon_plickat/job/781961
✗ #781962 FAILED  nfm/patches/freebsd.yml https://builds.sr.ht/~leon_plickat/job/781962
Thanks!


Friendly greetings,
Leon Henrik Plickat