Skip to content

Conversation

@sodapopcan
Copy link

Hi there,

Not sure if you will be into all these changes but I figured I'd give it a shot to get 'em merged. The overarching goal is to improve usability by condensing annoying warnings.

Thanks!

This is a consideration that I always appreciate from plugins.  If someone
happens to have a command that starts with `Ru` that they use with other
filetypes, they can continue to simple type `:Ru` in those buffers.
@english
Copy link

english commented Oct 31, 2015

+1 for Do not open QF window when there are no violations

let l:rubocop_results = split(l:rubocop_output, "\n")
cexpr l:rubocop_results
copen
if len(l:rubocop_results)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think cwindow in essence does this same logic; if there are errors populated in cexpr, then it opens the cwindow if it is not opened. Else, it does nothing

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, I forgot all about this PR and have been just maintaining my own fork.

cwindow doesn't work here since it's just parsing the return value of a system() call which does not populate the quickfix list.

@benpickles
Copy link

These changes are great and make the plugin a lot nicer to use 👍

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

Successfully merging this pull request may close these issues.

4 participants