Skip to content
gsuuonPublic

About

Simple directory navigator that works with cd

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

48 Commits

Folders and files

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages