mirror of
https://github.com/mryanb/obsidian-asana.git
synced 2026-07-22 05:38:24 +00:00
Adding updates
This commit is contained in:
parent
e175c7ffcb
commit
fa2655598d
2 changed files with 36 additions and 0 deletions
26
main.ts
26
main.ts
|
|
@ -114,6 +114,32 @@ export default class AsanaPlugin extends Plugin {
|
|||
.replace(/^\s*(?:[-*]\s*)?(?:\[[ xX]\]\s*)?/, '')
|
||||
.trim();
|
||||
|
||||
// Extract indented lines for the description
|
||||
// @TODO - Find a good way to handle descriptions
|
||||
// const cursor = editor.getCursor();
|
||||
// const lines = editor.getValue().split('\n'); // All lines in the editor
|
||||
// const taskLine = cursor.line;
|
||||
// let description = '';
|
||||
|
||||
// // Collect subsequent indented lines
|
||||
// for (let i = taskLine + 1; i < lines.length; i++) {
|
||||
// const line = lines[i];
|
||||
// if (/^\s+[-*]/.test(line)) {
|
||||
// // Indented list item, add to description
|
||||
// description += line.trim() + '\n';
|
||||
// } else if (line.trim() === '') {
|
||||
// // Empty line, continue looking for more indented lines
|
||||
// continue;
|
||||
// } else {
|
||||
// // No longer an indented line, stop processing
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
|
||||
// description = description.trim(); // Remove any trailing whitespace
|
||||
|
||||
// console.log(`Description: ${description}`);
|
||||
|
||||
// Prompt the user to select workspace, project, and section
|
||||
const taskDetails = await this.promptForTaskDetails();
|
||||
if (!taskDetails) {
|
||||
|
|
|
|||
10
style.css
10
style.css
|
|
@ -0,0 +1,10 @@
|
|||
.is-focused {
|
||||
background-color: var(--interactive-accent);
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
|
||||
|
||||
.is-focused-some-othertest {
|
||||
background-color: var(--interactive-accent);
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
Loading…
Reference in a new issue