Coder Social home page Coder Social logo

Comments (11)

LeafyLappa avatar LeafyLappa commented on May 26, 2024 1

ctrl+backspace works however once I change it things become chaotic.
On top of that ctrl+w now inserts invisible characters too.

from cordless.

Bios-Marcel avatar Bios-Marcel commented on May 26, 2024

Hey there, thanks for creating an issue on this.
While you are right, that Ctrl+W is a less widely known variant of the shortcut, it's easily usable on every keyboard and every terminal and it's what command-line-application users are used to. Therefore I still deem it do be a good default.

However, cordless allows you to change any existing shortcut for pre-defined features, such as Delete word left is one. You can change the shortcut via Ctrl+K, selecting relevant entry, hitting Enter ans hitting your desired key combination.

Note that right now, Ctrl+Backspace doesn't work, but Alt+Backspace will, depending on your operating system / terminal.

This is due to an underlying issue where some terminals don't differentiate between delete and backspace. Maybe this was a tcell issue and is resolved by know, i'll have to reinvestigate this.

from cordless.

LeafyLappa avatar LeafyLappa commented on May 26, 2024

Interesting. I'm using xfce4-terminal.

For some reason I also figured that the typical behavior of the vim-like delete word was slightly different from ctrl+backspace style but it does not seem to be the case (my bad I suppose), so the possibility to change the key combination for the shortcut pretty much closes this issue (at least, once it's possible to make ctrl+backspace work).

from cordless.

Bios-Marcel avatar Bios-Marcel commented on May 26, 2024

Hey @Greentaily can you checkout whether the latest commit solves your issue?

from cordless.

LeafyLappa avatar LeafyLappa commented on May 26, 2024

Just built from the latest commit and both ctrl+backspace and alt+backspace now seem to add invisible characters that need to be removed with normal backspace (which works) instead of deleting anything. Once I rebind the shortcut everything becomes chaotic and simply won't work, even regular backspace.

from cordless.

Bios-Marcel avatar Bios-Marcel commented on May 26, 2024

from cordless.

LeafyLappa avatar LeafyLappa commented on May 26, 2024

I might have poorly expressed myself. They both misbehave in my terminal. Even if I bind the shortcut to ctrl+w now, they both add invisible characters.

from cordless.

Bios-Marcel avatar Bios-Marcel commented on May 26, 2024

Yeah, I added another workaround. Can you try again please?

from cordless.

Bios-Marcel avatar Bios-Marcel commented on May 26, 2024

I noticed after I've committed haha. I now ignore all characters that aren't runes, tab or newline.
Also, what do you mean with chaotic?

from cordless.

LeafyLappa avatar LeafyLappa commented on May 26, 2024

Never mind, tested twice and it actually works perfectly except the invisible characters on ctrl+w. I launched the installed version of cordless the first time instead of the one built from cloned repo I suppose.

from cordless.

Bios-Marcel avatar Bios-Marcel commented on May 26, 2024

I'll be closing this then. Reopen it or recomment if you still have problems.

from cordless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.