Skip to content

Commit 0040e0c

Browse files
authored
Merge pull request #4 from imdone/0.0.8
Update hotkeys
2 parents 3ebe410 + b1b18b0 commit 0040e0c

File tree

9 files changed

+31
-37
lines changed

9 files changed

+31
-37
lines changed

.imdone/actions/board.js

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,4 @@
11
module.exports = function () {
22
const project = this.project
3-
return [
4-
{
5-
title: 'Duplicate card',
6-
keys: ['shift+d'],
7-
action: (task) => {
8-
const timestamp = project.isoDateWithOffset
9-
project.newCard({
10-
list: project.config.getDefaultList(),
11-
path: task.relPath,
12-
template: task.content.replace(/(\screated:).*(\s)/, `$1${timestamp}$2`),
13-
})
14-
project.toast({ message: `"${task.text}" duplicated` })
15-
}
16-
},
17-
{
18-
title: 'Copy card to clipboard',
19-
keys: ['c'],
20-
action: (task) => {
21-
return project.copyToClipboard(task.content, `"${task.text} markdown" copied to clipboard`)
22-
},
23-
},
24-
{
25-
title: 'Copy card title to clipboard',
26-
keys: ['mod+t'],
27-
action: (task) => {
28-
const title = project.renderMarkdown(task.text).replaceAll(/<\/*p>/gi, '')
29-
return project.copyToClipboard(title, `"${title}" copied to clipboard`)
30-
},
31-
},
32-
]
3+
return []
334
}

.imdone/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
keepEmptyPriority: false
12
code:
23
include_lists:
34
- TODO
@@ -42,6 +43,7 @@ lists:
4243
id: jea6177am3aec31t
4344
settings:
4445
openIn: default
46+
openCodeIn: default
4547
journalType: New File
4648
journalPath: backlog
4749
appendNewCardsTo: imdone-tasks.md
@@ -50,7 +52,7 @@ settings:
5052
plugins:
5153
devMode: false
5254
journalTemplate: null
53-
markdownOnly: true
55+
markdownOnly: false
5456
views: []
5557
name: "\U0001F680 imdone-code-companion (vs code extension)"
5658
kudosProbability: 0.33

.imdoneignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
.obsidian
22
.trash
33
.imdone/plugins
4+
node_modules
5+
backlog/archive
6+
out
7+
dist
8+
.vscode-test

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 0.0.8
4+
5+
- Change hotkey to `ctrl+shift+I` to avoid conflicts with other plugins and align with obsidian imdone plugin
6+
37
## 0.0.6
48

59
- Autocomplete for `#imdone` tags

backlog/features/Add-autocomplete-for-tags.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## #DOING :magic_wand: Add autocomplete for tags
22

3-
- [ ] Mention on imdone home page
3+
- [x] Mention on imdone home page
44
- [ ] Update gif to include autocomplete for tags
55

66
<!--

backlog/notes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## #NOTE Important Links
2+
3+
- [Manage Extensions | Visual Studio Marketplace](https://marketplace.visualstudio.com/manage/publishers/imdone)
4+
5+
<!--
6+
created:2025-01-09T00:18:09-05:00
7+
order:0
8+
-->
9+
10+

dist/extension.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "imdone-code-companion",
33
"displayName": "Imdone Code Companion",
44
"description": "Open TODO's in imdone kanban",
5-
"version": "0.0.7",
5+
"version": "0.0.8",
66
"publisher": "imdone",
77
"icon": "imdone-logo-128.png",
88
"repository": {
@@ -40,7 +40,7 @@
4040
"keybindings": [
4141
{
4242
"command": "imdone-code-companion.openCard",
43-
"key": "ctrl+i",
43+
"key": "ctrl+shift+i",
4444
"when": "editorTextFocus"
4545
}
4646
]

src/extension.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export async function activate(context: vscode.ExtensionContext) {
2222

2323
context.subscriptions.push(disposable);
2424
context.subscriptions.push(imdoneCompletionProvider);
25-
// Register the command to refresh TODO cards
2625
const refreshCards = vscode.commands.registerCommand('imdone-code-companion.refreshCards', () => {
2726
refreshTodoCards();
2827
});
@@ -37,6 +36,10 @@ export async function activate(context: vscode.ExtensionContext) {
3736
refreshTodoCards(); // Initial refresh on startup
3837
}
3938

39+
// TODO Update this to work more like the imdone obsidian plugin
40+
// <!--
41+
// order:-10
42+
// -->
4043
const imdoneCompletionProvider = vscode.languages.registerCompletionItemProvider(
4144
{ scheme: 'file', pattern: '**/*' },
4245
{
@@ -74,7 +77,6 @@ const imdoneCompletionProvider = vscode.languages.registerCompletionItemProvider
7477
'#' // Trigger on `#`
7578
);
7679

77-
// Main function to refresh TODO card decorations
7880
async function refreshTodoCards() {
7981

8082
const editor = vscode.window.activeTextEditor;

0 commit comments

Comments
 (0)