Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Position of the quickfix window #36

Closed
Perry3D opened this issue May 13, 2022 · 6 comments
Closed

Position of the quickfix window #36

Perry3D opened this issue May 13, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@Perry3D
Copy link

Perry3D commented May 13, 2022

Describe the problem or limitation you are having
If I open the quickfix window manually i can do something like :top copen to specify the position of the window.

Describe the solution you'd like
A configuration option to specify the position of the quickfix window.
Maybe something like this:

require('cmake').setup({
  quickfix_pos = 'top'
})
@Perry3D Perry3D added the enhancement New feature or request label May 13, 2022
@Shatur
Copy link
Owner

Shatur commented May 13, 2022

Agree, but since we also have quickfix_height and quickfix_only_on_error, I think we should introduce quickfix option and and put other quickfix-related parameters into it:

require('cmake').setup({
  quickfix = {
    pos = 'buttom',
    height = 10,
    only_on_error = false,
  }
})

@yucongxing
Copy link

Agree, but since we also have quickfix_height and quickfix_only_on_error, I think we should introduce quickfix option and and put other quickfix-related parameters into it:

require('cmake').setup({
  quickfix = {
    pos = 'buttom',
    height = 10,
    only_on_error = false,
  }
})

how about "auto focus on the quickfix window", i cant find the configure now.

@Shatur
Copy link
Owner

Shatur commented May 17, 2022

how about "auto focus on the quickfix window", i cant find the configure now.

I don't see any use case for it. You can navigate quickfix items using :qnext or use awesome vim-unimpaired.

@yucongxing
Copy link

how about "auto focus on the quickfix window", i cant find the configure now.

I don't see any use case for it. You can navigate quickfix items using :qnext or use awesome vim-unimpaired.

thanks for your reply!
there are some reasons for my suggestion.
firstly, it inconvenient to close the quickfix window after run CMake commands. i need to navigate to it and closed.
secondly, i see the future feature(#35) about interact with the quickfix window (maybe a built-in terminal), if the feature is implemented, "auto focus" may become a needed configure.

@Shatur
Copy link
Owner

Shatur commented May 17, 2022

i need to navigate to it and closed.

I personally have a keymap which toggle quickfix. And I would recommend to use something like this instead.

interact with the quickfix window

It's impossible to interact with quickfix window. If it will be a built-in terminal - it's different and not related to quickfix.

@yucongxing
Copy link

i need to navigate to it and closed.

I personally have a keymap which toggle quickfix. And I would recommend to use something like this instead.

interact with the quickfix window

It's impossible to interact with quickfix window. If it will be a built-in terminal - it's different and not related to quickfix.

thanks a lot for you patience.

@Shatur Shatur closed this as completed in 380aef5 Jun 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants