cycle search and toggle comment multiple lines

Solved bugs are moved into this topic...
Post Reply
hycmos
Posts: 86
Joined: 06.11.2019 02:17

cycle search and toggle comment multiple lines

Post by hycmos »

1) cycle search
how to set a cyclical search.
if the caret is at the end, when I input the word into the search box, then I knock the key "enter", status bar says "can not find".
this "can not find" will mislead me.(actualy the word is in this file)

2) when selecting multiple lines, I toggle comments. One comment symbol will be added at the begin of every line.
Can I change the default action to do this below:
the lines which already has comment symbol will be un-comment;
the lines which has not comment symbol will be comment.

for example(comment symbol=@):
before:

Code: Select all

not comment
@already comment
then select the two lines, run "line comment:toggle"
after:

Code: Select all

@not comment
already comment
Thanks.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

1) Did you use wrapped search?
https://wiki.freepascal.org/CudaText#Di ... .2FReplace
what is not ok with it?
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

2) Not possible with Comments plugin, I am not sure people need it, to toggle for n lines. What text editor allows this?
hycmos
Posts: 86
Joined: 06.11.2019 02:17

Post by hycmos »

Alexey wrote:1) Did you use wrapped search?
https://wiki.freepascal.org/CudaText#Di ... .2FReplace
what is not ok with it?
:o , yes, It works. I did not turn on the wrapped switch "O".
Thanks.
hycmos
Posts: 86
Joined: 06.11.2019 02:17

Post by hycmos »

Alexey wrote:2) Not possible with Comments plugin, I am not sure people need it, to toggle for n lines. What text editor allows this?
OK, Understand.
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post by Shovel »

hycmos, out of curiosity, could you provide an example of how toggling a comment on multiple lines would be useful?
Post Reply