Giter Club home page Giter Club logo

Comments (6)

rmagatti avatar rmagatti commented on July 21, 2024 1

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.

rmagatti avatar rmagatti commented on July 21, 2024 1

@tami5 You can use the post_open_hook like this to set keybindings.
Screen Shot 2021-06-27 at 2 00 17 AM

from goto-preview.

kkharji avatar kkharji commented on July 21, 2024 1

😍 😍 😍 😍 😍 amazing @rmagatti I don't know that existed. Honestly, great design

from goto-preview.

rmagatti avatar rmagatti commented on July 21, 2024

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.

rmagatti avatar rmagatti commented on July 21, 2024

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.

kkharji avatar kkharji commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.