Seems nice, but since it's based on fzf, why not just use fzf and it's built in shortcuts, never used ios tho, so maybe the ⌘-k is heavily used with ios.
2. Choose the command for you. If you rely on the fzf Ctrl-T shortcut, you have to type the `cd`, the `vim`, the `open`, etc. I find that most of the time the command is predictable based on the filetype, so cmdk allows you to skip this (see https://github.com/mieubrisse/cmdk/blob/9d742112dab0475d7420... ). When cmdk doesn't have a command for the filetype though, I supplement with fzf's Ctrl-T.
3. Be smart about which files you're searching to be performant. E.g. very likely users aren't going to jump to files in the "~/Library/Application Support", or certain system directories under "/", so give users the option to go to the parent directory without crawling the subdirectories (see https://github.com/mieubrisse/cmdk/blob/main/list-files.sh ).
I understand the confusion! cmdk is complementary, not competitive, to the built-in fzf shortcuts (I use both cmdk and built-in fzf shortcuts in my day-to-day).
The concrete value-adds of cmdk (what fzf doesn't do out of the box):
1. Smart previews. You have to write the fzf preview command to preview text files, directories, images, PDFs, etc. cmdk gives you this out of the box.
2. Choose the command for you. If you rely on the fzf Ctrl-T shortcut, you have to type the `cd`, the `vim`, the `open`, etc. I find that most of the time the command is predictable based on the filetype, so cmdk allows you to skip this. When cmdk doesn't have a command for the filetype though, I supplement with fzf's Ctrl-T.
3. Be smart about which files you're searching to be performant. E.g. very likely users aren't going to jump to files in the "~/Library/Application Support", or certain system directories under "/", so give users the option to go to the parent directory without crawling the subdirectories.
The "open Terminal of selected folder" is the proper way, it requires a different workflow though, so I understand the issue in terms of muscle memory. An easy enough alternative (for me) is to drag and drop the current folder onto iTerm. When you have a folder open in Finder, and hover over the name of the Folder in the titlebar of the window, a blue "folder" icon appears. if you drag that to the iTerm icon in the dock and drop it, iTerm will activate and open a new terminal window in this folder.
> Then again, if you do work in the terminal, why do you navigate to the working directory via the UI Finder?
This right-click terminal complaint comes up all the time here and Reddit. Always thought it was so weird.
But then the other day I wasted an hour of my life digging through Microsoft Teams APIs trying to figure out if I could hack up a way to pipe a file directly to a chat and avoid using Finder.
And then it hit me: after I did the whole cumbersome drag-file-to-chat dance, I wanted to get the terminal path back to the file. and it would be really handy if that was a one or two click thing.
So yeah I guess if you’re forced to use some bullshit software like Teams, that feature makes sense.
Marginally different from dragging it into the terminal. Worse actually, because you can overload the NSPasteboard handler and perform a custom action on the file when you paste it instead of only getting the path.
I guess the only point I’m making is that it’s possible there is some pathological reason why so many people want an “open in terminal from finder” feature. And maybe they are too embarrassed to explain why because they are employed by shitty companies that give little executive function over their workflow. All they want is a little bit of relief from their sadness, just one right-click shortcut to take the pain away for a brief moment.
This is going to sound mental, but here you go. First enable the path bar in Finder by executing code provided to me by anonymous users on the internet: defaults write com.apple.finder ShowPathbar -bool true (EDIT: Apparently you can do CMD + OPT + P shortcut in Finder to accomplish the same)
Then in the path bar you can right click your current folder and open in Terminal (or use Services menu to open in 3rd-party terminals)
> First enable the path bar in Finder by executing code provided to me by anonymous users on the internet: defaults write com.apple.finder ShowPathbar -bool true (EDIT: Apparently you can do CMD + OPT + P shortcut in Finder to accomplish the same)
Or you can just enable it in Finder menu View -> Show Path Bar.
Yep! ⌘-K clears the current terminal window. I chose ⌘-K because it maps to the standard in web apps (Discord, Notion, etc.) and I use `clear` whenever I want to clear my terminal, but you can choose whatever keybinding you want with cmdk.