アプリ版の段落操作をAlt基準にしてほしい
ツリーとしての編集ならば便利だなという場面が多々発生する
現在、スマホブラウザ版画面上部の位置操作ボタンの挙動はPC版のctrlでの挙動となっている
ctrl挙動はスペースやコピペ操作で事足りることが多い
一括インテンドUserScript実装した
code:Intend
/* Intends up */
scrapbox.PopupMenu.addButton({
title: text => {
return Intends up
},
onClick: (text) => {
const lines = text.split('\n');
const spacedLines = lines.map(line => ' ' + line);
return spacedLines.join('\n');
},
});
/* Intends down */
scrapbox.PopupMenu.addButton({
title: text => {
return Intends down
},
onClick: (text) => {
const lines = text.split('\n');
const trimmedLines = lines.map(line => line.replace(/^\s/, ''));
return trimmedLines.join('\n');
},
});
ブロック移動はコピペでいいか
こんなことしなくても選択→移動で普通にできるじゃん