SynWrite (Syn2)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Stefan2
Power Member
Power Member
Posts: 4193
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Alextp wrote:
* Start an selection, then
* New feature "Enable sticky selection",
then use
Find
or
GoTo Line/Bookmark
In what editor do u see this? Or is it new.
I know i have seen the first way with
that "Go to line/bookmark or Find and extend selection" thing.
But not that second way with sticky selection.

I know "Sticky Selection" as an selection that is not
destroyed if you just click elsewhere.
If there is an editor with that "extend the sticky selection"
feature i don't know really at the moment.

I can check at the weekend if you want.

Select paragraph: 3-ple click does it?
Currently an triple click will select an whole line
(if not the option "double click select whole line" is set)

I think you don't want to change that.

So i imagine an option to hold e.g. the CTRL-key and triple click?
If possible i would anyway assign an shortcut to that command.


Thanks for considering it.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

+ hotkey "Select paragraph"
+ hotkeys "Next/Previous blank line"
added
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2Stefan2
In what editor do u see "Goto Ln\Bkmark\Find" with Extend selection. (Not Sticky selection)
User avatar
Stefan2
Power Member
Power Member
Posts: 4193
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

HippoEDIT:
* Find + extend selection (works even without initial selection)
* Set Anchor + Select to Anchor


PSPad
* Start Block (F8) .... move the cursor... End Block (F8)


EditPad
* Start Selection (S+C+B) ..... End Selection (S+C+E)


Boxer
* Find + extend selection (needs an selection first)
* Go to + extend selection (needs an selection first)


VIM
* v/pattern (means: enter selection mode, find pattern and select to found pos.)
* v44gg (means: enter selection mode and go to line 44, extending the selection to)
* vip (means: enter selection mode and select (i)nner (p)aragraph)


PFE Programmer's File Editor
* Find + extend selection
* Goto line + extend selection


Notepad2
* First Find something, then, like F3, use F2 to select to next occurrence.


TED
* Go to + extend selection
* Find, then Select to next
* Select paragraph (select on every execution the next paragraph)


It seems "Goto bookmark" i only have implemented via script for PSPad and EmEditor.
I don't know (or remember) an editor with that implemented.


I think, Start Block/End Block is the easiest way to implement this.
No change of dialog or adding check boxes.
Also it works universal:
-- go to or find start of wanted selection
-- set selection type (stream or column)
-- set Start Selection marker by menu item or hotkey
-- go to line | go to bookmark | find pattern | jump paragraph, the same as now
-- once there, set End Selection marker by menu item or hotkey
The selection is done.

I think *I* would like the hotkey works as an toggle. (like with PSPad)
Means, one hotkey acts for to set the start AND the end of the selection.
So the finger can stay on that one hotkey and we have to remember only one.


If you have more questions or if i can help you,... just ask.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Don't know about "Extend sel. to next|Prev bkmark". How to call it, using what? New menu items?
User avatar
Stefan2
Power Member
Power Member
Posts: 4193
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Perhaps something like this?


First:
if possible, "Extend sel. to next|Prev bkmark"
should not only "extend" an selection
but even start an new selection from cursor position
IF there is no selection at all.
But if there is an selection, then extend it.


Second:
Menu "Bookmarks > + Go to numbered will extend selection"
( + is an checkable item, checkable like "View > Live spelling")
If this is checked, the "Go to numbered bookmark"
will do that GoTo, but also extend or start an selection.


Third:
New menu items
Menu Bookmarks > Select to next bookmark (S+C+O)
Menu Bookmarks > Select to prev bookmark (S+C+P)



If i have an hotkey for "Select to next bookmark"
i can do an FIND for something with "[X] Bookmark results",
then go back up, and then press one or more times that hotkey
to extend the selection step by step to next found position.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Beta(1st post): "Extend selectn" in Find/Goto.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

What about this Goto dlg:
(no need to add new menu items)
http://shot.qip.ru/008s9h-1QODkgKwi/
User avatar
Matthias030
Senior Member
Senior Member
Posts: 419
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

goto bookmark dlg is ok
but goto bookmark dlg as an additional menu item in bookmark menu? or is it replacement and menu "go to numbered bookmark" will be removed?

also possible: integrate dlg into existing goto position dlg. this gives fast access to all goto-features with existing buttonbar icon or statusbar click.
new name: "goto position/bookmark"

it can be divided into 2 parts. upper part "goto line, column". lower part "new bookmark dlg options"
User avatar
Stefan2
Power Member
Power Member
Posts: 4193
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Alextp wrote:Beta(1st post): "Extend selectn" in Find/Goto.
First test work good.

Works with FIND in line. Works with FIND ^$
Even without initial selection.
After the first selection, the FIND NEXT extend the selection.
This kind of implementation of this topic did not work for F3 hotkey.

Very fine. Thank you. Go back for further testing... CU



Related your dialog: How about this suggestion (click)?


.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2Matthias030
integrate dlg into existing goto position dlg.
It's it. I ingtegrate into Goto

Stefan
Dlg is overloaded..
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Beta. Goto dl redone.
User avatar
Stefan2
Power Member
Power Member
Posts: 4193
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Alextp wrote:Stefan
Dlg is overloaded..
:D
User avatar
Stefan2
Power Member
Power Member
Posts: 4193
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Alextp wrote:+ hotkey "Select paragraph"
+ hotkeys "Next/Previous blank line"
added
Tested and works excellent!
I have set mine to:

Code: Select all

"Select paragraph"		Ctrl+Shift+P (aragraph)
"Next blank line"		 Ctrl+Shift+D (own)
"Previous blank line"	Ctrl+Shift+U (p)

Great:

Ctrl+Shift+P (set to "Select paragraph")
+
Alt+M (set to "Insert Text in lines")
=
Great work flow :)


- - -

Alextp wrote:What about this Goto dlg:
(no need to add new menu items)
Pretty fine:

[face=timesnewroman] Ctrl+G Alt+nx OK[/face]

or

[face=timesnewroman]Ctrl+G Alt+xu Arrow d/u OK[/face]


Works!

Thanks Alexey.


200
.
Last edited by Stefan2 on 2012-05-06, 10:26 UTC, edited 1 time in total.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 419
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

dialog is good. maybe only an optical improvement: set pull-down menu for numbered bookmarks behind text. not below.

here is img http://www.freeimagehosting.net/9fyuv


Edit: Wait. Maybe better to keep current dialog. After translation text may be too long and there is not enough space behind text. German text is longer than english text.

Edit2: made new image. please align pull-down boxes to the ride side. http://www.freeimagehosting.net/7xruw
Post Reply