oh-my-fish/plugin-tab

Tab not opened in iTerm

dan-c-underwood opened this issue · 10 comments

Running tab (or with any options) does not open a new tab and instead causes an error code to be returned.

iTerm2 Build: 2.9.20150830
Fish Version: 2.2.0

See the install instructions in the readme. You likely need to tell it your default session profile name.

Both it and the value of tab_iterm_profile are set to "Default" with the same result.

If you remove the 2>/dev/null from the code, you might have a more helpful error.

The reported error is:

53:61: syntax error: Expected end of line but found identifier. (-2741)

The location doesn't seem to match up to lines in tab.fish however since the same error message appears if you run the AppleScript directly in the terminal.

You might have better error messages if you run the AppleScript source in Script Editor. Give that a shot?

Looks like the issue is with the line (47):

tell current terminal

It doesn't seem to like the terminal part! The error message within Script Editor is the same however.

The issue may be related to the following: https://iterm2.com/applescript.html

Got it. I won't get to it for a couple of days. If you want to come up with a fix I'd appreciate a PR :)

I'll give it a bash :)

(Or should that be "Give it a fish")?