dnkl/foot
42
2.0k
Fork
You've already forked foot
245

[Proposal] Vi mode #136

Closed
opened 2020年09月15日 19:05:19 +02:00 by FoundOne · 8 comments

Many console apps like gomuks don't allow text selection with the mouse. Mouse click is used for other options. All I can do is to use search hotkeys and search for the exact match, which is suboptimal for me. Imo something like switching to vi mode would be great. It will work well, even for the url selection. I'm not sure whether that fits with your project goals, tho.

Many console apps like gomuks don't allow text selection with the mouse. Mouse click is used for other options. All I can do is to use search hotkeys and search for the exact match, which is suboptimal for me. Imo something like switching to vi mode would be great. It will work well, even for the url selection. I'm not sure whether that fits with your project goals, tho.
Owner
Copy link

While I have been thinking about ways to do selections using the keyboard (be it vi-mode or something else), your problem is much easier to solve: simply hold down Shift and then you can use the mouse to select text (you'll see the mouse pointer change when you do this).

While I have been thinking about ways to do selections using the keyboard (be it vi-mode or something else), _your_ problem is **much** easier to solve: simply hold down <kbd>Shift</kbd> and then you can use the mouse to select text (you'll see the mouse pointer change when you do this).

Thanks.

Thanks.

Should I keep it open or to close it then?

Should I keep it open or to close it then?
Owner
Copy link

Lets keep it open.

I don't have any plans to implement this in the near (or far) future, but I'm not against the feature per se.

Lets keep it open. I don't have any plans to implement this in the near (or far) future, but I'm not against the feature per se.

@FoundOne sounds like you want tmux. Advanced operations like vi-mode, buffer-piping, regex search, URL-matching, session management, etc. are best left to a program that specializes in them so you can get those features in every terminal emulator, inc. virtual consoles. Terminal emulators like Alacritty and Kitty have already gone down the route of replicating tmux's features, and I'd rather not end up with more of the same.

I've been perfectly able to select text in gomuks with tmux.

@FoundOne sounds like you want tmux. Advanced operations like vi-mode, buffer-piping, regex search, URL-matching, session management, etc. are best left to a program that specializes in them so you can get those features in every terminal emulator, inc. virtual consoles. Terminal emulators like Alacritty and Kitty have already gone down the route of replicating tmux's features, and I'd rather not end up with more of the same. I've been perfectly able to select text in gomuks with tmux.
Owner
Copy link

@Seirdy I've been thinking about this for some time, and what I'd like to see is an improved scrollback search, with better control over the selection. For example, using the arrow keys to fine adjust the selection.

I agree that a full blown vi mode is probably too much.

I'll keep this issue open a little while longer, but am currently leaning towards closing this as a wontfix.

@Seirdy I've been thinking about this for some time, and what I'd like to see is an improved scrollback search, with better control over the selection. For example, using the arrow keys to fine adjust the selection. I agree that a full blown vi mode is probably too much. I'll keep this issue open a little while longer, but am currently leaning towards closing this as a wontfix.
Owner
Copy link

Closing as wontfix.

As stated above, a full vi mode is going too far for a terminal that is supposed to be lightweight. Users who want this functionality should use e.g. tmux.

Closing as _wontfix_. As stated above, a full vi mode is going too far for a terminal that is supposed to be lightweight. Users who want this functionality should use e.g. tmux.
dnkl 2020年11月19日 20:36:36 +01:00

Alacritty already has vi mode builtin & the codebase for it in rust. Could it be easier to bring those patches here, as rust to C translation wouldn't be that much different ?

I'm an extensive keyboard user, so switching to mouse just to select text would be inefficient & unproductive.

Alacritty already has vi mode builtin & the codebase for it in rust. Could it be easier to bring those patches here, as rust to C translation wouldn't be that much different ? I'm an extensive keyboard user, so switching to mouse just to select text would be inefficient & unproductive.
Sign in to join this conversation.
No Branch/Tag specified
master
osc-5522
sixel-heap-buffer-overflow
releases/1.27
releases/1.26
releases/1.25
releases/1.24
multi-cursor
releases/1.23
pixman-16f-2
releases/1.22
releases/1.21
releases/1.20
releases/1.19
releases/1.18
releases/1.17
releases/1.16
releases/1.15
releases/1.14
releases/1.13
releases/1.12
releases/1.11
releases/1.10
releases/1.9
releases/1.8
releases/1.7
releases/1.6
releases/1.5
releases/1.4
releases/1.3
releases/1.2
releases/1.1
releases/1.0
1.27.0
1.26.1
1.26.0
1.25.0
1.24.0
1.23.1
1.23.0
1.22.3
1.22.2
1.22.1
1.22.0
1.21.0
1.20.2
1.20.1
1.20.0
1.19.0
1.18.1
1.18.0
1.17.2
1.17.1
1.17.0
1.16.2
1.16.1
1.16.0
1.15.3
1.15.2
1.15.1
1.15.0
1.14.0
1.13.1
1.13.0
1.12.1
1.12.0
1.11.0
1.10.3
1.10.2
1.10.1
1.10.0
1.9.2
1.9.1
1.9.0
1.8.2
1.8.1
1.8.0
1.7.2
1.7.1
1.7.0
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
0.9.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dnkl/foot#136
Reference in a new issue
dnkl/foot
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?