joshgoebel
Repos
170
Followers
133
Following
15

Convert an entire folder of assets into a C header file intended for use with Arduino

18
1

Javascript syntax highlighter

Improved Highlight.js support for StackExchange / StackOverflow

A CLI/repl tool for Wren written in pure Wren (aMaP)

C
14
4

Arduboy2 library ported to WASM4

1
0

A simple, fast, and elegant Paste service.

Events

issue comment
(enh) Detect/Respect NumLock state for Numpad keys

Make a PR of this and push it. That'd be easiest way to help you I think.

Created at 1 day ago
issue comment
Request: Nested keymaps should have entry trigger/actions

I feel like this is thinking about it strangely... I think we just need to make it easier to control the "Return to parent":

C("Alt-Grave"): {
    Trigger.onEnter: C("Grave"),  # ` Leave accent character
    C("Alt-Grave"): [C("Grave"), remain_here_dont_return_parent],
    C("A"):  UC(0x00E0),  # à Latin Small a with Grave
},
Created at 1 day ago
issue comment
(enh) Detect/Respect NumLock state for Numpad keys

You're getting there. Have you done any Exercism or other Python exercises lately? You just need to pass the whole device now:

def on_event(event, device):

We don't need a default - device is mandatory... then later if you need name or path you just get them from device... piece of code that need access to LEDs (KeyContext) you can pass down the full device object... piece of code that don't you just change to reference device.name instead of the older variable, etc....

Created at 1 day ago
issue comment
One line fix for accessibility issue

tabindex="0" just means that it will follow the natural flow of the DOM.

Ah, right. In that case this seems a reasonable default.

It doesn't steal focus, it is just inserted into the list of tab-able items in the DOM.

Yeah, I was forgetting the behavior of 0...

Created at 1 day ago
issue comment
[BUG] Lock key LEDs turn off when keyszer bails, but lock key state doesn't change

I was asking if you can screw up the state of leds by unplugging and replugging regular old keyboArds.

Created at 2 days ago
issue comment
Request: Nested keymaps should have entry trigger/actions

Individual examples of these 3 things and how they might be used and behave would be helpful. Just looking at your last code snippet I have no idea what either is supposed to do exactly..

Created at 2 days ago
issue comment
(enh) Detect/Respect NumLock state for Numpad keys

The other thing is that the OS does seem to keep the lock key states latched to be the same no matter which keyboard ... You can turn a lock key "on" using one device and then "off" using a different keyboard. I don't think these keys were ever intended to be used independently "per device".

Thanks for this research!

Created at 2 days ago
issue comment
(enh) Detect/Respect NumLock state for Numpad keys

I tried to import the relevant class into key_context so that it could report the LED states there, but can't get the import reference to work.

I dunno what you mean... look at tranform.py lines 296-302... every time a key is hit we pass in the device name, and device_name is passed to KeyContext directly... if you need the whole device, just stat passing the device to on_event instead of the device_name... then you'll need to switch to device.name in a few places... and you'll now have device right inside KeyContext where you want it.

Created at 2 days ago
issue comment
[BUG] Lock key LEDs turn off when keyszer bails, but lock key state doesn't change

Can you confirm behavior with REAL physical keyboards? I mean stopping keyser is essentially unplugging a keyboard... I wonder if perhaps this is more of a kernel bug/issue than our problem (even if we might need to solve it)... We don't do anything in particular to change the LED states on close.

Created at 2 days ago
issue comment
What is the style that is in Chrome Debugger tools and can it be added if not available?

If Highlight.js is powering Chrome's debugger view that would come as a big surprise to me... so I have no idea what theme they are using - probably one of their own devising.

We have a TON of existing themes though - did you flip thru them all to see if there was anything similar?

New themes are always welcome: https://highlightjs.readthedocs.io/en/latest/theme-guide.html

Created at 2 days ago
issue comment
One line fix for accessibility issue

Are there any downsides here? Does this now make all code snippets "steal focus" if someone starts tabbing and they all have scrollable regions? Are there cases where someone might want tabindex=1000000 instead or to custom configure the index?

Created at 2 days ago
issue comment
(language name) Instructions unclear for how to import library missing files

https://highlightjs.readthedocs.io/en/latest/building-testing.html

Created at 2 days ago
issue comment
(language name) Instructions unclear for how to import library missing files

https://github.com/highlightjs/cdn-release/tree/11-stable

Created at 4 days ago
issue comment
How to run it as a semi-privileged user

See https://github.com/rbreaves/kinto/blob/master/linux/xkeysnail.service

You need to use xhost from the current logged in used to grant the keymapper user permission to access your X session.

/usr/bin/xhost +SI:localuser:keymapper

I think?

Created at 5 days ago
auto check doesn't seem to do anything
Please add some general information about your environment:
  • Operating System - Linux
  • Sublime Text version - lattest
  • Details about your config e.g. do you use rbenv, rvm or your_own_command to run rubocop? rbenv
Steps to reproduce:
  • modify a file and save multiple times
  • the linkt hints never change

They only change if I manually choose "Check current file" in which case it works fine. The console doesn't seem to have any logs or errors.

Created at 5 days ago
issue comment
How to run it as a semi-privileged user

Maybe su first. Then once you already have a shell prompt as key mapper try running it?

It's gonna be something really stupid simple. And it looks like bash is throwing the error, not keyszer.

Created at 6 days ago
issue comment
HTML language definition not included inside NPM package

XML is already aliased to HTML if you check supported languages.

Created at 6 days ago
issue comment
How to run it as a semi-privileged user

What is the full content of local bin keyszer?

Created at 1 week ago
issue comment
How to run it as a semi-privileged user

What is the shebang line? Does it exist on your system?

Created at 1 week ago
issue comment
HTML language definition not included inside NPM package

xml

Created at 1 week ago
issue comment
How to run it as a semi-privileged user

Yes, these input devices are secure pieces of the system. You need to run the command within udev - which should already be running as root.

Sudo should work though but it'll just break after you reboot.

Once you get the permissions correct are you running keyszer as the keymapper user?

Created at 1 week ago
issue comment
How to run it as a semi-privileged user

Did you setup and test your udev rules?

Created at 1 week ago

Fix typo (#73)

Created at 1 week ago
pull request closed
Fix typo

Changes

Checklist

  • [ ] Added tests (if necessary)
  • [X] Updated README...
Created at 1 week ago
issue comment
Highlight.js strips whitespace in pre tag

using textContent preserves spaces but still strips newlines.

Please provide a jsfiddle demonstrating this and I will review.

Created at 1 week ago
issue comment
Long press trigger key of multiple stroke keys

Please open an issue against my repo if you'd like support. Thanks.

PR for the typos would be great.

Created at 1 week ago
issue comment
Highlight.js strips whitespace in pre tag

It's the APIs you are using. Use textContent instead of innerText.

Created at 1 week ago
issue comment
Long press trigger key of multiple stroke keys

I also multi-map my pipe key to Hyper (for the right hand side), but it's still a bit buggy - haven't found the time to track it down yet.

Created at 1 week ago
issue comment
Long press trigger key of multiple stroke keys

I write the following config and it works fine

Yep, looks reasonable to me.

Make Emacs doesn't respond right ctrl

My fork keyszer allows you to define custom modifiers... so you could choose a key you're never going to use, declare it a REAL modifier and then multi-modmap semicolon to that... then keymap your custom modifier... without "cutting in" on any of your real modifiers...

I do this myself to create a Hyper key for all my Window Manager stuff:

https://github.com/joshgoebel/keyszer/wiki/Hyper

Then I modmap capslock to Hyper/F24 since I have no real F24 key.

Created at 1 week ago