Kevin Hwang
Kevin Hwang
Need a lot of work to imp this feature. Low priority for this feature.
> Is it possible to unbind these? I've recently started using this, and having c-f and c-b control the preview that keeps surprising me sweat_smile Assign them to `''`.
The solution is not bad, please make a PR for it.
> I don't know if it's the intended behaviour, but previousWinid gets cached and only returns the value for the window you opened qf from. Yes. It's intended behavior. location...
How to choose the previous window then?
https://github.com/kevinhwang91/nvim-bqf/blob/c33b5c57ff82d71f8004b37c8c17a7928da76d08/lua/bqf/qfwin/session.lua#L24-L32 Unfortunately, there isn't a way to get the list of accessed windows in a tabpage, only the last accessed window by `winnr('#')`
Wrap `cw` by yourself. If the current buffer is like nvimtree: ```vim call win_execute(win_getid(winnr('#')), 'bo cw') ``` This solution is better both for you and nvim-bqf.
https://github.com/kevinhwang91/nvim-ufo/blob/b0741a647efd98d9abb6cb653e056d24a07e4581/doc/example.lua#L113-L127 For now, run this snippet in `BufReadPost` and replace `closeAllFolds` with `closeFoldsWith` under the condition. If users need this feature, upvote this feature.
nvim-bqf will cache the previous window after entering qf window. https://github.com/kevinhwang91/nvim-bqf/blob/c33b5c57ff82d71f8004b37c8c17a7928da76d08/lua/bqf/main.lua#L41 https://github.com/kevinhwang91/nvim-bqf/blob/c33b5c57ff82d71f8004b37c8c17a7928da76d08/lua/bqf/qfwin/session.lua#L53-L58 Add below code snippet in `~/.config/nvim/ftplugin/qf.vim` ```vim function ChooseLastWin(winid) abort for owinid in nvim_tabpage_list_wins(nvim_win_get_tabpage(a:winid)) if a:winid != owinid...
No idea why doesn't work for you, add `echom` for the snippet code to check out whether the code has run may help.