{"repo":"mieubrisse/cmdk","free":true,"listed":false,"github":"https://github.com/mieubrisse/cmdk","clone":"git clone https://github.com/mieubrisse/cmdk.git","description":"Access any file on your computer with ⌘-K in your terminal","language":"Go","stars":111,"topics":["terminal"],"license":"MIT","category":"cli-tools","readme_excerpt":"cmdk ==== The ⌘-k \"access anything\" shortcut is awesome on Notion, Slack, etc. The terminal, by comparison, is a dinosaur: tons of repeated cd and ls and TAB just to get anywhere. This is ⌘-k for the terminal: access anything on your filesystem, from anywhere, with previews before you open: When you press enter, selected files are identified by type and opened accordingly: - Directories get cd d to - Text files get opened in your $EDITOR (or vim -O if unset) - Images and PDFs get opened in the Preview app - .key files get opened in Keynote Note: cmdk is currently macOS-focused. File opening (Preview, Keynote, open command) assumes macOS. The core navigation works on Linux, but file-open behavior may vary. I'm extremely grateful to fzf; this project wouldn't be possible without it. I'd been fed up with terminal navigation for a decade, and fzf was the missing piece needed to make cmdk possible. Installation ------------ 1. Install cmdk: This installs the cmdk binary along with its required dependencies ( fzf and fd ). Optionally, install tools for richer file previews: 2. Source the shell integration. In your .zshrc or .bashrc : Or if you're on fish , in your /.config/fish/config.fish : 3. (Optional) Bind the ⌘-k hotkey (or any other you prefer) to type cmdk + Enter in your terminal: iTerm Settings → Profiles → Keys → Keybindings → + → Send Text , then bind ⌘-k to send the text cmdk\\n Ghostty 4. (Optional) To use cmdk's file listing and previews with fzf's Ctrl-T , add to your","default_branch":null,"files":null,"tree":[],"storefront":"/r/mieubrisse","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mieubrisse/cmdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}