You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SendText not working with Sublime Text 4/iTerm2 #19
I have Sublime Text 4 (build 4113) and iTerm2 (build 3.4.8), however I cannot get SendText to work with these programs.
I have adjusted the Default Settings as follows:
{
// Uncomment the program you want send text to:
// "program": "Terminal.app",
"program": "iTerm2",
// "program": "tmux",
// "program": "screen",
"paths":
{
"iTerm2": "/Applications/iTerm.app"
// It might be necessary to explicitly set path (usually /usr/bin
// or /usr/local/bin) to tmux and screen. Uncomment below and specify
// the correct path:
// "tmux": "/usr/local/bin/tmux",
// "screen": "/usr/local/bin/screen"
}
}
I have also tried not specifying a path to iTerm2, and also changing the program to "iTerm", but every time I try to send a command with 'Cmd Enter' either nothing happens, or it sends a command to Terminal instead.
Is this due to the recent Sublime upgrade, and if so will there be ongoing updates/support to SendText for this and future versions?
'-e', 'set mysession to current session of current window',
'-e', 'tell mysession to write text "'+selection+'"',
'-e', 'end tell'])
It uses osascript to run some AppleScript code. If you can figure out the correct command to send messages to the terminal and want to make a PR, I'd be happy to look at it.
Activity
wch commentedon Aug 23, 2021
I don't have time to investigate this, but the command that issues to send messages to iTerm2 is here:
SendText/SendText.py
Lines 41 to 44 in 9276275
It uses
osascriptto run some AppleScript code. If you can figure out the correct command to send messages to the terminal and want to make a PR, I'd be happy to look at it.