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

[FEATURE] Trigger goto-preview from any Telescope.nvim picker #122

Open
rmagatti opened this issue Aug 4, 2024 · 0 comments
Open

[FEATURE] Trigger goto-preview from any Telescope.nvim picker #122

rmagatti opened this issue Aug 4, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rmagatti
Copy link
Owner

rmagatti commented Aug 4, 2024

Is your feature request related to a problem? Please describe.

No.

Describe the solution you'd like

I'd like to be able to from a given telescope picker, be able to open a preview, without actually having a definition to go to.
The workflow would look something like this:

I'm in a file, I remember I need to change something in another file that doesn't necessarily have a direct connection to my current file. I however don't want to lose the context in my brain for the current file, I just want to open a goto-preview window for a given file and make my quick change from that window, save, close the preview then go right back to my current file and keep doing what I was doing before.

Describe alternatives you've considered

N/A

Additional context

Ideally this wouldn't require major integration with specific telescope pickers. i.e what if a user could pass into their config any telescope picker they want to use goto-preview with this way, and goto-preview would somehow "insert itself" in the mix, allowing the user to trigger a goto-preview window from that picker. Maybe there's a way to just have a keymap that can be triggered from any picker that calls a goto-preview function with the currently selected element on a picker and goto-preview does its thing?

I suppose the trouble there would be telling the telescope picker it needs to close because essentially the user has finalized their action.

@rmagatti rmagatti added the enhancement New feature or request label Aug 4, 2024
@rmagatti rmagatti self-assigned this Aug 4, 2024
@rmagatti rmagatti changed the title [FEATURE] Trigger goto-preview from any Telescope.nvim pickers [FEATURE] Trigger goto-preview from any Telescope.nvim picker Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant