Fasdr [](https://travis-ci.org/kelleyma49/fasdr) [](https://ci.appveyor.com/project/kelleyma49/fasdr) [](https://github.com/kelleyma49/fasdr/blob/master/LICENSE.md)

June 21, 2016 ยท View on GitHub

Fasdr (pronounced similar to "faster") is a command-line productivity booster for PowerShell. It supports quick access to leaf and container classes for PowerShell providers. Leaf and container paths are tracked and ranked based on frequency and date.

Introduction

Fasdr allows you to open files or change directories by accessing its database that it keeps of your history. Set-Frecent is used to jump between paths. You can even use tab completion to iterate through Fasdr's database. Here are some examples:

  j 'Files'         # cd 'c:\Program Files'
  jl 'notepad.exe'  # cd 'c:\Windows\System32'

j is aliased to Set-Frecent, which accepts leaves and containers. jl is aliased to Set-FrecentFromLeaf, which forwards to Set-Frecent; however, tab completion will filter only leaf paths.

Installation

Fasdr is available on the PowerShell Gallery. Note that it will hook into the current prompt and tab completion functions for proper support of word completion mode.

Fasdr has only been tested on PowerShell 5.0.

Matching

Fasdr has similar matching rules to Fasd. Exact matches between the search string and the last element of items stored in the database are returned first, followed by fuzzy matches.

Search Syntax

Fasdr's search syntax supports prefix, suffix, and current directory searches.

Token ExampleMatch typeDescription
log.txtfuzzy matchItems that exactly match or fuzzy match log.txt
=log.txtexact matchItems that exactly match log.txt
^notepadprefix exact matchItems that start with notepad
.cpp$suffix exact matchItems that end with .cpp
**Documentsmatch against current working directoryItems that exist below the current working directory

Word Completion

Fasdr has special tokens that can be used for tab completion from any command.

Token ExampleMatch typeDescription
:::Windowscontainers and leavesItems that contain Windows
c::Windowscontainers onlyContainers that contain Windows
l::txtleaves onlyLeaves that contain txt
d::Windowsdirectories onlyDirectories that contain Windows
f::txtfiles onlyFiles that contain txt

Global Settings

Global settings can be set dynamically by accessing the global hashtable $global:Fasdr.

SettingDescriptionDefault Value
MaxResultsmaximum results that Find-Frecent returns50
MaxEntriesmaximum number of entries saved in each provider database10000

Reference/Inspiration