Switch to file based on class (or group by class in the Tags window)

Discussion Forums discussion Switch to file based on class (or group by class in the Tags window)

This topic contains 0 voices and has 3 replies.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
March 29, 2011 at 9:05 am #5250

Patabugen
Member

I’ll post this as a feature request but I thought I’d gather some other peoples thoughts first.

I often find myself working with several files of the same name but each containing different classes, for example:

Client.php : Model_Client

Client.php : Factory_Client

Client.php : Dialog_Client

Which makes it hard to quickly recognise which is which in the tab bar. I was wondering what the possibility have having an option (or another window which I can dock somewhere) which lists all the open classes and lets me switch to them that way.

I guess an improved ‘Tags’ window would be what I want, where I can either

a) Leave it expanded (I find it unusable because it collapses every time I save)

b) Tell it how I’d like it grouped (by file, by class, by function etc)

If there’s a way of achieving this already, that’d be awesome :) Of if you can see a way I could implement it in PyPN then any hints in that direction would be handy!

Patabugen

March 30, 2011 at 9:17 pm #17732

Nux
Member

Saving state of tags would be great! Or at least have them always expanded by preference. Reading tags for all files in a project would make it even better. Would make me drop VC6 all the way ;-). Also exposing tags to Py scripts would be nice.

March 31, 2011 at 10:00 am #17733

simon
Key Master

My plans for the tags window are, roughly:

  • Two views: File-hierarchy (similar to current, but cleaned up), and All Tags where the file the tag is in is irrelevant.
  • Jumping between files supported by looking at all available tags, not just current file
  • Support for project or directory-specific tags files, allowing you to jump across a whole project without loading all the files

Of course, I need to find some time to actually do this – anyone interested in helping?!

Finally, there are python ctags bindings so you could probably do something like this quite easily with pypn. This would avoid the need for adding a tags interface, although this wouldn’t actually be too difficult to do so I’ll think about it.

April 11, 2011 at 1:40 pm #17734

CoDEmanX
Member

I like you plan Simon and i’m willing to support you (as much as i can as hobby coder)!

Couple ideas to consider:

- Merge CTags and API calltips for a PN IntelliSense

- Make CTags update in realtime (like Scintilla lexer), maybe we can use the already computed lexer information to save performance?

- Add tooltips for tag entries (showing the line number and filename)

- Add options for tag view (e.g. order by appearence instead of alphabetically, auto-highlight current function depending on cursor position, export tags)

- Expand / collapse / jump to tag with single click !!!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.