Skip to content
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

Add Caps Word #51

Closed
8 tasks done
manna-harbour opened this issue Nov 30, 2021 · 18 comments
Closed
8 tasks done

Add Caps Word #51

manna-harbour opened this issue Nov 30, 2021 · 18 comments

Comments

@manna-harbour
Copy link
Owner

manna-harbour commented Nov 30, 2021

@BorjaLL
Copy link

BorjaLL commented Feb 25, 2022

any updates on this?

@manna-harbour
Copy link
Owner Author

any updates on this?

I expect to add it in the next few weeks. I've added some todos above so you can keep track of progress.

@BorjaLL
Copy link

BorjaLL commented Mar 2, 2022

I managed to add it here. https://github.com/BorjaLL/qmk_files/tree/main/crkbd/keymaps/borjall
maybe that's helpfull

@manna-harbour
Copy link
Owner Author

I managed to add it here. https://github.com/BorjaLL/qmk_files/tree/main/crkbd/keymaps/borjall maybe that's helpfull

Thanks, there are a few implementations for QMK, but https://getreuer.info/posts/keyboards/caps-word/ is definitely one of the candidates.

@getreuer
Copy link

There is progress on that implementation checklist!

@manna-harbour
Copy link
Owner Author

@getreuer Thanks for the QMK PR and the update! I'll try to have it ready for the 28th! For ZMK, it's been added in the middle of a bunch of implementation changes and new features and they'll be pushed all together in a few days.

@manna-harbour
Copy link
Owner Author

Caps Word is now available in Miryoku ZMK, see the Miryoku ZMK readme for details.

@azzamsa
Copy link
Sponsor

azzamsa commented Jun 27, 2022

Sorry to bump the issue without any meaningful help.

Any update for caps word QMK?

@manna-harbour
Copy link
Owner Author

@azzamsa The miryoku branch will be rebased on upsteam master and caps word added soon. I expect to be able to get to that in the next few weeks.

To try it now you can add CAPS_WORD_ENABLE = yes to custom_rules.mk, add #define DOUBLE_TAP_SHIFT_TURNS_ON_CAPS_WORD to custom_config.h, and merge or rebase on upstream master. You can do all those using the Miryoku QMK build workflows using CAPS_WORD_ENABLE = yes in rules, #define DOUBLE_TAP_SHIFT_TURNS_ON_CAPS_WORD in custom_config, and qmk/qmk_firmware/master in merge. Then hold a layer and double tap shift to activate. Here's a sample build run: https://github.com/manna-harbour/miryoku_qmk/actions/runs/2569133628. You can see the options used here: https://github.com/manna-harbour/miryoku_qmk/runs/7072594253?check_suite_focus=true#step:2:7.

To replace KC_CAPS with CAPS_WORD on Nav you'd have to substitute with a custom layer as described here: #85.

When it's added it will be as a replacement for caps lock with a shift function for regular caps lock, as seen in Miryoku ZMK.

@azzamsa
Copy link
Sponsor

azzamsa commented Jun 28, 2022

I got it working with VI navigation azzamsa/miryoku_qmk@4324456, but failed with caps word azzamsa/miryoku_qmk@caf66d3

Am I missing something?

@manna-harbour
Copy link
Owner Author

@azzamsa For caps word, first try only the "To try it now" paragraph above. You'll need to do the 3 things mentioned there exactly. See the example workflow options linked above.

If you don't use the workflow you'll still need the same 2 file changes but will need to rebase manually instead. If you want to do that, see https://github.com/manna-harbour/miryoku_qmk/blob/e9dfa7d007e9655ebe6ef7c22bc6112eb228782a/.github/workflows/main.yml#L60-L61 for how to drop the [local] commits first in order to avoid merge conflicts.

If that works, you can try the "To replace" paragraph. For that, what you have here https://github.com/azzamsa/miryoku_qmk/blob/caf66d38e870b6eddddeb8843bcefb61dc41036b/users/manna-harbour_miryoku/custom_config.h looks good except the macro name needs to be changed to MIRYOKU_LAYER_NAV here https://github.com/azzamsa/miryoku_qmk/blob/caf66d38e870b6eddddeb8843bcefb61dc41036b/users/manna-harbour_miryoku/custom_config.h#L8.

@azzamsa
Copy link
Sponsor

azzamsa commented Jun 30, 2022

@azzamsa For caps word, first try only the "To try it now" paragraph above. You'll need to do the 3 things mentioned there exactly. See the example workflow options linked above.

Yes, I have did those three things. The hardest thing is the merge conflict. Many of the GitHub workflows deleted upstream. So I just use magit feature to just use "their" state.

Now, I just need to add this change:

 #pragma once
 
-#define DOUBLE_TAP_SHIFT_TURNS_ON_CAPS_WORD \
+#define DOUBLE_TAP_SHIFT_TURNS_ON_CAPS_WORD
+
+#define MIRYOKU_LAYER_NAV \
 RESET,             DF(U_TAP),         DF(U_EXTRA),       DF(U_BASE),        U_NA,              U_RDO,             U_PST,             U_CPY,             U_CUT,             U_UND,             \
 KC_LGUI,           KC_LALT,           KC_LCTL,           KC_LSFT,           U_NA,              KC_LEFT,           KC_DOWN,           KC_UP,             KC_RGHT,           CAPS_WORD,         \
 U_NA,              KC_ALGR,           DF(U_NUM),         DF(U_NAV),         U_NA,              KC_HOME,           KC_PGDN,           KC_PGUP,           KC_END,            KC_INS,            \

Unfortunately, both caps lock and caps lock with shift becomes caps word.

I think I just need to wait couple of weeks for this feature. I don't want to bother your time.

@manna-harbour
Copy link
Owner Author

manna-harbour commented Jun 30, 2022

@azzamsa The workflows handle the merge automatically. If using magit you could interactive rebase and drop all [local] commits first, then there won't be any conflicts when merging with upstream master. Those commits only apply to the Miryoku QMK fork.

With DOUBLE_TAP_SHIFT_TURNS_ON_CAPS_WORD you can double tap shift (shift on sublayers are basic keycodes and can be tapped) to activate caps word. With the custom Nav you're replacing caps lock with caps word.

They are both just if you want to try out caps word now, with the minimum of changes. When I add it it'll be with the shift function for caps lock, but that will require using key overrides https://docs.qmk.fm/#/feature_key_overrides.

@azzamsa
Copy link
Sponsor

azzamsa commented Jun 30, 2022

Yes, I have tried it. It works well. :)

Now, I reverted my branch to get usual caps lock. Will wait the "official" release.

@getreuer
Copy link

Another update: Caps Word is now exposed in Oryx (announcement). So that addresses the implementation checkbox for Miryoku Oryx.

@manna-harbour
Copy link
Owner Author

@getreuer Excellent, thanks for the update! I love ticking those checkboxes! I'll try to add it to Miryoku QMK and Oryx next week (and tick more boxes! 😂).

@manna-harbour
Copy link
Owner Author

Caps Word in now available in Miryoku QMK in a temporary banch: https://github.com/manna-harbour/miryoku_qmk/tree/capsword-tmp. It'll be added to the miryoku branch in a couple of days. Thanks everyone for your patience!

@manna-harbour
Copy link
Owner Author

Caps Word in now used in place of Caps Lock in Miryoku QMK and Miryoku ZMK. Combine with Shift for Caps Lock.

KMonad doesn't support Caps Word, and Oryx doesn't support key overrides (for combining with Shift for Caps Lock), so those tasks have been moved to #90 and this issue will be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants