I use TextMate and CSSEdit side by side and feel kinda gyped as a CSS developer (if you can call me a "developer"). I'd love to see an intelligent bundle that basically implemented CSSEdit's grouping, autocomplete and colorization tools.
See what I mean: http://www.flickr.com/photos/factoryjoe/6342113/
Any chance of something even close to this happening?
Chris
On 12-03-2005 07:35, Chris Messina wrote:
See what I mean: http://www.flickr.com/photos/factoryjoe/6342113/
With respect to the grouping in there: I'd love to see some general way of doing that as well. I had a large python file and switched back to SEE to edit it, because it has that useful method selector pull-down menu, which is great for navigating around the file.
That and custom/bundle configured completion are the only things that I really miss in TM.
Jeroen.
On 12.03.2005, at 08:46, Jeroen van der Ham wrote:
useful method selector pull-down menu, which is great for navigating around the file.
yes, i've been missing one of those in tm since day one!
allan: any chance?
grts,
tom -- tom lazar tom@tomster.org http://tomster.org
In the latest bundles there are at least two commands that get you what you want except that its an external window not a popup menu. List defs in the python bundle Function / Entity Nav in the Defaults bundle
It would be slick if Allan could an popup menu as yet another output option for commands.
Brad
On Mar 12, 2005, at 3:42 AM, Tom Lazar wrote:
On 12.03.2005, at 08:46, Jeroen van der Ham wrote:
useful method selector pull-down menu, which is great for navigating around the file.
yes, i've been missing one of those in tm since day one!
allan: any chance?
grts,
tom
tom lazar tom@tomster.org http://tomster.org
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Brad Miller, PhD Assistant Professor Luther College http://www.cs.luther.edu/~bmiller jabber: bnmnetp@jabber.org
On Mar 12, 2005, at 10:42, Tom Lazar wrote:
useful method selector pull-down menu, which is great for navigating around the file.
yes, i've been missing one of those in tm since day one!
allan: any chance?
Don't you guys read this list? ;)
I have commented on this a dozen times in the past. Yes, such functionality will appear, but I want to have this incorporated in the new syntax system for better flexibility, so the solution I'm looking into is to provide a tool that can query the source with an XPath inspired system, that way popups are not limited to just function names, and I don't need to maintain a separate system for parsing the source for function declarations.
Brilliant solution. We are all focused on solving the needs of developer's of our language, while you find a way to make those solutions work for all developers.
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
On Mar 12, 2005, at 8:35 AM, Allan Odgaard wrote:
On Mar 12, 2005, at 10:42, Tom Lazar wrote:
useful method selector pull-down menu, which is great for navigating around the file.
yes, i've been missing one of those in tm since day one!
allan: any chance?
Don't you guys read this list? ;)
I have commented on this a dozen times in the past. Yes, such functionality will appear, but I want to have this incorporated in the new syntax system for better flexibility, so the solution I'm looking into is to provide a tool that can query the source with an XPath inspired system, that way popups are not limited to just function names, and I don't need to maintain a separate system for parsing the source for function declarations.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
useful method selector pull-down menu, which is great for navigating around the file.
yes, I've been missing one of those in tm since day one!
While we await the official solution from Allan, I've checked into SVN a cute hack that does this: upon hitting F1, it displays special items in an HTML popup menu which magically sends you to the desired line upon selection. It's in the Defaults bundle and currently contains support for Perl and Python.
The way it works is it takes the output of 'entitynav.py' and processes it using nav2htmlpopup.pl. If you want to add support for your language, you can
(1) edit entitynav.py; or (2) write your own command to process a file from standard input and output grep format "line: text"; then pipe that through nav2htmlpopup.pl as in the command.
I'm sure someone can make this look nicer; it was more a proof of concept than anything, and a celebration that I finished a big talk today!
- Eric
At 5:35 PM -0800 3/12/05, Eric Hsu wrote:
I'm sure someone can make this look nicer; it was more a proof of concept than anything, and a celebration that I finished a big talk today!
Oh, I added basic support for CSS. Probably fancier sorting could happen and it's barely tested. But it worked on the CSS files I use.
- Eric
Eric:
Hey! No Fair. You took away my F1 from pydoc. And, while you were at it you duplicated the functionality in my List Defs command, already in the Python Bundle.
I guess this shortcut key assignment is one of the problems that will go away (get better) when we get scoping, in b6?
Brad
On Mar 12, 2005, at 7:35 PM, Eric Hsu wrote:
useful method selector pull-down menu, which is great for navigating around the file.
yes, I've been missing one of those in tm since day one!
While we await the official solution from Allan, I've checked into SVN a cute hack that does this: upon hitting F1, it displays special items in an HTML popup menu which magically sends you to the desired line upon selection. It's in the Defaults bundle and currently contains support for Perl and Python.
The way it works is it takes the output of 'entitynav.py' and processes it using nav2htmlpopup.pl. If you want to add support for your language, you can
(1) edit entitynav.py; or (2) write your own command to process a file from standard input and output grep format "line: text"; then pipe that through nav2htmlpopup.pl as in the command.
I'm sure someone can make this look nicer; it was more a proof of concept than anything, and a celebration that I finished a big talk today!
- Eric
-- Eric Hsu, Assistant Professor of Mathematics San Francisco State University erichsu@math.sfsu.edu http://math.sfsu.edu/hsu ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Brad Miller, PhD Assistant Professor Luther College http://www.cs.luther.edu/~bmiller jabber: bnmnetp@jabber.org
At 8:34 PM -0600 3/12/05, Brad Miller wrote:
Hey! No Fair. You took away my F1 from pydoc. And, while you were at it you duplicated the functionality in my List Defs command, already in the Python Bundle.
Yes, but does yours have a nifty Javascript pop-up menu? And does yours work on Perl and CSS? :)
I guess this shortcut key assignment is one of the problems that will go away (get better) when we get scoping, in b6?
I hope so. The previous F1 assignment was a problem, since I don't use Python and I don't want F1 to be a default for a language I don't use.
On the other hand, if we can just agree to soup up the universal 'show functions/special items' Defaults bundle (not started by me), then we can all use F1 and be happy. :) For the common good, I'm trying to go along with it even though (1) I already had a perfectly good List Subs in the Perl bundle, and (2) the parsing script is written in Python, and I don't speak a word of it...
- Eric
On Mar 12, 2005, at 8:47 PM, Eric Hsu wrote:
At 8:34 PM -0600 3/12/05, Brad Miller wrote:
Hey! No Fair. You took away my F1 from pydoc. And, while you were at it you duplicated the functionality in my List Defs command, already in the Python Bundle.
Yes, but does yours have a nifty Javascript pop-up menu? And does yours work on Perl and CSS? :)
Nope, but I rather liked my window. It takes one less click than your nifty pop-up. :-) Nope again :-( but now that I've seen the light I don't do much Perl programming.
I guess this shortcut key assignment is one of the problems that will go away (get better) when we get scoping, in b6?
I hope so. The previous F1 assignment was a problem, since I don't use Python and I don't want F1 to be a default for a language I don't use.
But I use it every day. We teach it here as our introductory programming language :-)
On the other hand, if we can just agree to soup up the universal 'show functions/special items' Defaults bundle (not started by me), then we can all use F1 and be happy. :) For the common good, I'm trying to go along with it even though (1) I already had a perfectly good List Subs in the Perl bundle, and (2) the parsing script is written in Python, and I don't speak a word of it...
I'd be happy to join in the universal common good fun. Maybe if we get C/PHP/C++ we will reach critical mass and we can do away with the individual language versions.
Seriously though if we are going to do a universal show functions we should try to agree on what the interface ought to look like. It seems funny to me to bring up a whole html window just to have a dropdown menu. Thats one more click than necessary in my opinion. Unless going the javascript menu route is going to be easier to convert whenever Allen gets the popup menu stuff incorporated into TM.
Brad
- Eric
-- Eric Hsu, Assistant Professor of Mathematics San Francisco State University erichsu@math.sfsu.edu http://math.sfsu.edu/hsu ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Brad Miller, PhD Assistant Professor Luther College http://www.cs.luther.edu/~bmiller jabber: bnmnetp@jabber.org
At 9:30 PM -0600 3/12/05, Brad Miller wrote:
I'd be happy to join in the universal common good fun. Maybe if we get C/PHP/C++ we will reach critical mass and we can do away with the individual language versions.
Okay let's do it! Someone else will have to do those languages though... Someone who talks Python should also add in the option to sort the found items alphabetically. Maybe it could be passed as a command-line option 'sort'. I could have done it in post-processing, but that seemed wrong.
Seriously though if we are going to do a universal show functions we should try to agree on what the interface ought to look like. It seems funny to me to bring up a whole html window just to have a dropdown menu. Thats one more click than necessary in my opinion. Unless going the javascript menu route is going to be easier to convert whenever Allen gets the popup menu stuff incorporated into TM.
There are two versions of the command right now. One produces a clickable 'new window'. The other produces the nifty popup menu. People can keybind whichever one they like better. The both depend on that .py file, so editing one will change both.
- Eric
On Mar 12, 2005, at 9:44 PM, Eric Hsu wrote:
At 9:30 PM -0600 3/12/05, Brad Miller wrote:
I'd be happy to join in the universal common good fun. Maybe if we get C/PHP/C++ we will reach critical mass and we can do away with the individual language versions.
Okay let's do it! Someone else will have to do those languages though... Someone who talks Python should also add in the option to sort the found items alphabetically. Maybe it could be passed as a command-line option 'sort'. I could have done it in post-processing, but that seemed wrong.
Seriously though if we are going to do a universal show functions we should try to agree on what the interface ought to look like. It seems funny to me to bring up a whole html window just to have a dropdown menu. Thats one more click than necessary in my opinion. Unless going the javascript menu route is going to be easier to convert whenever Allen gets the popup menu stuff incorporated into TM.
There are two versions of the command right now. One produces a clickable 'new window'. The other produces the nifty popup menu. People can keybind whichever one they like better. The both depend on that .py file, so editing one will change both.
Cool, Since I sent the email I've been working on adding LaTeX support for (sub)*section. How do I match a \ again?
I can look into adding the alphabetical version that doesn't look like it will be too hard since it looks like all the matches are being stored before they are output anyway. Just a matter of sorting the dictionary (Hash/Associate array) before outputting.
Brad
- Eric
-- Eric Hsu, Assistant Professor of Mathematics San Francisco State University erichsu@math.sfsu.edu http://math.sfsu.edu/hsu ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Brad Miller, PhD Assistant Professor Luther College http://www.cs.luther.edu/~bmiller jabber: bnmnetp@jabber.org
At 9:54 PM -0600 3/12/05, Brad Miller wrote:
Cool, Since I sent the email I've been working on adding LaTeX support for (sub)*section.
Awesome.
Hey while you're at it, how about having the script pay attention to TM_MODE in case there is no recognized filetype? If you give us an inch, we'll take a mile.
How do I match a \ again?
... you mean besides \ ? ... I must not understand. - Eric
On Mar 12, 2005, at 10:08 PM, Eric Hsu wrote:
At 9:54 PM -0600 3/12/05, Brad Miller wrote:
Cool, Since I sent the email I've been working on adding LaTeX support for (sub)*section.
Awesome.
Basic LaTeX support is done.
Hey while you're at it, how about having the script pay attention to TM_MODE in case there is no recognized filetype? If you give us an inch, we'll take a mile.
How do I match a \ again?
Nevermind, I got carried away and did \\
Now as far as sorting in alphabetical order... Thats going to take a bit more time than I thought. The difficulty is that the regular expression matches and stores away the whole definition string e.g. 'sub foo' or 'def foo' or \subsection{foo}. The output is done Later, when we don't know the mode anymore, so I think I would need to modify all the regular expressions to capture the match in two (or ugh maybe three parts) prefix | thingToSort | suffix sub | foo(..) | def | foo (...) | \section | foo | } public static void | main(..) |
That makes it a bit more complicated....
The mode thing is also a good idea, but I think I would redesign how the regular expressions are associated with a file type.... Too much work to finish in one night. But I'll get to it.
Brad
... you mean besides \ ? ... I must not understand. - Eric ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Brad Miller, PhD Assistant Professor Luther College http://www.cs.luther.edu/~bmiller jabber: bnmnetp@jabber.org
On Mar 13, 2005, at 3:34, Brad Miller wrote:
You took away my F1 from pydoc.
And the default “toggle current folding” on F1 ;)
I guess this shortcut key assignment is one of the problems that will go away (get better) when we get scoping, in b6?
Yes, you can set the scope to e.g. “source.perl, source.python” or even “source.c++ strings” to only have the key equivalent (or tab trigger) work in that “scope”. This will also allow for some neat automation features, i.e. special behavior for e.g. return when the caret is placed in various places in the source (like in strings, between empty tags etc.).
At 3:48 AM +0100 3/13/05, Allan Odgaard wrote:
And the default "toggle current folding" on F1 ;)
Hey I didn't start it. Brad took it for Pydoc(!) and Kumar for the Show Entities thing. Complain to them. My keybindings have always been stuff like Ctrl-Cmd-P. :)
- Eric
Oooh, I didn't remove it from Toggle Current Folding, but I usually just try a keybinding I think is logical and I've been assuming that if I hit a duplicate I would get a popup menu. I guess that doesn't apply to Commands overriding TM menus.
On Mar 12, 2005, at 8:57 PM, Eric Hsu wrote:
At 3:48 AM +0100 3/13/05, Allan Odgaard wrote:
And the default "toggle current folding" on F1 ;)
Hey I didn't start it. Brad took it for Pydoc(!) and Kumar for the Show Entities thing. Complain to them. My keybindings have always been stuff like Ctrl-Cmd-P. :)
- Eric
-- Eric Hsu, Assistant Professor of Mathematics San Francisco State University erichsu@math.sfsu.edu http://math.sfsu.edu/hsu ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Brad Miller, PhD Assistant Professor Luther College http://www.cs.luther.edu/~bmiller jabber: bnmnetp@jabber.org
On Mar 13, 2005, at 4:19, Brad Miller wrote:
Oooh, I didn't remove it from Toggle Current Folding, but I usually just try a keybinding I think is logical and I've been assuming that if I hit a duplicate I would get a popup menu. I guess that doesn't apply to Commands overriding TM menus.
Yes, only bundle items have that feature ATM.
I would LOVE this as well, as much of my work is with CSS
On Mar 11, 2005, at 8:35 PM, Chris Messina wrote:
I use TextMate and CSSEdit side by side and feel kinda gyped as a CSS developer (if you can call me a "developer"). I'd love to see an intelligent bundle that basically implemented CSSEdit's grouping, autocomplete and colorization tools.
See what I mean: http://www.flickr.com/photos/factoryjoe/6342113/
Any chance of something even close to this happening?
Chris
--
Do the evolution. Get Firefox! http://spreadfirefox.com/community/?q=affiliates&id=5&t=4
Quote of the moment: /"Simplicity is in taking the elegant path. It is also a conscious choice— to achieve simplicity one must eschew complexity. Simple things must be simple."/ -- author unknown
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Mar 12, 2005, at 7:35, Chris Messina wrote:
I use TextMate and CSSEdit side by side and feel kinda gyped as a CSS developer (if you can call me a "developer"). I'd love to see an intelligent bundle that basically implemented CSSEdit's grouping, autocomplete and colorization tools.
See what I mean: http://www.flickr.com/photos/factoryjoe/6342113/
Any chance of something even close to this happening?
Sorry, I think this is still to hard to pull of as a 3rd party extension. But I'll keep the scenario in mind when I get around to “opening up” TextMate for more customization than what's currently possible (like real plugin interfaces). This however will be after 1.1 final.
Allan Odgaard wrote:
On Mar 12, 2005, at 7:35, Chris Messina wrote:
I use TextMate and CSSEdit side by side and feel kinda gyped as a CSS developer (if you can call me a "developer"). I'd love to see an intelligent bundle that basically implemented CSSEdit's grouping, autocomplete and colorization tools.
See what I mean: http://www.flickr.com/photos/factoryjoe/6342113/
Any chance of something even close to this happening?
Sorry, I think this is still to hard to pull of as a 3rd party extension. But I'll keep the scenario in mind when I get around to “opening up” TextMate for more customization than what's currently possible (like real plugin interfaces). This however will be after 1.1 final.
No problem. I was actually thinking that TextMate could provide this natively, but that was my own pipedream. I just thought I'd provide an ideal UI, though I neglected to include the great CSS autocompletion that CSSEdit provides.
Anyway, looking forward to this, but I'm content in the meantime!
Chris