SublimeHaskell icon indicating copy to clipboard operation
SublimeHaskell copied to clipboard

Extremely Long Status Bar Text

Open iamrecursion opened this issue 8 years ago • 7 comments

The Sublime status bar has both left and right components. When using restricted-width windows, however, SublimeHaskell status messages can often push the right-hand-side components off the status bar entirely. This would prevent the user from having access to their tab settings from that location, for example.

The usual cause for this issue is the fact that long path names are displayed in the status bar in a non-truncated form. My suggestion is to truncate as far as the single file name (module.hs) where necessary, where 'necessary' is defined as having enough status bar space for the given window size.

Clearly this can't account for all possible window sizes, but it would be nice if it accounted for any reasonable window size, much as vim-airline and related projects do in vim.

I'm happy to work on this once my schedule clears up a bit to take some work off your plate. Thoughts appreciated.

iamrecursion avatar May 16 '17 20:05 iamrecursion

@iamrecursion: Go for it. Status bar "stuff" is in sublime_haskell_common.py.

bscottm avatar May 16 '17 23:05 bscottm

Thanks for the pointer. I'll pick it up when I have time in a couple of weeks.

iamrecursion avatar May 17 '17 08:05 iamrecursion

Finally getting to a stage where I can take a proper look at this! I've not done much ST plugin development before now, despite a familiarity with Python, so I was wondering if you had a recommended development setup. My instinct says to develop the plugin attached to a portable ST version so as to sandbox the development and testing sublime installs, but any pointers would be appreciated.

iamrecursion avatar May 28 '17 10:05 iamrecursion

Basically, that's what I do -- I use the portable version for development and testing. I also have SublimeLinter and SublimeLinter-Python installed to avoid various and sundry Python errors.

bscottm avatar May 29 '17 23:05 bscottm

Sounds good. I was definitely going to install pep8 or pylint to that end. Which linter have you got SublimeHaskell conforming to?

iamrecursion avatar May 30 '17 09:05 iamrecursion

pylint.

bscottm avatar May 31 '17 19:05 bscottm

Noted, thanks.

iamrecursion avatar May 31 '17 19:05 iamrecursion