jEdit Community - Resources for users of the jEdit Text Editor
[SuperAbbrevs] Delete groups
Submitted by kochka on Sunday, 24 September, 2006 - 13:59
Hi Smiling

First, thanks a lot for this great plugin !

The only thing i've not found into the plugin is the ability to remove unwanted groups.

Example :

belongs_to :${1:object}, :class_name => "${2:ClassName}", :foreign_key => "${3:foreign_key}_id"$end

In this template, most of time I need only the first var group. I know I can bind all templates I need but It make a lot of shortcuts to memorize.
It would be great to have the ability to tab on a var and remove the group with a binded key :
belongs_to :${1:object}$[, :class_name => "${2:ClassName}"]$[, :foreign_key => "${3:foreign_key}_id"]$end
When I tab to go on $2, I can remove all the group ', :class_name => "${2:ClassName}"' with a binded key.

It can be usefull also for things like "if then else end", cause I need to make different shorcuts with one for the "else" case, and only one could be done with such a system.

I hope you have understood what I mean Smiling

Thanks a lot !
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
[SuperAbbrevs] Delete groups
by sune_simonsen on Thu, 28/09/2006 - 22:55
I know what you mean, and I agree that it would be nice to have.
So in the feature I might implement it, but right now I don't have the time to add new features, sorry. The reasson is that I'm writing my master thesis until febuary.

If anybody is interested in helping out on hacking SuperAbbrevs, they are very welcome. But they will have to get the code from the cvs, and send me a patch. Please contact me first, so the patched code does not get changed in the mean time.

I hope this answered your question.

-- Sune Simonsen (SuperAbbrevs)
User login
Browse archives
« September 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   98100
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300