mirror of
https://github.com/takitsuba/obsidian-auto-bullet.git
synced 2026-07-22 05:42:45 +00:00
translate comments to English
This commit is contained in:
parent
fa14a379e1
commit
c0baec641b
1 changed files with 2 additions and 2 deletions
4
main.ts
4
main.ts
|
|
@ -38,11 +38,11 @@ export default class AutoBulletPlugin extends Plugin {
|
|||
const cursor = editor.getCursor();
|
||||
const line = editor.getLine(cursor.line);
|
||||
|
||||
// バレットポイントの行の場合は「- 」の後ろにカーソルを移動
|
||||
// If this is a bullet point line, move the cursor after the bullet (- )
|
||||
if (line.trim().startsWith('- ')) {
|
||||
this.moveCursorAfterBullet(editor);
|
||||
} else {
|
||||
// 通常の行の場合は行の先頭にカーソルを移動(標準のCtrl+Aと同様)
|
||||
// For normal lines, move cursor to the beginning of the line (similar to standard Ctrl+A behavior)
|
||||
editor.setCursor({ line: cursor.line, ch: 0 });
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue