-
Notifications
You must be signed in to change notification settings - Fork 30
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
Allow to add a custom opener to func_map #45
Comments
What's different between |
Oh, my bad. |
Maybe |
Add tabc, drop and tab drop jump commands
Add tabc, drop and tab drop jump commands
I have added three new jump commands. All of them will close qf window, you can wrap the command by yourself. FYI: #39 |
I see that lua require('bqf.qfwin.handler').open(true, 'TabDrop') works for me when I call it manually from the cmdline, but filetype autocommand nmap <buffer> <CR> <Cmd>lua require('bqf.qfwin.handler').open(true, 'TabDrop')<CR> seems to be overwritten by How to attach such custom funcref? Why not to allow overriding |
No
You can, RTFM |
|
|
require('bqf').setup({
auto_enable = true,
func_map = {
open = '',
}
}) allows to disable |
For example ```lua local function tabDropHandler() require('bqf.qfwin.handler').open(true, function(fname) customTabDrop(fname)) end) end local function configureWindow() vim.keymap.set({'n'}, '<CR>', tabDropHandler, {buffer = true}) end local augroup = vim.api.nvim_create_augroup ('BqfMappings', {clear = true }) vim.api.nvim_create_autocmd ('FileType', { group = augroup, pattern = 'qf', callback = configureWindow, }) ``` kevinhwang91#45
Feature description
Hi,
it seems for me (i'm fresh in Lua) that the set of allowed keys of
func_map
is restricted toaction_funcref
fromkeymap
.I'd like to attach a custom opener that does an action similar to
tab drop
(see links below).Describe the solution you'd like
Please allow to attach a function (as the opener) that get the path, (and, if provided) line and column to allow make a customized jumping.
Additional context
neovim/neovim#14567
https://github.com/przepompownia/vim-arctgx/blob/master/plugin/tab.vim#L11
The text was updated successfully, but these errors were encountered: