[x] I have searched the issues of this repo and believe that this is not a duplicate
OS version and name: MacOS 10.13.3
The command + backspace keyboard short cut doesn't do anything. From reading https://github.com/zeit/hyper/blob/canary/app/keymaps/darwin.json#L45 I expected it to clear a line of text. I confirmed with a colleague who uses Hyper and they also didn't get the expected behaviour.
I don't _think_ this is a local config issue but I guess I could be wrong? I'd be interested to hear if this works as expected for anyone?
I'm running the same exact setup and cmd + backspace is working fine; all the other combinations work as expected, too.
I peeped your gist, and noticed you have an empty keymaps object. Is it possible this is overwriting the default options (doubt it)? Although it had no effect on me, try removing that and test.
@appleton linked code lines concern canary release channel.
But I tried your config with stable release and it works very well 🤔
@RichDonnellan BTW, thanks for your help 🙏
I peeped your gist, and noticed you have an empty keymaps object. Is it possible this is overwriting the default options (doubt it)? Although it had no effect on me, try removing that and test.
I've tried with and without it, I've also tried manually adding the command to my config like this:
keymaps: {
'editor:deleteBeginningLine': 'command+backspace'
}
Unfortunately no luck with any of those options.
linked code lines concern canary release channel.
But I tried your config with stable release and it works very well 🤔
Oh whoops. When I look at the file on the latest stable release it doesn't include the cmd-backspace mapping, though I guess it must be implemented somewhere else if it works for you.
I've also just tried swapping to the latest canary release and still no luck. I wonder if this could be something about my system setup since nobody else is having trouble? Other debugging steps I've tried:
From these steps I'm pretty sure it isn't anything to do with my shell configuration at least.
I'm also experiencing this (2.0 stable release). As an additional debugging step to what @appleton tried, I tried overwriting the shortcut with command+shift+t in case it was the delete/backspace key that was the problem. No dice. Happy to help debug if anyone's got steps for me to try.
Having the same issues.
@appleton I couldn’t get Hyper to work either but you can use Zsh keybinds.
Just put this in your .zshrc:
# Delete line with cmd-backspace
bindkey '^[w' backward-kill-line
same issue here
Update: I'm configuring a new machine and did reproduce this issue. Seems it does nothing with the standard bash shell. I was only able to remedy after installing and setting Zsh as my primary.
@SixFingeredAmish: adding your keybindings to the .zshrc had no effect.
@RichDonnellan That's weird. It works for me.
@RichDonnellan That's weird. It works for me.
If you remove that line, will it still work (provided Zsh is your primary)? It did for me. I didn't, however, try using it in a .bash_profile when bash was set to default.
I'm using fish and the cmd+delete not working with it.
Install Oh My Zsh:
Install Oh My Zsh:
Cheers, quickest way to sort this out
Most helpful comment
I'm using
fishand the cmd+delete not working with it.