Sublime Forum

Deleting until whitespace in Sublime Text

#1

Is there any way to delete all characters untill first whitespace in Sublime. I know that you can use ctrl+delete to do that but it stops at non-word characters(",:,&,*, etc). When you try to delete aaa aaa 2+a , from the end, it will delete 2+a until + sign, but it will delete aaa until space. I need to change that so it will delete 2+a until first space. Solution can be anything; changing settings, plug-in.

0 Likes

#2

I played araound with https://packagecontrol.io/packages/KeyboardNavigation a while ago. It enables keyboard navigation and edits for custom boundaries. Maybe that package can help you.

Otherwise a custom command implemented as a plugin might do the job.

1 Like

#3
{ "keys": ["ctrl+backspace"], "command": "delete_to_beg_of_contig_boundary", "args": {"forward": false} }

Did the trick. Thanks xD.

1 Like