Skip to content
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

Set quickfix/location list title always #40

Closed
blueyed opened this issue Apr 9, 2016 · 1 comment
Closed

Set quickfix/location list title always #40

blueyed opened this issue Apr 9, 2016 · 1 comment

Comments

@blueyed
Copy link
Contributor

blueyed commented Apr 9, 2016

It seems to be done only with -open (

if a:flags.open
execute (qf ? 'botright copen' : 'lopen') (size > 10 ? 10 : size)
let w:quickfix_title = s:cmdline
).

The following pattern could be used (because the title arg is new):

try
  call setqflist(getqflist(), 'r', qftitle)
catch /E118/
endtry
@blueyed
Copy link
Contributor Author

blueyed commented Apr 9, 2016

Additionally, it would be nice to also apply the mappings / settings once an initially closed qf/loclist window gets opened.

blueyed added a commit to blueyed/vim-grepper that referenced this issue Apr 9, 2016
This uses the new `title` argument with `setqflist`/`setloclist`, if
available to set the title with a suffix that allows to handle it via
a `FileType qf` autocommand later, too.

With this the qf windows will have mappings and title always (with
`-noopen` and after `:cclose/:copen`).

Fixes mhinz#40.
@mhinz mhinz closed this as completed in 9d1f935 Jun 17, 2016
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 a pull request may close this issue.

1 participant