akinsho / akinsho/bufferline.nvim

Improve tab navigation with truncate filename set to false

オープン
#534 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Lua
スター
4.4k
フォーク
240
PR マージ指標
30日以内にマージされた PR はありません

説明

There are 2 cases that can be improved.
* case 1
suppose I have three files, long_file_name_file_1, long_file_name_file_2, long_file_name_file_3. What I saw is
| empty_space |long_file_name_file_2| empty_space |

There is no way I can use mouse to move to the next buffer. I have to use `bnext/bprev` (also `BufferLinePick` not working as only one tab is shown)

* case 2
3 files, as above, but 2 of them are shown in bufferline tab
| long_file_name_file_1 | long_file_name_file_2|
What I expected is if I change focus to long_file_name_file_2, the tab should look like this:
| long_file_name_file_2 | long_file_name_file_3|
If I click on long_file_name_file_2, it should look like this:
| long_file_name_file_1 | long_file_name_file_2|
But it may not work as the spece left may less than length of long_file_name_file_1

Is it possible to show at least 2 tabs and the behaviour is this (suppose I have 5 files and 3 of them are shown)
| long_file... \| long_file_name_file_3 | long_file... |
If I click on `long_file... ` on the right, it will be
| long_file... \| long_file_name_file_4 | long_file... |
If I click on `long_file... ` on the left, it will be
| long_file... \| long_file_name_file_2 | long_file... |

_Originally posted by @ray-x in https://github.com/akinsho/bufferline.nvim/issues/533#issuecomment-1235409058_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。