Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

<C-v> on Telescope picker fails to open documentation in vertical split #74

Open
jonboh opened this issue Apr 4, 2024 · 1 comment
Open
Labels
wontfix This will not be worked on

Comments

@jonboh
Copy link

jonboh commented Apr 4, 2024

In Telescope by default you can use <C-v> to open the current element in a vertical split. The mapping seems to still be present in the telescope picker of nvim-devdocs, however it throws an error when used (same thing happens when using <C-x> and <C-t>):

E5108: Error executing lua: vim/shared.lua:0: s: expected string, got function
stack traceback:
	[C]: in function 'error'
	vim/shared.lua: in function 'validate'
	vim/shared.lua: in function 'gsplit'
	vim/shared.lua: in function 'split'
	...kages/start/telescope.nvim/lua/telescope/actions/set.lua:162: in function 'run_replace_or_original'
	...ckages/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
	...ckages/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
	...ckages/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
	...Packages/start/telescope.nvim/lua/telescope/mappings.lua:269: in function <...Packages/start/telescope.nvim/lua/telescope/mappings.lua:268>

I think this could be fixed by replacing the select_(vertical|horizontal|tab), actions as it is done in https://github.com/nvim-telescope/telescope.nvim?tab=readme-ov-file#default-mappings for select_default.

@luckasRanarison
Copy link
Owner

I didn't know about that mapping but it looks like it only works for selection that are directly mapped to a file path (string). But the plugin has to do some post processing to the files and doesn't use the file directly so I think that would not be possible

@luckasRanarison luckasRanarison added the wontfix This will not be worked on label Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants