Phidica / sublime-fish

A robust Sublime Text syntax package for fish
MIT License
35 stars 2 forks source link

Language name eats too much space in the status bar #24

Closed andreiborisov closed 4 years ago

andreiborisov commented 4 years ago

I wonder if it's possible to change the displayed name of the fish language in Sublime status bar to simply fish. Right now it's way too long and eats a lot of space in the status bar:

CleanShot 2020-06-11 at 11 38 24@2x
Phidica commented 4 years ago

The syntax name is controlled by line 4 of the fish.sublime-syntax file. If it is important for your purposes that it be shorter, then you could do a manual install of the package following the instructions in the README and modify the syntax to choose a shorter name. I don't believe this should cause anything to break, you'd just have to watch out for new releases and periodically update then modify the name again.

I'm not aware of any other way to control the apparent name of the syntax used in that part of the status bar.

I would prefer not to change the as-distributed name of the syntax to anything else, because currently it mirrors the style of the default bash syntax, which is Bourne Again Shell (bash).

andreiborisov commented 4 years ago

Thank you for the suggestion!

That absolutely makes sense, I wasn’t aware that Bash syntax has the same naming format.

I’ve reported it in the bundled packages repo (https://github.com/sublimehq/Packages/issues/2384), perhaps they are willing to change it in the Bash syntax package.

andreiborisov commented 4 years ago

Bash syntax name is changed to ”Bash” upstream: https://github.com/sublimehq/Packages/issues/2384

Phidica commented 4 years ago

Next release will contain this change. Follow instructions in the README for a local install if you'd like to get it sooner, noting the change is currently on the devel branch. Closing for now.