GithubHelp home page GithubHelp logo

Swapping Ctrl-n and Ctrl-p about supertab HOT 5 CLOSED

ervandew avatar ervandew commented on August 26, 2024
Swapping Ctrl-n and Ctrl-p

from supertab.

Comments (5)

ervandew avatar ervandew commented on August 26, 2024

Please see #21 and #16.

from supertab.

oconnor663 avatar oconnor663 commented on August 26, 2024

Ah apologies, I didn't realize that github had a separate section for closed issues :p

from supertab.

ervandew avatar ervandew commented on August 26, 2024

No problem :)

from supertab.

oconnor663 avatar oconnor663 commented on August 26, 2024

Having read through those issues, I'm still not sure what I'm seeing is intended. You wrote, "<c-p> highlights the nearest matching word located above the current cursor position, which is the result at the bottom of the completion popup." What I'm seeing is that, with SuperTab installed and using all the defaults, <c-p> no longer does that. Instead, <c-n> does that, and <c-p> behaves like <c-n> used to. If I let g:SuperTabDefaultCompletionType = "<c-n>", then <c-n> and <c-p> are back to normal (though the behavior of Tab is changed, of course).

Should SuperTab be modifying the behavior of <c-n> and <c-p>?

from supertab.

ervandew avatar ervandew commented on August 26, 2024

Yeah my description of <c-p> was a description of the vanilla vim behavior. Supertab does take control of those keys so that the behavior of <tab> equates to <c-n> and <s-tab> to <c-p> providing consistency throughout the completion. Ideally supertab would only map those keys when in completion mode, but aside from checking if the completion popup is visible (which some people may disable entirely) there is no way to determine if the user is in completion mode.

from supertab.

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.