3 ms·
Thank you! Just what I was wishing for. Now I wonder if I could make Sublime Text / VS Code style command palette within iTerm... Probably requires Python shel
by jarpineh 7y ago
Thank you! Just what I was wishing for.
Now I wonder if I could make Sublime Text / VS Code style command palette within iTerm... Probably requires Python shell script as front. I didn’t yet find mention of custom dialogs or the like in the API docs.
- tedmiston 7y agoNot sure if there's extensibility yet but the View > Open Quickly palette is a primitive start. Do you have specific use cases in mind?
- jarpineh 7y agoI was checking quick open actually for its possible extensions. It does mention /s to "run script" but didn't find it mentioned in the docs. I'm looking to get: - switch layout and run server/compile start commands and the like for given project - call my own shell scripts and assorted helpers from terminal's context - get Jupyter notebook running and console connected to it - connect to tmux session on host or start one with given layout if it isn't there - Kubernetes and Docker context in their own tabs - Quick Open can probably take care of finding tabs and ssh sessions so need to learn to remember it's there That's the first things I find myself constantly doing manually. Nothing that can't be done, say, with regular shell and TMUX stuff, but those have so low level control mechanisms. I'm hoping Python access to gives same power with less work.
- tedmiston 7y agoOh interesting. I didn't realize it had slash commands either. It's briefly mentioned under "View > Open Quickly" on https://www.iterm2.com/3.3/documentation-menu-items.html https://www.iterm2.com/3.3/documentation-menu-items.html: > If you have lots of sessions you can quickly find the one you're looking for with Open Quickly. Select the View > Open Quickly menu item (cmd-shift-O) and then enter a search query. You can search by tab title, command name, host name, user name, profile name, directory name, badge label, and more. Queries are scored according to relevance and sorted by score. Open Quickly also lets you create new tabs, change the current session's profile, open arrangements, and change the color preset. If you start your query with a / then that gives you a shortcut to various commands. /a followed by an arrangement name restores the arrangement. /f restricts the query to existing sessions, excluding options to open new tabs, etc. /p restrics the query to profile names to switch the current session to. /t restricts the results to "open new tab" for matching profile names. /c restricts the results to color presets. I think with /s and creating custom scripts you could wire up some of these use cases.