google / ci_edit

A terminal text editor with mouse support and ctrl+Q to quit.
Apache License 2.0
223 stars 54 forks source link

Feature/ctrl backspace #189

Closed aaxu closed 5 years ago

aaxu commented 5 years ago

Finally got around to figuring this out. I've only tested this out on Ubuntu 18.04 since I currently don't have access to a Mac, though I will by next week. More testing would be appreciated but here's a quick look at what I have so far.

Main points:

aaxu commented 5 years ago

Update: Program should no longer crash when there is no X server available. It will act as if this feature did not exist and CTRL_Backspace should just be a normal backspace.

aaxu commented 5 years ago

I've just removed the parts using pynput, keeping only the functions that support backspacing a word. Currently, there will be no way to actually activate this function since it isn't mapped to any key combination.