-
Notifications
You must be signed in to change notification settings - Fork 45
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
Usability "upgrades" #14
base: master
Are you sure you want to change the base?
Conversation
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.
plugin/rubocop.vim
Outdated
@@ -54,8 +54,12 @@ function! s:RuboCop(current_args) | |||
endif | |||
let l:rubocop_output = substitute(l:rubocop_output, '\\"', "'", 'g') | |||
let l:rubocop_results = split(l:rubocop_output, "\n") | |||
cexpr l:rubocop_results | |||
copen | |||
if len(l:rubocop_results) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
These changes are great and make the plugin a lot nicer to use 👍 |
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!