Adding updates

This commit is contained in:
Ryan Bantz 2025-01-18 21:16:12 -06:00
parent e175c7ffcb
commit fa2655598d
2 changed files with 36 additions and 0 deletions

26
main.ts
View file

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

View file

@ -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);
}