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

[FEATURE] Free text selection. #2935

Open
RodrigoTR04 opened this issue Dec 30, 2023 · 7 comments
Open

[FEATURE] Free text selection. #2935

RodrigoTR04 opened this issue Dec 30, 2023 · 7 comments
Labels

Comments

@RodrigoTR04
Copy link

RodrigoTR04 commented Dec 30, 2023

Feature request is to be able to freely select and edit text within a block of text without being forced onto the next line.

Additional context:

Feature is similar/identical to what Notepad++ does when you hold Alt and select with the mouse cursor. The user is able to select a rectangle akin to what is possible and clicking and holding in a desktop with icons. Notepad++ also allows user to write the same text to the multiple lines selected.

image
image

@pbek
Copy link
Owner

pbek commented Dec 30, 2023

I guess that would be very hard to achieve in a QPlainTextEdit.

@RodrigoTR04
Copy link
Author

From what I researched in other Qt editors, not sure if this applies to QPlainTextEdit specifically, Kate does it with Ctrl + Shift + B as a toggle. I couldn't find if Kate also uses QPlainTextEdit, since I'm not a developer myself.

@pbek pbek added Type: Feature adds functionality Importance: Low and removed Type: Support labels Jan 11, 2024
@BsNoSi
Copy link

BsNoSi commented Nov 10, 2024

🤔 Use (for example) notepad++ as external editor (supporting this by pressing Alt together with mouse→left pressed)?

Maybe, a “set of external editors” (at least a second or third) might be easier to implement and much more flexible, if a special editing is required.

@pbek
Copy link
Owner

pbek commented Nov 10, 2024

Maybe, a “set of external editors” (at least a second or third) might be easier to implement and much more flexible, if a special editing is required.

That could be implemented as a script with https://www.qownnotes.org/scripting/methods-and-objects.html#registering-a-custom-action and https://www.qownnotes.org/scripting/methods-and-objects.html#starting-an-external-program-in-the-background.

And https://www.qownnotes.org/scripting/methods-and-objects.html#registering-script-settings-variables

@BsNoSi
Copy link

BsNoSi commented Nov 10, 2024

In general, I find scripts interesting, but I couldn't find any hints on how to program/implement my own scripts on a Windows PC (to be honest, I haven't looked very hard, because I don't have the time at the moment).

@pbek
Copy link
Owner

pbek commented Nov 10, 2024

I couldn't find any hints on how to program/implement my own scripts on a Windows PC

See above links and https://www.qownnotes.org/scripting/ in general.

@BsNoSi
Copy link

BsNoSi commented Nov 10, 2024

This in no way fills the big hole of my complete cluelessness regarding qt scripting, but at least the hurdle for “trial and error” is now lowered a lot. I will return to this.

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

No branches or pull requests

3 participants