Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-26 Thread elextr
> Ok @elextr you talked me into looking into the code finally. Heh, I wasn't actually trying to do that, but while you are there, "just" a menu item and keybinding to go. :grin: I was actually trying to suggest to be patient until the Scintilla 4 upgrade, the "it needs c++17" excuse is getting

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-26 Thread AdamDanischewski
Ok @elextr you talked me into looking into the code finally. I've got it working with the current Scintilla. ### line 167 geany/scintilla/src/Editor.cxx: **from** `multiPasteMode = SC_MULTIPASTE_ONCE;` **to** `multiPasteMode = SC_MULTIPASTE_EACH;`

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-26 Thread elextr
Note, beware that most of the Scintilla multiple selection documents section is only for Scintilla 4, which Geany does not use, and which could allow the whole area of rectangular/multiple selections and pastes to be re-assessed. -- You are receiving this because you are subscribed to this

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-26 Thread elextr
@AdamDanischewski in this case you don't need an option, just put both items in the menu, and make both keybindable and bind one or both by default. But note that I doubt that multipaste will help with pasting the output of `send selection to` since it would paste the multiple lines on every

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-26 Thread AdamDanischewski
@Akronix I agree with your sentiments on this. @elextr I would be fine with there being an option for it. Perhaps it could be the default provided no one can give a better use case for it not being. To only paste one line when a vertical multiple line selection/rectangular selection were held

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-25 Thread elextr
Voting? Why is it that everyone wants to cut off an option thats useful in some situations in favour of an option thats useful in others, as I said on #850 why not have __BOTH__ and which is default can be set from an option. [start rant] I'm getting sick of people who assert that their

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-25 Thread Abel Serrano Juste
I still strongly think that a single-line copy should paste repeatedly in as many lines selected as they are. That's why you did the multi-line selection after copying and that's the quickest way to append certain text to lines that are similar in structure (like tabular data for instance). I

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-25 Thread AdamDanischewski
@ntrel Yea, I played around with it before and it's expected behavior. I kind of think multi-paste should work the way @Akronix mentioned in #850. If you have one line and then make a vertical selection (rectangular selection) that it multi-pastes across the entire selection but there's still

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-25 Thread elextr
To expand, basically its the Scintilla paste into rectangular selections default behaviour. Scintilla does have another option SCI_MULTI_PASTE to do it differently, but I'm not sure how much use it would be in this use-case. -- You are receiving this because you are subscribed to this thread.

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-25 Thread elextr
`Send selection to` pastes its result into the selection, thats why its the same issue. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2317#issuecomment-534904028

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-25 Thread Nick Treleaven
@elextr actually those issues are about pasting, not about Send selection to. Surely that's a separate issue? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2317#issuecomment-534901991

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-25 Thread Nick Treleaven
Ok, thanks Lex -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2317#issuecomment-534901363

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-25 Thread elextr
> I've tried using the Send Selection To --> interface but it doesn't paste > back across the vertical selection. Yep thats known behaviour see also #625 #841 #850 #1083 several of which were opened by or commented on by one@AdamDanischewski (mentioning no names :) This whole thing will need

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-25 Thread Nick Treleaven
> I've tried using the Send Selection To --> interface but it doesn't paste > back across the vertical selection. @AdamDanischewski if you have time, could you file this as a separate issue please? Note the manual calls 'vertical selection' rectangular selection. -- You are receiving this

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-24 Thread AdamDanischewski
Closed #2317. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2317#event-2659856736

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-24 Thread AdamDanischewski
@intact Yep yep! That plugin does the job - thanks! I didn't notice it for some reason. If you are running Geany 1.36 you can add them by: ``` $> git clone https://github.com/geany/geany-plugins.git $> ./autogen.sh $> ./configure $> make $> mkdir mylib; find . -type f -name '*.so' -exec cp

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-24 Thread LarsGit223
@intact: ooops, of course. Did totally oversee that. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2317#issuecomment-534697093

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-24 Thread intact
Maybe you can check [Geanyinsertnum](https://plugins.geany.org/geanyinsertnum.html) plugin. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2317#issuecomment-534680756

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-24 Thread LarsGit223
As an alternative to the possible feature name _"Increment selection"_ I suggest _"Enumerate selection"_. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2317#issuecomment-534663769

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-24 Thread Nick Treleaven
It should be possible to configure a *Format->Send selection to* command with awk to do this. Although Windows users won't have awk (perhaps we could bundle it if small enough). Also perhaps some preset awk commands with meaningful labels would help. -- You are receiving this because you are

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-24 Thread LarsGit223
@AdamDanischewski: thanks, I think we have enough information :smile: IMHO this can be implemented in a new plugin or maybe better as an extension of the Line-Operations plugin. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-24 Thread AdamDanischewski
Sublime also has Increment Selection - I guess that's what it should be called?? - available via the Increment Selection package: ![9kBFH](https://user-images.githubusercontent.com/10157303/65513663-a9bbb080-dea9-11e9-8186-247ff82f251f.gif)

Re: [Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-24 Thread AdamDanischewski
This feature is also available in Visual Studio via extension: ![demo](https://user-images.githubusercontent.com/10157303/65512377-13868b00-dea7-11e9-9f41-3defd5c06daa.gif) https://marketplace.visualstudio.com/items?itemName=albymor.increment-selection

[Github-comments] [geany/geany] Enhancement - Vertical Editing Sequential Numbering (#2317)

2019-09-23 Thread AdamDanischewski
I've been searching for vertical editing sequential numbering, I've found: https://www.emeditor.com/text-editor-features/coding/multiple-selection-editing/how-to-use-vertical-editing/ On vertical selection, a menu option allows for sequential numbering to be inserted. This would be a welcome