Giter Site home page Giter Site logo

Comments (4)

lePerdu avatar lePerdu commented on May 18, 2024

kakboard_copy_keys works by copying the contents of Kakoune's clipboard to the system clipboad after executing the key. Since <a-d> doesn't modify kakoune's clipboard, the last values copied will be sent to the system clipboard.

To get what you want, you will have to tell Kakboard to sync the clipboard in your own <a-d> mapping as such:

map global normal d <a-d>
map global normal c <a-c>
map global normal <a-d> ": kakboard-with-push-clipboard d<ret>"

set-option global kakboard_copy_keys y
# All this does is make the mapping:
# map global normal y ": kakboard-with-push-clipboard y<ret>"

from kakboard.

gustavo-hms avatar gustavo-hms commented on May 18, 2024

That works. Thanks!

Just a last clarification: by your explanation, I presume kakboard_copy_keys ignores mappings, otherwise <a-d> would in fact modify kakoune's clipboard, because it would be mapped to d. Is it right?

from kakboard.

lePerdu avatar lePerdu commented on May 18, 2024

kakboard-enable creates mappings for all of the keys in kakboard_copy_keys which override your existing ones. It used to use hooks, which would work with existing mappings, but that had its own problems (I can't remember exactly what atm).

from kakboard.

gustavo-hms avatar gustavo-hms commented on May 18, 2024

Hmm! This explains why it used to work...

Thank you!

from kakboard.

Related Issues (7)

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.