MrRio / vtop

Wow such top. So stats. More better than regular top.
http://parall.ax/vtop
MIT License
4.12k stars 149 forks source link

Is it possible to configure the key bindings? #159

Open Figuera opened 4 years ago

Figuera commented 4 years ago

From what I searched the answer is no.

But I still need it, I use a custom keyboard and needs to remap hjkl to the correct keys. Is it possible to edit the code maybe and change the keys to the correct ones? It shouldn't be a great change. Searching the code I found where the display text is defined but not where the action is mapped. Help?

tuh8888 commented 3 years ago

Here's a solution which worked for me. I wanted to use custom keybindings too. I figured out that they were using blessed to display the process list. Unfortunately, blessed also has hard-coded keybindings for their vi mode. You can see the changes necessary to use your preferred keys in these commits in my forks of blessed and vtop.