leperdu / kakboard Goto Github PK
View Code? Open in Web Editor NEWClipboard integration for Kakoune
License: MIT License
Clipboard integration for Kakoune
License: MIT License
Lines 153 to 158 in 4cc87b2
This and the next loop add about 50ms total to startup time. If we define these commands manually using map
: str-list kakboard_paste_keys p P R <a-p> <a-P> <a-R>
then it goes down to under 5ms.
I'm not asking for anything in particular, but this might be useful to someone.
My config for reference:
set global kakboard_copy_cmd 'xclip -in -selection clipboard'
set global kakboard_paste_cmd 'xclip -out -selection clipboard'
map global normal y ': kakboard-with-push-clipboard y<ret>'
map global normal c ': kakboard-with-push-clipboard c<ret>'
map global normal d ': kakboard-with-push-clipboard d<ret>'
map global normal p ': kakboard-with-pull-clipboard p<ret>'
map global normal P ': kakboard-with-pull-clipboard P<ret>'
map global normal R ': kakboard-with-pull-clipboard R<ret>'
Hi!
I don't like that Kakoune set "
register when executing d
and c
keys. It's counter intuitive to me and, as such, quite annoying. It's a behaviour I don't understand Kakoune ported from vi. So, I have the following mappings:
map global normal <a-d> d
map global normal d <a-d>
map global normal c <a-c>
It's a personal preference, so it's OK if you don't like it.
If I have this plugin disabled, these mappings work well. But obviously they don't work with the plugin enabled. So, I tried to set kakboard_copy_keys
like this:
set-option global kakboard_copy_keys <a-d> y
Pressing y
works as expected, but nothing is copied to clipboard when pressing <a-d>
. How can I make <a-d>
copies to clipboard?
Hi! I'm on Ubuntu running Gnome inside a Wayland session, with wl-clipboard
installed. Any attempt to copy to clipboard or paste from it fails. If, for instance, I try to copy something from Kakoune, the following message appears on the *debug*
buffer:
shell stderr: <<<
Failed to connect to a Wayland server
>>>
On the other hand, if I run wl-copy something
manually from a terminal, it just works.
Can it be, perhaps, a configuration issue?
Thanks in advance.
Only the last selection is pasted, even with <a-p>
.
I use MacOS with pbcopy/pbpaste combination. No matter if I copy the whole line with a linefeed or just a fragment of a line, when I paste, it inserts it on the line after or line before, not at the place of my cursor.
I guess it has something to do with automatic changing behaviour when a copied line contains a linefeed https://github.com/mawww/kakoune/wiki/Registers---Clipboard#linewise-vs-characterwise
But from my testing this is not the case (assuming I copied a fragment of a line):
:echo %reg{"}
correctly outputs this register without linefeed at the end! pbpaste
and <alt-!> pbpaste
correctly inserts a fragment on the same lineHello!
I'm having a problem with enabling kakboard on startup. When I add kakboard-enable
to kakrc
, I get the following error:
~/.config/kak/kakrc:2:1: 'kakboard-enable' 2:5: 'set-option' no window in context
/usr/share/kak/kakrc:28:1: 'evaluate-commands' 107:1: 'source' 2:1: 'kakboard-enable' 2:5: 'set-option' no window in context
error while parsing kakrc:
1:1: 'source' 28:1: 'evaluate-commands' 107:1: 'source' 2:1: 'kakboard-enable' 2:5: 'set-option' no window in context
Setting the declare-option -hidden bool kakboard_enabled
option from false
to true
in kakboard.kak
makes no discernible difference either (if it's supposed to make any).
Note that I installed kakboard manually without the plugin manager.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.