MAC · 2026년 01월 07일 0

카라비너 컨트롤 조합 커서키 세팅

애플 단축키는 컨트롤 조합 커서 이동 키가 상당 부분 계승 돼 있는데요.

한글에서 유독 작동을 안합니다.

구름 쓰면 되지만 더 필요한 키들이 있어서 제미나이 갈궈서 카라비너 코드 짜봤어요

{

“description”: “한글 전용 Emacs 매크로”,

“manipulators”: [

{

“conditions”: [

{

“input_sources”: [{ “input_source_id”: “com.apple.inputmethod.Korean.2SetKorean” }],

“type”: “input_source_if”

}

],

“description”: “Control + D: 커서 오른쪽 글자 삭제”,

“from”: {

“key_code”: “d”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [{ “key_code”: “delete_forward” }],

“type”: “basic”

},

{

“conditions”: [

{

“input_sources”: [{ “input_source_id”: “com.apple.inputmethod.Korean.2SetKorean” }],

“type”: “input_source_if”

}

],

“description”: “Control + K: 줄 끝까지 삭제”,

“from”: {

“key_code”: “k”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [

{

“key_code”: “right_arrow”,

“modifiers”: [“left_command”, “left_shift”]

},

{ “key_code”: “delete_forward” }

],

“type”: “basic”

},

{

“conditions”: [

{

“input_sources”: [{ “input_source_id”: “com.apple.inputmethod.Korean.2SetKorean” }],

“type”: “input_source_if”

}

],

“description”: “Control + W: 단어 삭제”,

“from”: {

“key_code”: “w”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [

{

“key_code”: “left_arrow”,

“modifiers”: [“left_option”, “left_shift”]

},

{ “key_code”: “delete_or_backspace” }

],

“type”: “basic”

},

{

“conditions”: [

{

“input_sources”: [{ “input_source_id”: “com.apple.inputmethod.Korean.2SetKorean” }],

“type”: “input_source_if”

}

],

“description”: “Control + T: 글자 바꾸기”,

“from”: {

“key_code”: “t”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [

{

“key_code”: “left_arrow”,

“modifiers”: [“left_shift”]

},

{

“key_code”: “x”,

“modifiers”: [“left_command”]

},

{ “key_code”: “right_arrow” },

{

“key_code”: “v”,

“modifiers”: [“left_command”]

}

],

“type”: “basic”

},

{

“conditions”: [

{

“input_sources”: [{ “input_source_id”: “com.apple.inputmethod.Korean.2SetKorean” }],

“type”: “input_source_if”

}

],

“description”: “Control + [ : Escape”,

“from”: {

“key_code”: “open_bracket”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [{ “key_code”: “escape” }],

“type”: “basic”

},

{

“conditions”: [

{

“input_sources”: [{ “input_source_id”: “com.apple.inputmethod.Korean.2SetKorean” }],

“type”: “input_source_if”

}

],

“description”: “Control + N: 아래”,

“from”: {

“key_code”: “n”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [{ “key_code”: “down_arrow” }],

“type”: “basic”

},

{

“conditions”: [

{

“input_sources”: [{ “input_source_id”: “com.apple.inputmethod.Korean.2SetKorean” }],

“type”: “input_source_if”

}

],

“description”: “Control + P: 위”,

“from”: {

“key_code”: “p”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [{ “key_code”: “up_arrow” }],

“type”: “basic”

},

{

“conditions”: [

{

“input_sources”: [{ “input_source_id”: “com.apple.inputmethod.Korean.2SetKorean” }],

“type”: “input_source_if”

}

],

“description”: “Control + A: 맨 앞”,

“from”: {

“key_code”: “a”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [

{

“key_code”: “left_arrow”,

“modifiers”: [“left_command”]

}

],

“type”: “basic”

},

{

“conditions”: [

{

“input_sources”: [{ “input_source_id”: “com.apple.inputmethod.Korean.2SetKorean” }],

“type”: “input_source_if”

}

],

“description”: “Control + E: 맨 뒤”,

“from”: {

“key_code”: “e”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [

{

“key_code”: “right_arrow”,

“modifiers”: [“left_command”]

}

],

“type”: “basic”

},

{

“conditions”: [

{

“input_sources”: [{ “input_source_id”: “com.apple.inputmethod.Korean.2SetKorean” }],

“type”: “input_source_if”

}

],

“description”: “Control + B: 한 칸 뒤”,

“from”: {

“key_code”: “b”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [{ “key_code”: “left_arrow” }],

“type”: “basic”

},

{

“conditions”: [

{

“input_sources”: [{ “input_source_id”: “com.apple.inputmethod.Korean.2SetKorean” }],

“type”: “input_source_if”

}

],

“description”: “Control + F: 한 칸 앞”,

“from”: {

“key_code”: “f”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [{ “key_code”: “right_arrow” }],

“type”: “basic”

},

{

“conditions”: [

{

“input_sources”: [{ “input_source_id”: “com.apple.inputmethod.Korean.2SetKorean” }],

“type”: “input_source_if”

}

],

“description”: “Control + H: 백스페이스”,

“from”: {

“key_code”: “h”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [{ “key_code”: “delete_or_backspace” }],

“type”: “basic”

}

]

}

쓸데없는 코드도 있는 것 같은데 일단 타호에서 작동 잘 하네요.

추가로 아래 코드는 한,영 에서 작동하는 소프트 리턴이랑, 엔터입니다.

{

“description”: “Emacs 매크로: Ctrl+M(엔터), Ctrl+J(소프트 리턴)”,

“manipulators”: [

{

“description”: “Control + M: 일반 엔터 (Return)”,

“from”: {

“key_code”: “m”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [{ “key_code”: “return_or_enter” }],

“type”: “basic”

},

{

“description”: “Control + J: 소프트 리턴 (Shift + Enter)”,

“from”: {

“key_code”: “j”,

“modifiers”: { “mandatory”: [“left_control”] }

},

“to”: [

{

“key_code”: “return_or_enter”,

“modifiers”: [“left_shift”]

}

],

“type”: “basic”

}

]

}