Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent blocks? #3079

Closed
Dim-Tim-1963 opened this issue Jan 2, 2022 · 5 comments
Closed

Persistent blocks? #3079

Dim-Tim-1963 opened this issue Jan 2, 2022 · 5 comments

Comments

@Dim-Tim-1963
Copy link

Is it possible to implement persistent blocks in Geany? Got used to them since Turbo/Borland Pascal and Delphi. :)

@elextr
Copy link
Member

elextr commented Jan 2, 2022

What is persistent blocks? Even google doesn't seem to know.

@Dim-Tim-1963
Copy link
Author

Dim-Tim-1963 commented Jan 2, 2022

Aw, sorry. This kind of block stays marked until a dedicated hotkey is pressed or until you start marking another block. When you copy or move it, you don't have to use clipboard. Most of "classic" IDEs have such option.
UPD: and Google does know. :) I just made a search request "editor persistent blocks", 34 millions of results.

@elextr
Copy link
Member

elextr commented Jan 2, 2022

Scintilla (the editing widget Geany uses) defines the selection as the text between a specified "anchor" position and the current position so it follows the cursor, so not what you want. But since other markers are available you might be able to make a plugin to provide the behaviour you want but its pretty unlikely it will happen in Geany itself, more likely would be that multiple selections would be supported.

Google results depend on what you have been searching for (that "algorithm" remember) I got one reference to an MC change request adding a "persistent blocks" option but with no documentation on what it was, and then google switched to persistent disk and memory and other persistents. Google persistently persisted in having no persistent memory of persistent blocks (on page one, who looks beyond that?).

@Dim-Tim-1963
Copy link
Author

Well, quite clear, thanks. Seems, implementing features in editors heavly depend on authors' background and habits. For example, many users of VS Code many years beg for "virtual space" (aka cursor beyond EOL), but the authors seem to despise that idea. Though VS itself has that feature.

@elextr
Copy link
Member

elextr commented Jan 2, 2022

Seems, implementing features in editors heavly depend on authors' background and habits.

Well of course, software is written by humans, so of course it reflects the people who write it. But that will change when the AI takeover happens ;-P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants