Methods to move entire text line in .txt file ?

For discussions about programming, and for programming questions and advice


Moderator: Forum moderators

User avatar
MochiMoppel
Posts: 1343
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 521 times

Re: Methods to move entire text line in .txt file ?

Post by MochiMoppel »

greengeek wrote: Mon Feb 17, 2025 1:37 am

In fact this is the fastest method of the three so far.

:?:
Don't both Geany and Mousepad work the same? I can't see a speed difference. I don't like that both highlight the moved line(s) which requires that after moving the lines a user has to "de-highlight" them to avoid accidental deletion/overwriting.

User avatar
greengeek
Posts: 1549
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 651 times
Been thanked: 228 times

Re: Methods to move entire text line in .txt file ?

Post by greengeek »

MochiMoppel wrote: Mon Feb 17, 2025 4:26 am

Don't both Geany and Mousepad work the same? I can't see a speed difference. I don't like that both highlight the moved line(s) which requires that after moving the lines a user has to "de-highlight" them to avoid accidental deletion/overwriting.

Well, with regard to speed - perhaps it is partly just my subjective opinion. I find the Geany gui to be rather "busy" and it is more of a visual effort to focus on the basic todo data. It taxes my brain and it just feels that I am not able to work as quickly.

Also - I find it slower to be reaching for Geany's Alt+PageUp and Down keys - than reaching for Mousepad's Alt+Up and Alt+Down (arrow) keys which seems natural and speedy.

With regard to a line remaining highlighted - I only find that problematic in Geany.

If I am using Mousepad then my fingers are already resting on the arrow keys so after moving one line I immediately move up or down to some other line that needs moving. As soon as I use an arrow key to do that - the highlight disappears from the previously moved line.

Very much a matter of personal preference though.

When I use Leafpad (which is the only text editor inbuilt in my Pup) it is quick and easy to load my .pet of the "xdotool lineup/dwn" . So I have two great solutions for my ToDo list processing now.

Currently still evaluating if either method has downstream issues (with printing or display etc - eg minor downside of Mousepad is that it produces very skinny margins. Upside is that it has a great pdf view option).

I take your point about the highlighting potentially being a cause of unintended overwriting etc so I will keep an eye on that. Thanks for pointing it out. :thumbup:

User avatar
MochiMoppel
Posts: 1343
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 521 times

Re: Methods to move entire text line in .txt file ?

Post by MochiMoppel »

greengeek wrote: Mon Feb 17, 2025 5:40 am

Also - I find it slower to be reaching for Geany's Alt+PageUp and Down keys - than reaching for Mousepad's Alt+Up and Alt+Down (arrow) keys which seems natural and speedy.

Geany's shortcuts are customizable (Edit->Preferences-> Keybindings). I just changed them to Alt+Up and Alt+Down because I agree that PageUp and PageDown are keys that are a bit uncomfortable, and on Notebooks they often are placed in awkward positions.

Post Reply

Return to “Programming”