|
12.
|
|
|
Trims leading whitespace from selection or whole document.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
script/data/utils.js:312
|
|
13.
|
|
|
Trims leading and trailing whitespace from selection or whole document.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
script/data/utils.js:314
|
|
14.
|
|
|
Joins selected lines or whole document. Optionally pass a separator to put between each line:<br><code>join ', '</code> will e.g. join lines and separate them by a comma.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
script/data/utils.js:316
|
|
15.
|
|
|
Removes empty lines from selection or whole document.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
script/data/utils.js:318
|
|
16.
|
|
|
Given a JavaScript function as argument, call that for the list of (selected) lines and replace them with the return value of that callback.<br>Example (join selected lines):<br><code>each 'function(lines){return lines.join(", ");}'</code><br>To save you some typing, you can also do this to achieve the same:<br><code>each 'lines.join(", ")'</code>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
script/data/utils.js:322
|
|
17.
|
|
|
Given a JavaScript function as argument, call that for the list of (selected) lines and remove those where the callback returns false.<br>Example (see also <code>rmblank</code>):<br><code>filter 'function(l){return l.length > 0;}'</code><br>To save you some typing, you can also do this to achieve the same:<br><code>filter 'line.length > 0'</code>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
script/data/utils.js:324
|
|
18.
|
|
|
Given a JavaScript function as argument, call that for the list of (selected) lines and replace the line with the return value of the callback.<br>Example (see also <code>ltrim</code>):<br><code>map 'function(line){return line.replace(/^\s+/, "");}'</code><br>To save you some typing, you can also do this to achieve the same:<br><code>map 'line.replace(/^\s+/, "")'</code>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
script/data/utils.js:326
|
|
19.
|
|
|
Duplicates the selected lines up.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
script/data/utils.js:328
|
|
20.
|
|
|
Duplicates the selected lines down.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
script/data/utils.js:330
|
|
21.
|
|
|
Unable to find '%1'
|
|
|
|
(no translation yet)
|
|
|
|
Located in
script/katescript.cpp:93
|