-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: increase max # files which can be opened by the leader key (V2) #1823
Comments
I am not convinced. How do you know what number to use? |
The only diff between mode #1 and #2 is the # range. The # always increases sequentially. In mode #1, 1st file-> 1, 2nd file -> 2, 3rd file -> 3 .... 9th file -> 9 (arrow means map) I understand that mapping 1st file -> 11 looks bit weird. But it's handy when switching file. What do you think? |
But how do you know, that you need to press e.g. |
Also please note, according to the documentation, you can already map
That supports |
No,I don't need remember the buffer number of each buffer. Assume, my files are AA, AB, AC ... AZ, BA, BB, .... BZ, .... Currently (mode #1), assume I am opening AA, if I need open AH, I watch and check the bar. And I find the it's # is 8. So I press leader + 8 to switch to AH. Even in mode #1, I don't remember. Mode #2 is similar. AA has buffer # 11, AB has buffer #12 ... AJ (10th file) has buffer #20. Assume I am opening AA, if I need open AJ, I watch and check the bar. And I find the it's # is 20. So I press leader + 20 to switch to AJ. |
BTW, in the above image, after BL, it shows E541. Is it a bug? I though it should show BM, then BN, then BO ..... |
is not good, because it requires you to either remember or run "ls" to figure out the buffer # of the buffer you want to switch to, before you switch. |
Regarding E541, that is a limitation of Vim. As mentioned in the documentation, it only allows 80 items inside the statusline/tabline. I thought there was a wishlist issue already open for vim, to increase this limit, but I cannot find it. You might open a new one and explain your usecase (4k monitor, many buffers, etc) and show the screenshot. For the other thing, I'll have to reconsider. |
Though 9 is small # when working on a large project, 80 should be fine to me. Anyway, whether you approve the feature request or not, I appreciate your reconsideration. |
Hi chrisbra, May I ask you a quick question? Do you know if anyone is working on this feature request? And do you have a draft idea when it could be implemented? Thanks. |
just included the feature experimentally. |
Thank you very much. I really appreciate!!! Just tried. One minor request: could you please adjust the 1st file number from 10 to 11? Reason: assuming 1st file is the most commonly used file, to type "10", you need use little finger from two hands. But to type "11", you only need little finger from one hand. What do you think? |
okay, I have just pushed a slight modification. |
Thanks. Really appreciate. |
environment
vim: vim8
vim-airline: latest
OS: Linux/Mac/Win
Have you reproduced with a minimal vimrc: feature request
What is your airline configuration: feature request
Currently, the max # of files which can be opened with the leader key is only nine, which too small for a practical use on large project.
Is it possible to provide two modes (controlled by a flag maybe):
Mode #1: which is the current style. The count # is from 1-9.
Mode #2: The count # is from 11-99.
When in mode #2, user always need press and 2 number keys to switch. So there will be no delay issue.
I posted this suggestion on the previous request link. But I don't hear from you. So I posted a V2 suggestion. Wish this would not make you feel too mad ^_^
The text was updated successfully, but these errors were encountered: