Skip to content
/ FNav Public

Simple directory navigator that works with cd

License

Notifications You must be signed in to change notification settings

gsuuon/FNav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) }

About

Simple directory navigator that works with cd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published