Comments (6)
Hey @tami5 sorry about the delay, I think your suggestion is good. That said I think it's also already possible. I'll show you a few examples in a bit and you can let me know if that's not the case
from goto-preview.
@tami5 You can use the post_open_hook
like this to set keybindings.
from goto-preview.
from goto-preview.
Ability to open current preview in split
You can use regular window movement bindings like <C-w>L
to get the floating window to become a normal split.
https://user-images.githubusercontent.com/2881382/123523144-19faf580-d67f-11eb-861e-e5b42394d33e.mp4
Additionally, as noted with the positioning bug, yes the popup go all over the place. However, it might be worth it to take vscode/preview popup approach and let them stack under each other.
The positioning is very deliberate with this plugin, where the floats do actually stack not directly under an existing float position but under the cursor so one can easily track where they triggered the preview window from.
from goto-preview.
I've also been using this patch from @andrew-pa for a few days now and the positioning has been fixed for me since.
neovim/neovim#14770
from goto-preview.
thanks @rmagatti . Hopefully that patch will be merged soon. Also, is there any way to identify the goto-preview buffer, I want to attach mappings to it.
from goto-preview.
Related Issues (20)
- Highlight group? HOT 2
- Different color theme in flat window HOT 3
- [BUG] Current buffer closes with preview if the preview and parent buffer are the same file HOT 2
- [FEATURE] Explain vim-plug setup HOT 3
- [FEATURE] Add a wiki for repo HOT 4
- [BUG] preview window triggers twice in vue 3 router file HOT 2
- [BUG] Fails if you haven't done regular go to definition first HOT 3
- [Suggestion] Remove vim.inspect HOT 2
- [FEATURE] Closing `n+1` preview should move the focus to the `n` preview HOT 4
- Can't use goto-preview while it is installed, how to troubleshoot it ? [BUG] HOT 4
- Keep the last directory structure after close the preview window HOT 7
- [FEATURE] Allow not to automatically initialize telescope HOT 1
- Change border color HOT 1
- How to close only one preview and how to open focused preview in current split but new buffer?
- Setting on `post_open_hook` will be shared if I split window? HOT 1
- [BUG] attempt to index field 'lsp_configs' (a nil value) HOT 9
- [FEATURE]: 'Enter' key in a preview window to close all preview windows and go to the definition,refs, etc HOT 6
- Filename in float window
- Getting "Invalid key" error when go to definition HOT 6
- [FEATURE]: Toggle single preview window and show definition automatically when cursor moving in source window. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goto-preview.