mirror of
https://github.com/tekknoman/obsidian-prio-plugin.git
synced 2026-07-22 07:30:23 +00:00
fix(hotkeys): removing default hotkeys
This commit is contained in:
parent
b309c68473
commit
02fdcc0ba8
4 changed files with 9 additions and 32 deletions
24
main.ts
24
main.ts
|
|
@ -42,13 +42,7 @@ export default class PrioPlugin extends Plugin {
|
|||
name: 'Set priority',
|
||||
editorCallback: (editor: Editor, view: MarkdownView) => {
|
||||
setPrio(editor, view, this.settings);
|
||||
},
|
||||
hotkeys: [
|
||||
{
|
||||
modifiers: ['Ctrl', 'Shift', 'Alt'],
|
||||
key: 'p',
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
this.addCommand({
|
||||
|
|
@ -56,13 +50,7 @@ export default class PrioPlugin extends Plugin {
|
|||
name: 'Remove priority',
|
||||
editorCallback: (editor: Editor, view: MarkdownView) => {
|
||||
removePrio(editor, view, this.settings);
|
||||
},
|
||||
hotkeys: [
|
||||
{
|
||||
modifiers: ['Ctrl', 'Shift', 'Alt'],
|
||||
key: 'd',
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
this.addCommand({
|
||||
|
|
@ -70,13 +58,7 @@ export default class PrioPlugin extends Plugin {
|
|||
name: 'Increase priority',
|
||||
editorCallback: (editor: Editor, view: MarkdownView) => {
|
||||
increasePrio(editor, view, this.settings);
|
||||
},
|
||||
hotkeys: [
|
||||
{
|
||||
modifiers: ['Ctrl', 'Shift', 'Alt'],
|
||||
key: 'ArrowUp',
|
||||
}
|
||||
]
|
||||
});
|
||||
// This adds a complex command that can check whether the current state of the app allows execution of the command
|
||||
this.addCommand({
|
||||
|
|
@ -84,13 +66,7 @@ export default class PrioPlugin extends Plugin {
|
|||
name: 'Decrease priority',
|
||||
editorCallback: (editor: Editor, view: MarkdownView) => {
|
||||
decreasePrio(editor, view, this.settings);
|
||||
},
|
||||
hotkeys: [
|
||||
{
|
||||
modifiers: ['Ctrl', 'Shift', 'Alt'],
|
||||
key: 'ArrowDown',
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
// This adds a settings tab so the user can configure various aspects of the plugin
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "prioritize",
|
||||
"name": "Prioritize",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Prioritize your tasks and notes in Obsidian.",
|
||||
"author": "EloiMusk",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-sample-plugin",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{
|
||||
"1.0.1": "0.15.0",
|
||||
"1.0.0": "0.15.0"
|
||||
}
|
||||
Loading…
Reference in a new issue