I'm writing a pyflakes plugin (pychcker/lint type module) and I was thinking I would prefer to have the error lines highlighted, and display the error messages in the status bar for the line my cursor is in.
The only problem is, I can't see that there's any kind of way to accomplish this currently. The best idea I could come up with off the top of my head was a callback of this sort:
def getStatusMessage(self, view, line, col):
errmsgs = get_pyflake_errors(line)
return 'Line %i, Column %i - PyFlakes: %s'(line, col, errmsgs)
# show default
# return None ? perhaps.
# or handle everything?:
return 'Line %i, Column %i(%(line, col)
This would allow plugins to display a custom message based on the current position.
(I tried searching for a mention of something that could accomplish this, hopefully I've not overlooked it)
Thanks for hearing me, keep up the good work.