Sublime Forum

Keyboard shortcut key not working for a defined macro with it

#1
  1. Oral communication is

a) the exchange of information or ideas between two or more people
b) act of expressing thoughts in a manner that others understand
c) a & b
d) None of the above

Ans : c

  1. Monologue

a) is a Greek word
b) speech presented by an individual
c) a & b
d) None of the above

Ans : c

========================
I would like to achieve following three functionalities using sublime:
(1) Delete blank line under (1
(2) Joing vertical options a), b), c), d) into horizontal one.
(3) Delete blank line below “Ans:” text

Like:

  1. Oral communication is
    a) the exchange of information or ideas between two or more people b) act of expressing thoughts in a manner that others understand c) a & b d) None of the above
    Ans : c

  2. Monologue

a) is a Greek word
b) speech presented by an individual
c) a & b
d) None of the above

Ans : c

Macro recorded with name : join4.sublime-macro

[
{
“args”: null,
“command”: “right_delete”
},
{
“args”:
{
“by”: “lines”,
“extend”: true,
“forward”: true
},
“command”: “move”
},
{
“args”:
{
“by”: “lines”,
“extend”: true,
“forward”: true
},
“command”: “move”
},
{
“args”:
{
“by”: “lines”,
“extend”: true,
“forward”: true
},
“command”: “move”
},
{
“args”:
{
“by”: “lines”,
“extend”: true,
“forward”: true
},
“command”: “move”
},
{
“args”: null,
“command”: “join_lines”
},
{
“args”:
{
“by”: “characters”,
“forward”: true
},
“command”: “move”
}
]

[B] Keyboard keys assigned ==> ctrl+4
B.1
[
{“Keys”: [“ctrl+4”],
“command”: “run_macro_file”,“args”: {“file”: “Packages/User/Join4.sublime-macro”}
}
]
B.2
[
{“Keys”: [“ctrl+4”],
“command”: “run_macro_file”,“args”: {“file”: “res://Packages/User/Join4.sublime-macro”}
}
]

I tried both options B.1 & B.2 but the assigned keyboard keys combination is not working.

I am a senior citizen from India (Vadodara), sending my first query to the forum.

Kindly help me to resolve the problem as I have 50 such pages with such options vertically written. I want to make it horizontal so that number of pages can be reduced while printing.
The material is to be distributed to my students as I am conducting personal tution.

Thanks well in advance.

Raju Padaria
Vadodara (Gujarat)
India

0 Likes