Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Vim mode #140

Closed
hugohabicht01 opened this issue Aug 25, 2019 · 13 comments
Closed

Vim mode #140

hugohabicht01 opened this issue Aug 25, 2019 · 13 comments
Labels
enhancement New feature or request

Comments

@hugohabicht01
Copy link

hugohabicht01 commented Aug 25, 2019

What do you want

Would it be possible to implement a vim mode? Or at least the possibilty to use hjkl instead of the arrow keys?

Why

This feature would be very convenient for all vim users. And it is really unconvenient to move to fingers to the arrow keys, instead of using keys in the homerow

@Bios-Marcel
Copy link
Owner

You are not the first one to want this, so i might consider

@Bios-Marcel Bios-Marcel added the enhancement New feature or request label Aug 26, 2019
@indeedwatson
Copy link

indeedwatson commented Dec 6, 2019

I was going to open a new issue but I just found this, so I want to say I'd also love this, and I'm pasting what was gonna be my original message here:

Just found this project and I'm glad it exists. This isn't so much a request as a dialogue, as i feel the UX could be more streamlined.

If you're not familiar with vim, the main idea to take from it is modes, which allow for less key presses and perhaps more mnemonic shortcuts.

Example: in normal mode you can scroll up/down with j/k in the chat region, simply pressing s and c would take you to servers and channels in which again you can scroll up/down with j/k. Pressing i anywhere would take you to the input box in which you can type all you want, and pressing Esc would take you back to normal mode for navigation. This could also allow for a urls mode where you quickly jump between urls to open them, perhaps with u or l (for links).

Furthermore a search box would speed things up more, for example:
Let's say you're in a server with a lot of channels, and you want to go to one specific channel and you know what it's named.

Right now I have to press alt + c, down arrow potentially 15 times, enter.

With search, i'd press c (or Esc, c if I'm in insert mode), then /, type a few letters from the channel name and press Enter. Potentially this might save about half or no keystrokes, but more importantly, there's no need for key-chords, no need for moving away from the homerow, and it's easier to get muscle memory for often-visited channels even if they get moved around in the list.

@Bios-Marcel
Copy link
Owner

Well, this might be a cool feature, but I'd have to clean up first and possibly improve some other stuff first. The search is a whole new feature in itself, same for the link navigation thing. And I'd have to see how I handle the current situation with shortcuts, without breaking everything.

@indeedwatson
Copy link

Yeah I understand, thanks for your input, and sorry for the text dump, I just wanted to put my thoughts out there cause I'm trying to break free from the horrible discord desktop interface.

@AtomToast
Copy link

A vim mode might be the thing that makes me dump discord for this.
I'm a hardcore vimmist so if you'd like any input on shortcuts or implementations I'd gladly be of help.
Unfortunately I have no experience with go though

@Bios-Marcel
Copy link
Owner

Ask @dakyskye

@Himujjal
Copy link

Himujjal commented Oct 1, 2020

Hi @Bios-Marcel. Can we have this issue open so, a discussion can be made into the vim mode? #306 also talks about the same. Since this is the first of multiple Vim issues. This can be re-opened and others closed. Its hacktoberfest anyways. Maybe someone might come and add this feature this month.

@steewbsd
Copy link

I'm currently working on a major Vim mode. It's pretty much work in progress, but I'll get my hands on it.

@normen
Copy link

normen commented Nov 17, 2020

I'm currently working on a major Vim mode. It's pretty much work in progress, but I'll get my hands on it.

please yes, its the only thing stopping me from using cordless over weechat + bitlbee + bitlbee-discord

:wq

@normen
Copy link

normen commented Nov 17, 2020

Really the most annoying thing is that one can't use j/k as up/down to navigate the lists (except for the message list which with the right mapping feels good, man). Except for that I can make a mapping that doesn't feel too awkward as a VIM user.

Adding a mapping for that at least shouldn't be too problematic?

@normen
Copy link

normen commented Nov 17, 2020

Oh, I just noticed that the default j/k behavior of tview returns when you set "OnTypeInListBehaviour": 0, - I'm on board now 😆

@steewbsd
Copy link

steewbsd commented Nov 17, 2020

You can check my fork of cordless (vim branch) until my pull request is not completed. I'm reviewing some things with Marcel meanwhile, but it should be pretty usable for now.

#368

@normen
Copy link

normen commented Nov 17, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants