Skip to content
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

Show Only the File Name and Not the Full Path #2568

Open
amarakon opened this issue Aug 20, 2022 · 0 comments
Open

Show Only the File Name and Not the Full Path #2568

amarakon opened this issue Aug 20, 2022 · 0 comments

Comments

@amarakon
Copy link
Contributor

environment

  • neovim: 0.7.2
  • vim-airline: latest git master
  • OS: Gentoo GNU/Linux
  • Have you reproduced with a minimal vimrc: yes
  • What is your airline configuration: I configured the tabline. See more below.
    if you are using terminal:
  • terminal: alacritty
  • $TERM variable: alacritty
  • color configuration (:set t_Co?): Key code not set
    if you are using Neovim:
  • does it happen in Vim: yes

actual behavior

It shows the path to the file you are editing instead of just the name of the file, unless you were already in that directory before editing the file.

expected behavior

Add an option to only show the file name and exclude the directories. I did this in the tabline by using this option:

let g:airline#extensions#tabline#formatter = 'unique_tail'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant