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 request: allow CTRL+DEL to delete empty spaces alone, not also non-space characters after them #2893

Closed
pgp opened this issue Sep 6, 2021 · 3 comments

Comments

@pgp
Copy link

pgp commented Sep 6, 2021

Sometimes I deal with wrongly-formatted code files, which contain empty spaces at the row end, like in the following;

text here;                                    <- (lots of empty spaces here)

however, when I press CTRL + DEL starting from the end of the line, the whole last word is deleted together with the empty spaces.

While this clearly makes sense when there's only one space (e.g. I'm deleting word after word in a natural language text), in my scenario it's uncomfortable, I think some additional key combination would be useful in order to delete separately groups of spaces (and groups of tabs maybe), and groups of non-empty characters.

@elextr
Copy link
Member

elextr commented Sep 6, 2021

Document->Strip trailing spaces and do it all in one command?

@elextr
Copy link
Member

elextr commented Sep 6, 2021

Or Edit->Preferences->Files->Saving Files->Strip trailing spaces and tabs and Geany will delete them automatically on saving.

@pgp
Copy link
Author

pgp commented Sep 6, 2021

Thanks!

@pgp pgp closed this as completed Sep 6, 2021
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