Giter Club home page Giter Club logo

Comments (4)

jghauser avatar jghauser commented on June 15, 2024 1

Ok, I'll see what I come up with and get back to you! :)

from papis.nvim.

jghauser avatar jghauser commented on June 15, 2024

Thanks for your issue report! I'm pretty sure it's because <c-p>[some_letter] is used as a shortcut in insert mode for various things by papis.nvim. This means that when you press just <c-p>, nvim is waiting to see with what additional character you will complete the shortcut and only after some time will execute the command mapped to <c-p>. This isn't great given that <c-p> is used by default in nvim to select the next item in various lists if I'm not mistaken. I've remapped this to <tab> on my machine and therefore didn't notice the clash.

I'll think about how to best deal with this. <c-p> does seem like the natural insert mode equivalent of the standard <leader-p>. Maybe I can figure out some way to only use the mapping in standard insert mode (and not in telescope windows or when using some autocomplete feature). Or, do you maybe have any ideas on how to best deal with this?

from papis.nvim.

Inom-Turdikulov avatar Inom-Turdikulov commented on June 15, 2024

Thanks for your issue report! I'm pretty sure it's because <c-p>[some_letter] is used as a shortcut in insert mode for various things by papis.nvim. This means that when you press just <c-p>, nvim is waiting to see with what additional character you will complete the shortcut and only after some time will execute the command mapped to <c-p>. This isn't great given that <c-p> is used by default in nvim to select the next item in various lists if I'm not mistaken. I've remapped this to <tab> on my machine and therefore didn't notice the clash.

I'll think about how to best deal with this. <c-p> does seem like the natural insert mode equivalent of the standard <leader-p>. Maybe I can figure out some way to only use the mapping in standard insert mode (and not in telescope windows or when using some autocomplete feature). Or, do you maybe have any ideas on how to best deal with this?

Honestly I have no idea how do it properly. On my side I just disabled built-in keymaps (thank you for this option) and I use only custom keymaps in normal mode right now. Maybe possible to detect "telescope insert mode" and disable mapping for it.

from papis.nvim.

jghauser avatar jghauser commented on June 15, 2024

Ok, this took a while 😓. I've made keybinds local to buffers (so they don't mess with Telescope). I've also had to change some other keybinds because (new note) still clashed. You might want to re-enable the default keybinds, though I guess you've probably found a setup that works for you by now :). Thanks again for the report!

from papis.nvim.

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.