Comments (8)
I guess you mean adding features the existing "Taskwarrior" script at this repo by @fmakowski.
The task doesn't look very complex, but the script is. So it depends on your ability to understand script's logic and find that very place to insert few lines making it work for you.
First you need to define a detailed specification of what you want to archive. For me, not being a user of a Taskwarrior script and the app itself, it's not clear enough from your issue.
from scripts.
Yes... and sorry, I got the wrong contributor 😲... used to other exchanges on scripts.
Actually, the script recovers:
- task two +test
To transform it into :
task add task two tags:"test"
And I would like him to recover:
- task two +test due:2d
To transform it into :
task add task -test due:2d
But I fear that the difficulty comes from the variety of possible formats for the dates in Taskwarrior....
from scripts.
What if you'll feed it task two +test due:2d
or task two due:2d +test
now? Where will due:2d
go?
from scripts.
If I put
task two +test due:2d
I get a task with the tag "test due:2d"
If I put
task two due:2d +test
I get a task with the title "task two due:2d" but the right tag
from scripts.
I'm gonna start getting inspired by things from that side:
if (isTask) {
var tags = [];
taskDescription = isTask[1];
logIfVerbose("Detected task: " + taskDescription);
var fetchTag;
var tagExp = /^(.+)?[\s*]?\+(.+)$/;
var currentTaskDescription = taskDescription;
do {
logIfVerbose("Fetching tags...");
fetchTag = tagExp.exec(currentTaskDescription);
if (fetchTag) {
logIfVerbose("Tag " + fetchTag[2] + " found!");
tags.push(fetchTag[2]);
currentTaskDescription = fetchTag[1];
var re = new RegExp("\\+" + fetchTag[2].replace(/ /g, ''), "i");
taskDescription = taskDescription.replace(re,'');
} else
break;
} while(currentTaskDescription);
from scripts.
Grrr... Hard to adapt it.
from scripts.
@fmakowski any suggestion ?
from scripts.
I will close this issue until there is more information.
from scripts.
Related Issues (20)
- [FEATURE] WYSIWYG
- [BUG] Highlighted text in dark mode is not legible. HOT 7
- [FEATURE] Color selector menu for text highlighter HOT 4
- [SUPPORT] Script to automatically format the Markdown each save HOT 3
- [SUPPORT] Stuck trying to get Backlinks script to work HOT 4
- [SUPPORT] Mermaid diagrams script: theme configuration for sequenceDiagram HOT 6
- [BUG] Latex Math v0.0.6 script doesn't update pictures when color style is changed HOT 7
- [BUG] Toggle checkbox - checkbox where added in wrong place when autocreated from list HOT 5
- [FEATURE] Add video display support HOT 3
- [BUG] The "YAML nested tags" script breaks formatting and causing text lost in preview HOT 4
- [BUG] "exportFolder is not defined" in export-notes-as-website HOT 7
- [BUG] A Wiki Link to a note under notes sub-folder gives pop up "Note was not found" even if it exists HOT 4
- [SUPPORT] HOT 11
- [SUPPORT] HOT 2
- [SUPPORT] LateX Math results in very aliased images HOT 8
- adding favorite note script results with error " Expected a qualified name id"[BUG] HOT 10
- [SUPPORT] HOT 7
- [BUG] can't follow [[wiki linked]] file links that have spaces HOT 2
- [BUG] Scripts "export note as website" not working properly on Windows HOT 7
- [BUG] export note using pandoc not working on windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scripts.