fix(hotkeys): removing default hotkeys

This commit is contained in:
EloiMusk 2023-03-16 07:48:44 +01:00
parent b309c68473
commit 02fdcc0ba8
No known key found for this signature in database
GPG key ID: A59863E13934DD4F
4 changed files with 9 additions and 32 deletions

24
main.ts
View file

@ -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

View file

@ -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",

View file

@ -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": {

View file

@ -1,3 +1,4 @@
{
"1.0.1": "0.15.0",
"1.0.0": "0.15.0"
}