UPD.
Just found a solution.
Plugin Hotkeys++
Edit main.js inside the plugin folder
Add secton:
this.addCommand({
id: 'tbookmarks',
name: 'Task bookmarks',
callback: function () { return _this.tbookmark(); },
hotkeys: [
{
modifiers: ['Mod', 'Shift'],
key: 'b',
},
],
});
and
HotkeysPlus.prototype.tbookmark = function () {
var view = this.app.workspace.getActiveViewOfType(obsidian.MarkdownView);
if (!view) return;
var editor = view.editor;
// Вставляем текст
var textToInsert = "- [b] "; // Замените на нужный текст
var cursor = editor.getCursor();
editor.replaceRange(textToInsert, cursor);
editor.setCursor(cursor.line, cursor.ch + textToInsert.length);
};
Now you can add text - [b] to any place by Ctrl+Shift+b
You can modify main.js as you wish