nvim-mini / nvim-mini/mini.nvim

[mini.tabline] Allow overwriting of tabpage section

Open
#2,140 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request mini.tabline
Dominant language
Lua
Stars
9.5k
Forks
310
Avg merge
4h 16m
Merged PRs (30d)
1

Description

Contributing guidelines
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.