My process for converting a TaskPaper doc to Bike is simply:
- Open the TaskPaper file in a text editor.
- Convert all instances of "
<tab>
-" to just “<tab>
” - Open in Bike!
Seems to work for my docs so far. Any suggestions/tips?
Thanks.
My process for converting a TaskPaper doc to Bike is simply:
<tab>
-" to just “<tab>
”Seems to work for my docs so far. Any suggestions/tips?
Thanks.
Yes, I think that makes sense to me.
Actually even easier might be:
And I guess you could even script the search and replace, if there were any number of files to bring over.
For example, with the language drop-down at top left in Script Editor set to JavaScript
, you could experiment, having pasted a sample TaskPaper file into Bike, with something like:
(() => {
"use strict";
// Ver 0.2
// --------------------- OPTIONS ---------------------
const pruneBullets = true;
const pruneColons = false;
// - DELETE TRAILLING COLONS AND OR LEADING BULLETS --
const
bike = Application("Bike"),
frontDoc = bike.documents.at(0);
return frontDoc.exists(0) ? (() => {
const
colon = /:$/gu,
bullet = /^- /gu,
rows = frontDoc.rows,
bulleted = pruneBullets ? rows.where({
name: {
_beginsWith: "- "
}
})() : [],
projects = pruneColons ? rows.where({
name: {
_endsWith: ":"
}
})() : [],
nBullets = bulleted.length,
nProjects = projects.length;
return (
projects.forEach(
x => x.name = x.name()
.replace(colon, "")
),
bulleted.forEach(
x => x.name = x.name()
.replace(bullet, "")
),
[
`Pruned ${nProjects} trailling colons`,
`${nBullets} leading bullets.`
].join(",\n")
);
})() : "No documents open in Bike.";
})();
Updated to version 0.2 above