summaryrefslogtreecommitdiffstats
path: root/.config/nnn/plugins/joe_fzfjump
blob: dc918f3423091e5d73ed88df41bf1ec635849344 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env perl

use strict;
use warnings;
use Env qw(NNN_PIPE PWD);

sub main {
	my $file;

	$file = `fd -L | fzf`;
	chomp($file);
	open(FH, '>>', $NNN_PIPE) or die $!;
	print FH '0c' . $PWD . '/' . $file;
	close(FH);
	return;
}

main();

__END__