New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: add a "check" command to check config #689
Comments
It's always great to hear feeback, especially from new users. +1 to the If you're after that quick feeback loop to see what works and doesn't I can't recommend my vscode-kanata extension enough, even if you normally don't use vscode. I'll let others comment on other parts of your feedback. |
I can't reproduce this, having mismatched counts generates errors for me.
I think it's fine to add a default name for
Do you mean syntax highlighting? I haven't tested this myself and have some concerns about how well it would work since kanata does not aim to be compatible with kmonad. But maybe it's fine to add to the related projects section with a warning note that it's not intended for kanata.
It's intended to be 3 lines today, but I guess since the lines are too long, they're getting reflowed by your logging system. I'm happy to accept PRs to improve the error messaging - what exists now is a balance I was personally happy to accept between discoverability of documentation+help, verbosity, and ease of implementation. I guess some easy improvements would be:
For numbering and dedicated pages or other adjacent improvements, I think it would be an improvement but not one I will be personally making any time soon.
I see jian-lin has responded on that thread. They are much more knowledgeable than I on the topic of nixos (I have zero experience with it). I am the primary maintainer of the kanata software itself, but I don't manage any of the package repositories. |
For the main request, as rszyma mentioned, it should be fairly simple to implement. Would need to call: from somewhere around here (or maybe somewhere else is better, but it's at least fine to have here) based on a some new clap arg logic: |
I confess I kinda skipped that since I favor nvim. Just tried it since I have vscode too. The plugin asked for my variant "Local Keys Variant" but I think it could autodetect this from my platform or scan the file ?
ok sry to have made you lose time, if I can reproduce I will open a dedicated issue. Might have been my imagination. I opened this to add "right" #690 I will let more competent users see how to implement a "check" command. |
Surely automatic detection could be done. I just haven't gotten yet to implement it. If you have any further suggestions regarding vscode-kanata, it's better to continue discussion in a new issue in extension repo, not here. |
Before this patch, checking the config file is done at runtime. Doing so at build time shortens the feedback loop[1][2]. [1]: NixOS#278135 [2]: jtroo/kanata#689
Before this patch, checking the config file is done at runtime. Doing so at build time shortens the feedback loop[1][2]. [1]: NixOS#278135 [2]: jtroo/kanata#689
Is your feature request related to a problem? Please describe.
hi,
thanks for writing this complex of a software. This is my first time dealing with this kind of software.
I was expecting it to be hard, because I didn't know (still dont) what mappings I wanna use.
But I had some trouble with the configuration itself.
The main thing I would like to have may be a command that can check the config without running kanata, just to be able to test a few things without incapacating the keyboard (eevn though one can do lctrl+space+esc). It would also help shorten the feedback loop in systems like nixos, where nixos builds the full system (slow) then starts services and I end up discovering errors at runtime. If I could check the config statically earlier, the error could appear earlier in the process.
Describe the solution you'd like.
adding a
kanata check
commandDescribe alternatives you've considered.
start kanata and kill it fast, but no way to know when to kill it apart from waiting.
Additional context
I'ev also noted some things along the way
but with all the errors I had, it was detrimental to readibility, would be best to keep it in 1/2 lines IMO or on improing error messages (they could have a number and dedicated pages like shellcheck)
5. the nixos service for kanata looks complex: NixOS/nixpkgs#278135 might be worth having one upstream to see the recommended configuration
Maybe some of my comments are misguided. Just wanted to give a noob perspective. Understanding that I didn't need to map every key in defsrc was a "wow" moment as well.
The text was updated successfully, but these errors were encountered: