Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Setting tab titles in iTerm 2 does not work #89

Open
mcmire opened this issue Sep 26, 2011 · 4 comments
Open

Setting tab titles in iTerm 2 does not work #89

mcmire opened this issue Sep 26, 2011 · 4 comments

Comments

@mcmire
Copy link
Contributor

mcmire commented Sep 26, 2011

The PS1 trick in AbstractCore#run_in_window does nothing in iTerm 2. The patch described in #63 would fix the issue (in both iTerm 1 and 2), but applying it directly is not the best solution. Ideally, setting PS1 should be abstracted away somehow so that iterm_core.rb can override it. #set_options would be the best place for this, as it already has the responsibility of taking the tab options and applying them to the tab. However that would work for iTerm but not for setting PS1, because it accepts an options hash and doesn't have access to the appscript tab object, so it can't write commands to the tab. So there's a bit of work that has to be done to fix this issue correctly.

@achiurizo
Copy link
Owner

Yeah there does need to be some additional work to fix issues like these. I've been meaning to do a rewrite of terminitor and break out some of the core specific code into its own gem and keep the main core lean with just the dsl and abstractions for the core. Once I get some time away from work, I'll start working on this. I'll update this ticket once I get around to that rewrite, until then, feel free to message me if I take too long :D

@mcmire
Copy link
Contributor Author

mcmire commented Oct 5, 2011

Okay, well since this is annoying I've gone ahead and made a branch that uses the quick fix in #63 which solves the problem. See: https://github.com/mcmire/terminitor/tree/fix_tab_names_in_iterm_2

@mcmire
Copy link
Contributor Author

mcmire commented Dec 8, 2011

Re-reported within consular-iterm, see achiurizo/consular-iterm#4

@kevzettler
Copy link

should this be closed? looks like it was merged into consular-iterm?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants