Skip to content

Latest commit

 

History

History
48 lines (41 loc) · 1.05 KB

README.md

File metadata and controls

48 lines (41 loc) · 1.05 KB

FNav

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

Usage

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

Install

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

To alias

nushell

def-env fn [] {
  cd (^fn)
}

bash

alias fn='cd $(\fn)'

powershell

function fn { cd (fn.exe) }