Skip to content

Commit 05b003d

Browse files
committed
update
1 parent 9877c97 commit 05b003d

10 files changed

Lines changed: 34 additions & 54 deletions

File tree

keyboards/beekeeb/piantor/keymaps/qkekos/general/custom_keys.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,11 @@ int custom_keys_pr(uint16_t keycode, keyrecord_t *record) {
8181
return false;
8282

8383
case US_RFSH:
84-
uprintf("qmk_language_swap: en\n");
84+
swap_to(ENG);
8585
current_lang = ENG;
8686

8787
layer_on(STURDY);
8888
layer_off(QWERTY);
89-
90-
enable_magic_training();
91-
enable_hard_training();
9289
autocorrect_enable();
9390

9491
return true;
@@ -101,14 +98,6 @@ int custom_keys_pr(uint16_t keycode, keyrecord_t *record) {
10198
if (record->event.pressed) toggle_alt_case_with(KC_LSFT, 0);
10299
return false;
103100

104-
case US_MGTR:
105-
if (record->event.pressed) toggle_magic_training();
106-
return false;
107-
108-
case US_HRTR:
109-
if (record->event.pressed) toggle_hard_training();
110-
return false;
111-
112101
case US_DPAS:
113102
if (record->event.pressed) send_lang_independant_string(DEFAULT_PASS);
114103
return false;

keyboards/beekeeb/piantor/keymaps/qkekos/general/custom_keys.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ enum blender_keycode {
1515
US_FNCE,
1616
US_SNKE,
1717
US_CAML,
18-
US_MGTR,
19-
US_HRTR,
2018
US_RFSH,
2119
US_DPAS,
2220
US_SPAS,

keyboards/beekeeb/piantor/keymaps/qkekos/keymap.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ void keyboard_pre_init_user(void) {
2828

2929
transaction_register_rpc(USER_SYNC_A, user_sync_a_slave_handler);
3030
lang_independant_init();
31-
enable_magic_training();
32-
enable_hard_training();
3331
}
3432

3533
void post_process_record_user(uint16_t keycode, keyrecord_t *record) {

keyboards/beekeeb/piantor/keymaps/qkekos/localization/__init__.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
#pragma once
33
#include "../__init__.h"
44

5-
#include "language_swapper.h"
6-
#include "lang_independant.h"
7-
85
enum languages {
96
ENG,
107
RU,
@@ -16,3 +13,6 @@ enum language_modes {
1613
DOUBLE,
1714
TRIPLE
1815
};
16+
17+
#include "language_swapper.h"
18+
#include "lang_independant.h"

keyboards/beekeeb/piantor/keymaps/qkekos/localization/language_swapper.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,16 @@ void swap_to(enum languages new_lang) {
2929
if (do_invert) {
3030
layer_invert(QWERTY);
3131
autocorrect_toggle();
32-
toggle_magic_training();
3332
}
3433
}
3534

3635
void tri_eng_tap_action(void) { swap_to(RU); }
3736
void tri_ru_tap_action(void) { swap_to(ENG); }
3837
void tri_ua_tap_action(void) { swap_to(ENG); }
3938

40-
void tri_eng_hold_action(void) { swap_to(UA); }
41-
void tri_ru_hold_action(void) { swap_to(UA); }
42-
void tri_ua_hold_action(void) { swap_to(RU); }
39+
void tri_eng_hold_action(void) { swap_to(RU); }
40+
void tri_ru_hold_action(void) { swap_to(ENG); }
41+
void tri_ua_hold_action(void) { swap_to(ENG); }
4342

4443
void double_ru_tap_action(void) { tri_ua_tap_action(); }
4544

keyboards/beekeeb/piantor/keymaps/qkekos/localization/language_swapper.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#pragma once
33
#include "../__init__.h"
44

5+
extern void swap_to(enum languages new_lang);
6+
57
extern void (*tri_tap_actions[])(void);
68
extern void (*tri_hold_actions[])(void);
79
extern void (*double_tap_actions[])(void);

keyboards/beekeeb/piantor/keymaps/qkekos/magic_sturdy/general.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,8 @@
44
uint16_t magic_keycode_cast(uint16_t keycode, keyrecord_t *record);
55
uint16_t magic_double_tap_cast(uint16_t keycode, keyrecord_t *record, uint16_t magic_key);
66

7-
bool is_training_mode_active = true;
8-
bool is_hard_mode_active = true;
9-
10-
void enable_magic_training(void) { is_training_mode_active = true; }
11-
void enable_hard_training(void) { is_hard_mode_active = true; }
12-
13-
void toggle_magic_training(void) { is_training_mode_active = !is_training_mode_active; }
14-
void toggle_hard_training(void) { is_hard_mode_active = !is_training_mode_active; }
15-
167
void sequence_transform_on_missed_rule_user(const st_trie_rule_t *rule) {
17-
if (!is_training_mode_active) return;
8+
189
}
1910

2011
int sturdy_pr(uint16_t keycode, keyrecord_t *record) {

keyboards/beekeeb/piantor/keymaps/qkekos/magic_sturdy/general.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@
33
#include "../__init__.h"
44

55
int sturdy_pr(uint16_t, keyrecord_t*);
6-
7-
void enable_magic_training(void);
8-
void enable_hard_training(void);
9-
10-
void toggle_magic_training(void);
11-
void toggle_hard_training(void);

keyboards/beekeeb/piantor/keymaps/qkekos/magic_sturdy/magic.txt

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ _theres -> there's
5959

6060
_isnt -> isn't
6161
_youv -> you've
62+
_mustv -> must've
6263
_havent -> haven't
64+
_mightv -> might've
6365

6466
// --------------------------------------A--------------------------------------
6567

@@ -587,16 +589,17 @@ _hopel -> hopefully
587589

588590
// --------------------------------------I--------------------------------------
589591

592+
_i@ -> I
590593
i@ -> ing
591594
i* -> ion
592595
ion* -> ional
593596

594-
_i@s -> instead
595-
_i@c -> incapable
596-
597597
_i@* -> include
598598
_i@*g -> including
599599

600+
_i@c -> incredible
601+
_i@cl -> incredibly
602+
600603
_i@t -> interest
601604
_i@td -> interested
602605
_i@tg -> interesting
@@ -635,8 +638,8 @@ _i*m -> inform
635638
_i*d -> informed
636639
_i*t -> information
637640

638-
_i@ -> I
639641
_is* -> issue
642+
_i@s -> instead
640643
_imp@ -> impossible
641644

642645
// --------------------------------------J--------------------------------------
@@ -707,8 +710,8 @@ m*@l -> mentality
707710
_mu* -> must
708711
_mu@ -> music
709712

710-
_m*o -> mention
711-
_m*l -> menthol
713+
_m*o -> mention
714+
_m*od -> mentioned
712715

713716
_mo* -> most
714717
_mo*l -> mostly
@@ -855,7 +858,7 @@ _deqn -> dequeuing
855858
_enqg -> enqueuing
856859

857860
_q* -> qmk
858-
_qol -> qol
861+
_qo* -> qol
859862
_qeq -> queen
860863
_quinq -> quintessential
861864

@@ -929,7 +932,11 @@ _seaq@ -> seasonal
929932
_sc* -> screen
930933
_sc*o -> screenshot
931934

935+
_sh@ -> should
936+
_shouldr -> shoulder
937+
932938
_s@* -> soon
939+
_s@n -> seen
933940
_s@e -> system
934941
_s@o -> symbol
935942

@@ -980,12 +987,10 @@ _st@c* -> statistics
980987
_st@ca -> statistically
981988

982989
_sq* -> sql
983-
_sn@ -> seen
984990
_sk@ -> skill
985991
_sti@ -> still
986992
_ser@ -> server
987993
_sc@ -> school
988-
_sh@ -> should
989994
_si@r -> singer
990995
_si@l -> single
991996
_str@ -> string
@@ -1009,6 +1014,7 @@ _ta@g -> taking
10091014
_(life)?ti* -> \1time
10101015
_ti*p -> timestamp
10111016

1017+
_tjj -> tj
10121018
_tj -> though
10131019
_tj@ -> thought
10141020
_trj -> through
@@ -1066,11 +1072,13 @@ _ufq -> unfortunate
10661072
_ufqy -> unfortunately
10671073

10681074
_up* -> update
1069-
_ug* -> upgrade
10701075
_up*@ -> updated
1071-
_ug*@ -> upgraded
10721076
_up*l -> updating
10731077

1078+
_ug* -> upgrade
1079+
_ug*@ -> upgraded
1080+
_ug*g -> upgrading
1081+
10741082
_unr@ -> unreal
10751083
_unr@d -> unrelated
10761084
_unr@t -> unrealistic
@@ -1165,12 +1173,11 @@ _z@ -> zone
11651173

11661174
// ------------------------------------RT_PR------------------------------------
11671175

1168-
_rt -> pr
1169-
_rtj -> rt
1170-
_rtx -> rtx
1171-
11721176
_rt@ -> pro
11731177

1178+
_rt* -> previous
1179+
_rt*o -> previously
1180+
11741181
_rt@o -> probably
11751182
_rt@o* -> probability
11761183

keyboards/beekeeb/piantor/keymaps/qkekos/tap_holds/general.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) {
8383
case HR_SAVE:
8484
case HR_CPLN:
8585
case HR_SRCH:
86+
case TH_LNAV:
87+
case TH_FUNC:
8688
return true;
8789
}
8890

0 commit comments

Comments
 (0)