TabTools

Posted by jeff.griffiths on 2007-07-23 18:26 |
0.9.1
JeffG
Wed, 2011-03-23 18:18
  • : 4.1 - 5.*
  • : 4.1 - 5.*

This extension adds some handy (and pretty basic) functions to the right-slick menu on a given tab. Current functions are:

  • Reveal: reveals the current file in your file browser.
  • Rename: renames the current file.
  • Delete: deletes the current file ( with a sanity prompt )
  • Watch: opens the current file in Komodo's 'Watch file' window.

I also added some new clipboard functions, you can now copy the following strings to the clipboard:

  • File name
  • File path
  • Directory path
  • Active Project directory path

I got the idea for this extension a couple of days ago, and just today happily poached and altered Splintor's re-name and delete code from here:

http://community.activestate.com/forum-topic/rename-the-active-file

Update: as of 0.8 this extension should now work for Komodo 4.3.x builds ( for example current Komodo Edit nightly builds ) and as a bonus I made the overly for the tab context menu a little less complicated.

Update: this extension now works with Komodo 5.0.

splintor | Tue, 2007-07-24 01:02

This was a quick one...

Since you call the extension TabTools, here is another idea - an option to use double-click to close a tab.
I asked UltraEdit developer in the past to make it close a tab by middle-clicking like in Firefox but he refused, so now I've gotten used to closing a tab using double-click, and would like to use it in Komodo Edit. Can this be done?

splintor | Tue, 2007-07-24 12:46

Well, I installed the extension, and I see the TabTools submenu, but non of the items work - I click them and nothing happens.

Did I do something wrong?

remb | Tue, 2007-07-24 16:07

This is a great idea but the extension is not working with beta5. All the menu buttons are somehow disabled and nothing works anymore. I think it needs some more tweaking. It would be a great feature to have at hand though...

jeff.griffiths | Wed, 2007-07-25 09:10

The extension works for me, but I'm using OS X / Intel. What OS are you guys using? I freely admit I didn't do a lot of testing =).

--
JeffG

splintor | Wed, 2007-07-25 11:31

I use Windows XP Pro SP2

remb | Wed, 2007-07-25 12:00

Ubuntu Linux here (Feisty Fawn), Komodo Edit Beta5

jeff.griffiths | Mon, 2007-07-30 17:47

I dug into this today and have found two separate issues:

- a focus issue on Windows that I think I have fixed. I'll do some testing tomorrow (if I get time, heh) and hopefully post a new version.

- some weird problem on Linux with my overlay where it is not applied correctly. I am assuming there is something I am doing specifically that causes problems here. It's strange that the overlay at least works on the other two platforms....

--
JeffG

remb | Wed, 2007-08-01 13:42

It is working now!!
Wow, whatta treat :) This is exceptional.. very, very handy!

Thanks

splintor | Wed, 2007-08-01 23:27

I've installed version 0.4, but this is still not working on my Windows.
Clicking Reveal shows this alert:
The command string includes %F, but there is no current file

The other commands do nothing.

jeff.griffiths | Thu, 2007-08-02 17:19

@Splintor: this should be fixed now. No, I mean it! Really!

Any new ideas on what function to include?

--
JeffG

splintor | Sat, 2007-08-04 14:45

OK, now it is working for me, and looks great.

Here are some more ideas:
First of all, I would like to have an option to put all new commends in the main right-click menu, and not under the TabTools menu. Ideally, this would be a per-command option so I can leave some commands I rarely use under the TabTools menu, but put the more frequent command in the main tab menu.

Another thing to consider is having (configurable) key bindings for the TabTools commands.

Finally, here are some more commands that can be added:

  1. Copy to clipboard:
    1. file name
    2. file path
    3. file full path (path+name)
    4. file content
  2. Close all other files
  3. Add file to Toolbox
  4. Compare file with... (which currently only exist in the toolbox or project right-click menu)
  5. Compare file with previous tab
  6. Move tab to first/last/next/previous position
  7. Show file "Shell context" menu, as if it was right-clicked in Windows Explorer
  8. Show Windows' "File Properties" dialog
  9. Backup file - copy it to another file, with changing the current file, which is different than Save as...
  10. Make file read-only/writable
  11. Undo close of last file
  12. Custom commands that can be added by the user
  13. Various commands that are currently available from regular menus, such as "Preview in browser", "Print", "Refresh Status", etc.

That's all for now.
Thanks for developing this extension and Komodo Edit in general.

tone77 | Wed, 2008-05-21 18:22

Thanks for the excellent extension. Could you please update it to work with the 4.4 series. I know it is just Alpha, but if you modify the XPI to allow 4.4 it works just fine.

jeff.griffiths | Thu, 2008-05-22 13:00

Done, sorry =). I'm glad you fine the extension useful.

--
JeffG

wow
tone77 | Thu, 2008-05-22 14:04

that was quick...thanks so much

marcc | Sat, 2011-10-15 17:45

I was hoping to use this extension with version 6.1. Will it be updated to work with the latest version of Komodo?

Thanks,
Marc