Repository navigation
macos: add AppleScript front window and focused terminal properties - #11251
Conversation
This adds two new propeties to make it easy to get the frontmost (main) window and the focused terminal within a tab. We already had a property to get the selected tab of a tab group.
|
I was doing some tests of Applescript and the possibilities are so many! Excited that this was a focus for the team. |
Yes! Awesome! Please let me know any weaknesses you find. This PR for example was thanks to some feedback I got from someone writing scripts on X. :) |
|
Last thing I need to perfect my riced up pane switching is a way to run an arbitrary script when pressing a key bind in Ghostty. The specific shape of my problem is that Claude Code consumes all input while open, so nushell never sees my CTRL+hjkl keys typed in to call my AppleScript that intelligently changes windows. If, however, I could execute an AppleScript on a key bind being pressed, then I could check the window title to see if I'm running As it stands now I can't find a way to navigate out of a Claude Code window 馃槩 |
This adds two new propeties to make it easy to get the frontmost (main) window and the focused terminal within a tab. We already had a property to get the selected tab of a tab group.
Examples
Send Input to Focused Terminal
Split the Focused Terminal