Giter Site home page Giter Site logo

Comments (4)

sakhnik avatar sakhnik commented on April 28, 2024

It's pretty easy to define whatever keymaps desired. See which variables could be defined to tune the keymaps: :help NvimgdbVariables. But the use might be to limited for you.

One shortcoming of Vim is that it allows to defined only buffer-local keymaps, not window-local. Thus, this plugin sets and unsets the keymaps dynamically when a source window is entered and left respectively. The source.
Now, I'm thinking whether it's worth implementing customization hooks to allow users to define their own keybindings and workflows. A user would supply his own functions OnBufEnter, OnBufExit, OnTermInit, and the plugin would call them in the right moment. What do you reckon?

By the way, you may use <esc> to exit the term mode in this plugin.

from nvim-gdb.

MaskRay avatar MaskRay commented on April 28, 2024

:help NvimgdbVariables. But the use might be to limited for you.

Instead of a list of g:nvimgdb_key_until variables, is it more convenient to have a dictionary g:nvimgdb_key and define some common key themes (s:step; n:next; f:finish ...)?

But letter keys (s n ...) are not really able to redefine as it will interfere with normal commands.

Now, I'm thinking whether it's worth implementing customization hooks to allow users to define their own keybindings and workflows.

I presume you mean to have these keys when the focus is in the source window. I think it should be the best interface.

tnoremap <c->

Thanks! With the previous point, I think the debugger window should just stick in terminal mode and all single-key commands should be triggered in the source window.

from nvim-gdb.

sakhnik avatar sakhnik commented on April 28, 2024

Actually, Vim/NeoVim allows you to remap any keys, including built-in commands.
So let me design the interface a little bit first. We need to maintain the backward compatibility, so the individual variables will be maintained for a while.

from nvim-gdb.

sakhnik avatar sakhnik commented on April 28, 2024

The progress can be tracked in the branch keys.

from nvim-gdb.

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.