Open tapyu opened 1 month ago
You can try a workaround for the same result
% sed
# Print a specific line from a file
sed -n <number>p <file>
$ file: find . -maxdepth 1 -type f | cut -c3-
$ number: aux=$(wc -l <file> | cut -f 1) && echo "This file contains $aux pages" --- --header-lines 1
Is your feature request related to a problem? Please describe. Let us consider that I want to create a navi cheat sheet to print a line of a file using
sed
.Describe the solution you'd like My idea is that the
aux
variable becomes available tofzf
so that it prints out a header likeDescribe alternatives you've considered I tried some syntax such as
<file>
,$file
, etc. But it seems thatfzf
is insensitive to any variable declared bynavi
.