Giter Site home page Giter Site logo

kakboard's People

Contributors

delapouite avatar leperdu avatar nnbnh avatar pound-hash avatar tomkpz avatar valpackett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kakboard's Issues

Performance improvement

kakboard/kakboard.kak

Lines 153 to 158 in 4cc87b2

while test $# -gt 0; do
escaped=$(echo "$1" | sed -e 's/</<lt>/')
echo map global normal "$1" \
"': kakboard-with-pull-clipboard $escaped<ret>'"
shift
done

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>'

kakboard_copy_keys not working as expected

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?

kakboard inserts unneeded newlines on Wayland

Using GNOME on Fedora 32. Every time I do a copy from Firefox, and paste it into kakoune, kakboard inserts unneeded newlines. Here is a picture showing this:
Ekran Görüntüsü - 2020-05-08 03-02-59

Seems to only occur when copying from Wayland applications, text copied from Xwayland applications don't behave this way.

Kakboard fails on Wayland

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.

MacOS pasting inserts unnecessary newlines

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):

  • Inserting with cmd+v inside Kakoune in insert mode inserts correctly
  • :echo %reg{"} correctly outputs this register without linefeed at the end
  • ! pbpaste and <alt-!> pbpaste correctly inserts a fragment on the same line

Automatically enabling kakboard

Hello!

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.

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.