mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
Add Use fzf To Change Directoris as a unix til
This commit is contained in:
@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
|
|||||||
|
|
||||||
For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud).
|
For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud).
|
||||||
|
|
||||||
_993 TILs and counting..._
|
_994 TILs and counting..._
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -977,6 +977,7 @@ _993 TILs and counting..._
|
|||||||
- [Touch Access And Modify Times Individually](unix/touch-access-and-modify-times-individually.md)
|
- [Touch Access And Modify Times Individually](unix/touch-access-and-modify-times-individually.md)
|
||||||
- [Undo Some Command Line Editing](unix/undo-some-command-line-editing.md)
|
- [Undo Some Command Line Editing](unix/undo-some-command-line-editing.md)
|
||||||
- [Update Package Versions Known By asdf Plugin](unix/update-package-versions-known-by-asdf-plugin.md)
|
- [Update Package Versions Known By asdf Plugin](unix/update-package-versions-known-by-asdf-plugin.md)
|
||||||
|
- [Use fzf To Change Directories](unix/use-fzf-to-change-directories.md)
|
||||||
- [Use Regex Pattern Matching With Grep](unix/use-regex-pattern-matching-with-grep.md)
|
- [Use Regex Pattern Matching With Grep](unix/use-regex-pattern-matching-with-grep.md)
|
||||||
- [View A Web Page In The Terminal](unix/view-a-web-page-in-the-terminal.md)
|
- [View A Web Page In The Terminal](unix/view-a-web-page-in-the-terminal.md)
|
||||||
- [Watch The Difference](unix/watch-the-difference.md)
|
- [Watch The Difference](unix/watch-the-difference.md)
|
||||||
|
|||||||
15
unix/use-fzf-to-change-directories.md
Normal file
15
unix/use-fzf-to-change-directories.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Use fzf To Change Directories
|
||||||
|
|
||||||
|
When you install fzf (e.g. `brew install fzf`), you can also install
|
||||||
|
completions and a few keybindings by running the `/usr/local/opt/fzf/install`
|
||||||
|
binary.
|
||||||
|
|
||||||
|
Included with the keybindings is `Alt+c` which opens an fzf prompt for the
|
||||||
|
directories nested under your current directory. You can type into the prompt
|
||||||
|
to narrow down the results with fzf's fuzzy-finding capabilities. When you see
|
||||||
|
the directory you wan, you can use the arrows to navigate over it and then hit
|
||||||
|
end. You'll be `cd`'ed into that directory.
|
||||||
|
|
||||||
|
On my Mac, the `Alt` key is the `Option` key. Hitting `Opt+c` outputs the `ç`
|
||||||
|
character instead of opening this fzf prompt. It turns out, you can
|
||||||
|
alternatively hit `Esc+c` to trigger this prompt.
|
||||||
Reference in New Issue
Block a user