[feature] New tab indicator in omni bar#4881
Conversation
cad44fd to
143709c
Compare
|
One thing I don't love about this implementation is that the query's text input and the results aren't on the same vertical grid line. As part of merging #4880, in 37e6c09, I used the placeholder text in the Vomnibar to show which completion mode you're in. This work well for tabs, bookmarks, commands. The default case (omni) shows no placeholder.
|
I like that. It is elegant and avoid the flickering when the bar is launched.
This suggestion also looks nice. I will take a crack at it. @philc What do you think about the mode changing shortcuts? |
|
I personally wouldn't find those mode changing shortcuts useful, and they're hard to decide on and document. Finally, I don't think Vim has a conceptual analog that we can use as a reference. |
Understood. Let's keep it simple. |
143709c to
85c8efa
Compare
|
@philc I have pushed an attempt of implementing your suggestion. Let me know what you think. |
Add new tab indicator overlay element on the right side of the input field when the omni bar is in "new-tab" mode.
85c8efa to
b442807
Compare




a new tab.
mode.
bar completers.
Description
Good evening. This MR is a POC related to #4509.
The proposed design changes may be deemed too radical, but I am submitting them here for discussion.
Change no. 1
The omni bar "mode" is shown to the left of the input field. Shortcuts
Alt + m/Mare used to cycle through modes (the input text is preserved). This can be useful if you realize you need to search in another mode and don't want to lose text input or pressEsc+<correct shortcut>.Change no. 2
A plus sign
+is added next to the name of the mode if the selected action will be opened in a new tab (not counting with any modifier shortcuts likeShift + Enter. The shortcutAlt + nis used to switch this current tab / new tab mode.