nvim-mini / nvim-mini/mini.nvim
[mini.tabline] Allow overwriting of tabpage section
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 9.5k
- Forks
- 310
- Avg merge
- 4h 16m
- Merged PRs (30d)
- 1
Description
Contributing guidelines
- I have read CONTRIBUTING.md
- I have read CODE_OF_CONDUCT.md
Module(s)
mini.tabline
Description
I would really like to be able to customize the "Tab 1/2" part of MiniTabline. My usecase is that I implemented a system myself to name tabs. This is a try to stay atop of different tasks I have to work on concurrently.
My suggestion would be to add a field to the config which is a function. This function would return what to print instead of "Tab 1/2". Then use this function inside make_tabpage_section.
I would also be willing to implement a PR for this if this gets your blessing.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the mini.tabline implementation and its make_tabpage_section entry point. Trace how the current "Tab 1/2" text is produced and how configuration is defined. Done means the tabpage section can be customized through configuration without changing existing default behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100