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
32
main.ts
32
main.ts
|
|
@ -42,13 +42,7 @@ export default class PrioPlugin extends Plugin {
|
||||||
name: 'Set priority',
|
name: 'Set priority',
|
||||||
editorCallback: (editor: Editor, view: MarkdownView) => {
|
editorCallback: (editor: Editor, view: MarkdownView) => {
|
||||||
setPrio(editor, view, this.settings);
|
setPrio(editor, view, this.settings);
|
||||||
},
|
}
|
||||||
hotkeys: [
|
|
||||||
{
|
|
||||||
modifiers: ['Ctrl', 'Shift', 'Alt'],
|
|
||||||
key: 'p',
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.addCommand({
|
this.addCommand({
|
||||||
|
|
@ -56,13 +50,7 @@ export default class PrioPlugin extends Plugin {
|
||||||
name: 'Remove priority',
|
name: 'Remove priority',
|
||||||
editorCallback: (editor: Editor, view: MarkdownView) => {
|
editorCallback: (editor: Editor, view: MarkdownView) => {
|
||||||
removePrio(editor, view, this.settings);
|
removePrio(editor, view, this.settings);
|
||||||
},
|
}
|
||||||
hotkeys: [
|
|
||||||
{
|
|
||||||
modifiers: ['Ctrl', 'Shift', 'Alt'],
|
|
||||||
key: 'd',
|
|
||||||
}
|
|
||||||
]
|
|
||||||
})
|
})
|
||||||
|
|
||||||
this.addCommand({
|
this.addCommand({
|
||||||
|
|
@ -70,13 +58,7 @@ export default class PrioPlugin extends Plugin {
|
||||||
name: 'Increase priority',
|
name: 'Increase priority',
|
||||||
editorCallback: (editor: Editor, view: MarkdownView) => {
|
editorCallback: (editor: Editor, view: MarkdownView) => {
|
||||||
increasePrio(editor, view, this.settings);
|
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 adds a complex command that can check whether the current state of the app allows execution of the command
|
||||||
this.addCommand({
|
this.addCommand({
|
||||||
|
|
@ -84,13 +66,7 @@ export default class PrioPlugin extends Plugin {
|
||||||
name: 'Decrease priority',
|
name: 'Decrease priority',
|
||||||
editorCallback: (editor: Editor, view: MarkdownView) => {
|
editorCallback: (editor: Editor, view: MarkdownView) => {
|
||||||
decreasePrio(editor, view, this.settings);
|
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
|
// This adds a settings tab so the user can configure various aspects of the plugin
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"id": "prioritize",
|
"id": "prioritize",
|
||||||
"name": "Prioritize",
|
"name": "Prioritize",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"minAppVersion": "0.15.0",
|
"minAppVersion": "0.15.0",
|
||||||
"description": "Prioritize your tasks and notes in Obsidian.",
|
"description": "Prioritize your tasks and notes in Obsidian.",
|
||||||
"author": "EloiMusk",
|
"author": "EloiMusk",
|
||||||
"authorUrl": "https://github.com/EloiMusk/",
|
"authorUrl": "https://github.com/EloiMusk/",
|
||||||
"fundingUrl": "https://www.buymeacoffee.com/eloimusk",
|
"fundingUrl": "https://www.buymeacoffee.com/eloimusk",
|
||||||
"isDesktopOnly": true
|
"isDesktopOnly": true
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "obsidian-sample-plugin",
|
"name": "obsidian-sample-plugin",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
|
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
|
"1.0.1": "0.15.0",
|
||||||
"1.0.0": "0.15.0"
|
"1.0.0": "0.15.0"
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue