Allow end-aligned truncation for path and branch footer items
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Shell
- Estrelas
- 11.2k
- Forks
- 1.9k
- Merge médio
- 14h 16min
- PRs com merge (30d)
- 6
Descrição
Describe the feature or problem you'd like to solve
When the path or branch name is too long, only the end is truncated.
Proposed solution
Add a per-item truncation setting to /footer (and /statusline ) for values such as the current working directory and Git branch. Support at least start (current behavior), end , and optionally middle truncation. With end selected, render an ellipsis followed by the trailing portion of the value—for example, …\foo\.worktrees\bar and …/feature-name —so the most distinguishing directory and branch suffix remain visible in narrow terminals. Persist the preference with the existing footer configuration.
Example prompts or workflows
No response
Additional context
No response
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece localizando os pontos de entrada de configuração e renderização de footer e statusline, depois rastreie como os valores atuais de path e branch são truncados e persistidos. Verifique o comportamento existente de truncamento no início e determine onde deve ficar uma preferência por item para o início, o fim ou o meio. O trabalho estará concluído quando ambas as interfaces mantiverem a configuração e exibirem a parte final solicitada do path ou branch com reticências em terminais estreitos.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- shell
- Domínio
- cli
- Tipo de issue
- Funcionalidade
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Ativa
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 55/100