F# Navigator
Simple directory navigator that renders to stderr and outputs the directory selection to stdout, letting you cd (fn)
or fn | cd $in
without writing intermediate files or any other setup.
fnav.mp4
cd (fn)
j
k
↓
↑
- Select down / up
h
l
←
→
- Go to parent / Enter dir
<enter>
- Pick selected directory
<ctrl-enter>
- Pick parent directory
<esc>
- Pick original directory
/
- Toggle Search mode
<alt-h>
<alt-l>
<alt-j>
<alt-k>
- Search mode select / change dirs
<alt-/>
- Cycle the list sort-by between: name, modified date, accessed date
From nuget:
dotnet tool install --global gsuuon.tool.fnav
From repo:
dotnet pack
dotnet tool install --global --add-source ./nupkg --no-cache gsuuon.tool.fnav
nushell
def-env fn [] {
cd (^fn)
}
bash
alias fn='cd $(\fn)'
powershell
function fn { cd (fn.exe) }