|
From: Shlomy R. <sre...@gm...> - 2011-09-09 19:01:21
|
Personally, I don't think this should be the standard behavior, but it can
be open for discussion.
Shlomy
2011/9/9 Jarek Czekalski <jar...@po...>
> **
> Shlomy,
>
> thanks for the answer. Macro is something I forgot about. Sure, I will go
> with macros. Anyway there is an idea of improving standard jedit. If you
> ever think this could go to standard edition...
>
> Goto Marker 0 - just recording
> Set Marker 0 - just recording too, but if one really wants to delete the
> previuos marker, then:
>
> int nCurPos = textArea.getCaretPosition();
> editPane.goToMarker('0',false);
> if (textArea.getCaretPosition() != nCurPos) {
> // we moved to a previous marker 0
> buffer.removeMarker(textArea.getCaretLine());
> textArea.setCaretPosition(nCurPos);
> }
> buffer.addMarker('0', nCurPos);
>
> Works for me :)
>
> Jarek
>
> Shlomy Reinstein pisze:
>
> Hi,
>
> Please see below...
>
> Shlomy
>
> On Fri, Sep 9, 2011 at 2:39 PM, Jarek Czekalski <jar...@po...>wrote:
>
>> When I edit a file, I like to have a main marker in it. The place I
>> always come back to. Besides the main marker I mark some important
>> places with other markers.
>>
>> For the other markers I use jedit core markers, it's ok. The main marker
>> I could mark with a shortcut, like "0".
>>
>> Problem 1. To go to main marker I have to type C+M 0, to mark the main
>> marker CS+M 0. That's one click too much.
>>
>
> You can customize all your shortcuts using Utilities -> Global Options ->
> Shortcuts. You can assign whichever shortcut you like to any jEdit action.
>
> Problem 2. If I set marker 0 in a new place, the old place still holds
>> the marker (without shortcut)
>
>
> Then just delete it... The fact you create a new marker with the shortcut
> of an existing marker doesn't necessarily mean you want to delete the marker
> that previously held the shortcut.
>
>
>> I would like to have shortcuts for my marker 0. Set it with CS+0
>> (clearing other 0 marker), go to it with C+0.
>>
>
> You can very easily create a macro to do that. See the user guide how to
> write macros (from the help menu). Let me know if you need help.
>
> I post it to "users" in case I (a new user) just could find the solution
>> which already exists. If it does not exist, what do you think about
>> incorporating such a functionality into jedit? We would need just 2 new
>> commands:
>> 1. Toggle Marker 0
>> 2. Goto Marker 0
>>
>> Those 2 new commands are really not a new functionality, just new
>> shortcut commands.
>>
>> My previous editor had 10 markers with direct shortcuts C+[0-9]. Maybe
>> you like this idea too?
>
>
> In principle jEdit could create a separate action for each marker with a
> shortcut. Not sure it's a good idea.
>
>
>> And how about Problem 1? To leave the current functionality we would
>> need a new setting (where?) "Clear the previous shortcut marker".
>>
>> I could make a patch for it if we find an acceptable solution.
>>
>> Jarek
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Why Cloud-Based Security and Archiving Make Sense
>> Osterman Research conducted this study that outlines how and why cloud
>> computing security and archiving is rapidly being adopted across the IT
>> space for its ease of implementation, lower cost, and increased
>> reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
>> --
>> -----------------------------------------------
>> jEdit Users' List
>> jEd...@li...
>> https://lists.sourceforge.net/lists/listinfo/jedit-users
>>
>
>
>
> ------------------------------------------------------------------------------
> Why Cloud-Based Security and Archiving Make Sense
> Osterman Research conducted this study that outlines how and why cloud
> computing security and archiving is rapidly being adopted across the IT
> space for its ease of implementation, lower cost, and increased
> reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
> --
> -----------------------------------------------
> jEdit Users' List
> jEd...@li...
> https://lists.sourceforge.net/lists/listinfo/jedit-users
>
>
|