Skip to content

Commit 9015dc4

Browse files
author
2Cas
committed
Fixed console output in GUI and yaml output
Should be a bit better visually now.
1 parent bbbaef9 commit 9015dc4

File tree

5 files changed

+35
-33
lines changed

5 files changed

+35
-33
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Description
22
```
33
Q2K Keymap Parser
4-
ver. 1.1.0.a2 (Pre-Alpha)
4+
ver. 1.1.1.a1 (Pre-Alpha)
55
by 2Cas (c) 2018
66
```
77

bin/Win/q2k_util.exe

-1.74 KB
Binary file not shown.

q2k/core.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -695,15 +695,17 @@ def __find(self):
695695
try:
696696
with open(self.__loc, 'r') as f:
697697
self.kbo_list = yaml.load(f)
698-
self.__console.note(['Using cached list from '+self.__loc, '--cache to reset', defaults.print_lines])
698+
self.__console.note(['Using cached list from '+self.__loc, '--cache to reset'])
699699
except:
700-
self.__console.warning(['Failed to load from '+self.__loc, 'Generating new cache_kb.yaml...'])
700+
self.__console.warning(['Failed to load from '+self.__loc])
701701
self.__write()
702702
else:
703703
self.__write()
704704

705705
def __write(self):
706706

707+
self.__console.note([defaults.print_lines, 'Generating new cache_kb.yaml in '+self.__loc])
708+
707709
templist = []
708710
keymaplist = []
709711
qdir = os.path.join(self.__qmk, 'keyboards')
@@ -812,9 +814,9 @@ def __write(self):
812814
if self.kbo_list:
813815
# Dump cache info to text file for faster processing in future
814816
self.__save_cache()
815-
self.__console.note(['New cache_kb.yaml successfully generated', 'Location: '+self.__loc, defaults.print_lines])
817+
self.__console.note(['New cache_kb.yaml successfully generated', 'Location: '+self.__loc])
816818
else:
817-
self.__console.warning(['No keyboard information found', 'Check QMK directory location in pref.yaml : '+self.__qmk, defaults.print_lines])
819+
self.__console.warning(['No keyboard information found', 'Check QMK directory location in pref.yaml : '+self.__qmk])
818820

819821

820822
def __find_layout_names(self, kbo):

q2k/reference.py

+27-27
Original file line numberDiff line numberDiff line change
@@ -633,41 +633,41 @@ class ref:
633633
---
634634
<ERRORS>
635635
636-
report_mode: auto_nkro # options: auto_nkro, 6kro, nkro
636+
report_mode : auto_nkro # options: auto_nkro, 6kro, nkro
637637
638-
devices:
639-
<KB_NAME>:
640-
id: 0
641-
layout: <LAYOUT_NAME>
642-
layout_offset: 0
643-
scan_mode:
644-
mode: col_row # options: col_row, pins, none
645-
rows: <ROWS>
646-
cols: <COLS>
638+
devices :
639+
<KB_NAME> :
640+
id : 0
641+
layout : <LAYOUT_NAME>
642+
layout_offset : 0
643+
scan_mode :
644+
mode : col_row # options: col_row, row_col, pins, none
645+
rows : <ROWS>
646+
cols : <COLS>
647647
# Maps how keys are physically wired, to how they appear visually
648-
matrix_map: [
648+
matrix_map : [
649649
<MATRIX_MAP>
650650
]
651651
# Debounce settings
652-
debounce:
653-
debounce_time_press: 5
654-
debounce_time_release: 5
655-
trigger_time_press: 1
656-
trigger_time_release: 1
657-
parasitic_discharge_delay_idle: 10.0
658-
parasitic_discharge_delay_debouncing: 10.0
652+
debounce :
653+
debounce_time_press : 5
654+
debounce_time_release : 5
655+
trigger_time_press : 1
656+
trigger_time_release : 1
657+
parasitic_discharge_delay_idle : 10.0
658+
parasitic_discharge_delay_debouncing : 10.0
659659
<KEYCODES>
660-
layouts:
660+
layouts :
661661
<LAYOUT_NAME> :
662-
default_layer: 0
663-
layers: [
662+
default_layer : 0
663+
layers : [
664664
<LAYOUT> ]
665665
'''
666666

667667
keyplus_yaml_keycode_template = '''
668-
<KEYCODE>:
669-
keycode: hold
670-
delay: 200
671-
tap_key: <TAP>
672-
hold_key: <HOLD>
673-
'''
668+
<KEYCODE> :
669+
keycode : hold
670+
delay : 200
671+
tap_key : <TAP>
672+
hold_key : <HOLD>
673+
'''

q2k/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
q2kversion = '1.1.0.a2'
1+
q2kversion = '1.1.1.a1'

0 commit comments

Comments
 (0)