Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I open the file in a new tab instead of new window? #2

Open
aguynamedben opened this issue Oct 28, 2009 · 1 comment
Open

How do I open the file in a new tab instead of new window? #2

aguynamedben opened this issue Oct 28, 2009 · 1 comment

Comments

@aguynamedben
Copy link

I normally use tabs when using TextMate. When I click on a search result, how do I make the file open in a tab? If I already have the file, I'd like to switch to that tab, or if I don't have it open, open it in a new tab (not a new window). This is the behavior of the normal "Find in project" in TextMate. Is there a way to do this? Thank you for your time and contribution.

@protocool
Copy link
Owner

I also use tabs and it always opens in a new tab for me.

The way it opens the file is with the txmt://open?url=yadda url scheme so it's up to textmate to decide how to open the file.

As I haven't seen your behaviour before I can't really say what might be causing it.

I have to assume that the filename in the URL is fully qualified, but you might want to check by right-clicking on the matching line and selecting "copy url" so that you can paste it into Safari's location bar. Opening that URL in Safari should cause textmate to open the file in a new tab (just like it should from ack in project).

After that, I'd experiment with different fully-qualified filenames to see if you can find one that does open in a new tab - hoping that it will point to the difference between tab and no-tab.

Once all that's done you'll be able to ask (on the textmate mailing list) why some URLs open in a new tab and some don't.

Hope this helps.
Trev

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

No branches or pull requests

2 participants