Open ghost opened 1 year ago
I agree it would be nice to get this consistent with other text editing environments.
For what it's worth: you can use Alt + Backspace to delete the entire word (up to the text space) to the left of the cursor.
Ctrl + Delete (forward-delete, that is) does work to delete up to the next non-alphanumeric character to the right of the cursor.
I think this can only realistically be implemented in the libvte
, which is the terminal emulator that elementary Terminal uses.
Ok, should open an issue in libvte repository :)
A separate issue but do you think it would be possible to use the same color palette both on the terminal app and code editor? It's a blueish theme, and doesn't blend with the rest of the widgets of Code - https://github.com/elementary/code/issues/1295
@aitor-gomila Should the title of this issue be "Allow use of Ctrl + Super
shortcut for delete word left"? Ctrl + Del
already works for delete word right. As Alt + BackSpace
already works for delete word left it may be possible to capture Ctrl + Super
(if it is not already captured by the window manager) and feed Alt + BackSpace
into the terminal instead.
The thing is, since we already have a (uncommon in my opinion) shortcut for deleting words to the left, instead of changing that should we make it clearer for users?
Same case for Super + space
for opening the applications menu, I'm an elementary user since 6.0 and the first days I was using it it bothered me to use the mouse to open the application menu.
I did not know there was an option to change that, or an alternative button for it until I read an issue about that 2 days ago. Which is quite advanced, since you target normal people without a lot of computer knowledge.
@jeremypw I think @aitor-gomila uses "Supr" as in the Spanish key for delete
.
Yes, I meant backspace (is that how it's called?) thanks for clarifying
OK, so we could map Ctrl + BackSpace
to Alt + BackSpace
then. Making shortcuts discoverable is a bigger issue, affecting all apps. They can be put in menus and tooltips but in a case like this it is more problematic as there is no actionable widget with the same effect. Some ideas were discussed here https://github.com/elementary/shortcut-overlay/issues/53 but there are technical difficulties that are yet to be resolved.
In this case if the team decided to stick with Alt + BackSpace
I would add a tiny alert (like android tooltips) that tells you what shortcut to use.
Same for the Super key, on the shortcuts app, add a bold warning or something like that which tells you to use the appropiate shortcut (Super + Space
) and a link to change the setting.
Problem
Usually in VSCode and other terminal emulators you're able to remove the last piece of code with Ctrl+Supr.
This is muscle memory for me
Proposal
For example, given the command
git clone https://
, it would remove all the text from the currently selected position until it finds a symbol or space. One key press would lead togit clone https
, another would lead togit clone
, etc.Prior Art (Optional)
Will post some art soon, can't access github on gnome web right now. Also, willing to contribute this if someone points out exactly how to do it :)