Search code examples
sublimetext3sublimetextsublime-text-plugin

Deleting until whitespace in Sublime Text


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.


Solution

  • I found solution for this. It's via this plugin:

    https://packagecontrol.io/packages/KeyboardNavigation

    Key for it is:

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

    It deletes any characters right to left until first whitespace.