summaryrefslogtreecommitdiffstats
path: root/.config/nnn/plugins/joe_fzfcd
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2025-09-06 07:37:23 +0200
committerJoe <rbo@gmx.us>2025-09-06 07:37:23 +0200
commitf226caa22628e83b0f2bdd59c251e76e433759ee (patch)
tree8bfbf7ae8d18863694d904a932c7caac7c74f901 /.config/nnn/plugins/joe_fzfcd
parentup (diff)
downloaddotfiles-bsd-f226caa22628e83b0f2bdd59c251e76e433759ee.tar.gz
dotfiles-bsd-f226caa22628e83b0f2bdd59c251e76e433759ee.tar.bz2
dotfiles-bsd-f226caa22628e83b0f2bdd59c251e76e433759ee.tar.xz
dotfiles-bsd-f226caa22628e83b0f2bdd59c251e76e433759ee.tar.zst
dotfiles-bsd-f226caa22628e83b0f2bdd59c251e76e433759ee.zip
up
Diffstat (limited to '')
-rwxr-xr-x.config/nnn/plugins/joe_fzfcd20
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/nnn/plugins/joe_fzfcd b/.config/nnn/plugins/joe_fzfcd
new file mode 100755
index 0000000..4c74f88
--- /dev/null
+++ b/.config/nnn/plugins/joe_fzfcd
@@ -0,0 +1,20 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+use Env qw(NNN_PIPE PWD);
+
+sub main {
+ my $dir;
+
+ $dir = `fd -t d -L | fzf`;
+ chomp($dir);
+ open(FH, '>>', $NNN_PIPE) or die $!;
+ print FH '0c' . $PWD . '/' . $dir;
+ close(FH);
+ return;
+}
+
+main();
+
+__END__