Thanks and, sharing code


#1

Thanks @jessegrosjean for your continued updates with TaskPaper. As my small way of saying thanks, I am sharing my current day to day working less code.

As I have posted previously, I primarily use Taskpaper as a tool for writing. I have to sort through huge legal stacks of information, make arguments, flag other peoples arguments that I need to object to, etc. All this and I am not even a lawyer, just a vet fighting the VA for justice in his records and in his claims.

Obviously my code can be improved on. For example, I prefer to write color values one way:

color: mix(black, white, 70%);

And others will prefer to write color values another way;

color: rgb(92%,92%,92%);

The main idea of this is that I use TaskPaper less as a todo list, and more as a tool for looking through writing projects as I am developing them. To that end, I am using tags that simulate formatting. I understand that in a plain text environment like TaskPaper, formatting is not really going to be the point for many users.

For me, formatting helps ideas to stand out, especially when I am slogging through many pages of information and trying not to loose track of an idea I am gathering.

Of course putting tags with project specific references also makes pulling all the various reference points together by clicking on any one of them, a breeze. This is similar to what I would normally have to use a database for. I would have to set up query fields in a database. I love how easy it is to use TaskPapers tools for doing research. I know that was not what it was designed for but, I am a very happy customer just the same.

Added: The following example fo the code that I use daily in my Taskpaper work is what I am using now for my daily work with documents. It has a beige background and a relatively large (20 pt) type face is so it is easy on my eyes. I use a vertical monitor so that I can see more or less a full page of a document at the same time.

This less file is for display on a monitor only. It is not what I use if I print a page. Taskpaper defaults to a different less file for printing. Taskpaper does not use any pagination that I have seen (no page breaks) so I don’t normally print out of TaskPaper anyway. I would if I could but … I can’t so I don’t. I use Taskpaper for organizing large papers. It’s easy enough to copy/past and use Notes for walking around with the idea or use Nisus for my final drafts, printing, etc.

Enjoy:

// -----------------------------------------
// -- Sets Document Basics.
// -----------------------------------------

@tint-color: mix(black, orange, 40%);
@background-color: mix(orange, beige, 15%);
@selection-color: mix(@tint-color, @background-color, 50%);
@invisibles-color: mix(@tint-color, @background-color, 100%);
@searchbar-background-color: rgb(92%,92%,92%);
@searchbar-error-text-color: rgb(100%,0%,0%);

// -----------------------------------------
// -- Sets Document Appearance.
// -----------------------------------------

window {
appearance: NSAppearanceNameVibrantLight;
}

editor {
guide-line-color: mix(@tint-color, @background-color, 45%);
}

item {
handle-color: mix(black, white, .1%);
}

item[filtered] {
handle-color: mix(black, green, 80%);
}

// -----------------------------------------
// -- Changes the Project Title Font.
// -----------------------------------------

item[data-type=project]{
color: mix(green,blue, 50%);
paragraph-spacing-before: 5;
//paragraph-spacing-after: 10;
font-size: 24;
}

item[data-type=project][depth=2] {
color: mix(green,blue, 50%);
paragraph-spacing-before: 15;
paragraph-spacing-after: 12;
font-size: 24;
line-height-multiple: 1;
text-underline: NSUnderlineStyleSingle;
}

item[data-type=project][depth=3] {
color: mix(green,black, 50%);
paragraph-spacing-before: 15;
paragraph-spacing-after: 22;
font-size: 20;
line-height-multiple: 1;
}

item[data-type= project][depth=4] {
color: mix(green,black, 50%);
paragraph-spacing-before: 15;
paragraph-spacing-after: 22;
font-size: 20;
line-height-multiple: 1;
}

item[data-type= project][depth=5] {
color: mix(green,black, 50%);
paragraph-spacing-before: 15;
paragraph-spacing-after: 2;
font-size: 20;
}

item[data-type= project][depth=6] {
color: mix(green,black, 50%);
paragraph-spacing-before: 15;
paragraph-spacing-after: 22;
font-size: 20;
line-height-multiple: 1;
}

item[data-type= project][depth=7] {
color: mix(green,black, 50%);
paragraph-spacing-before: 15;
paragraph-spacing-after: 22;
font-size: 20;
line-height-multiple: 1;
}

item[data-type= project][depth=8] {
color: mix(green,black, 50%);
paragraph-spacing-before: 15;
paragraph-spacing-after: 22;
font-size: 20;
line-height-multiple: 1;
}

item[data-type= project][depth=9] {
color: mix(green,black, 50%);
paragraph-spacing-before: 15;
paragraph-spacing-after: 22;
font-size: 20;
line-height-multiple: 1;
}

item[data-type= project][depth=10] {
color: mix(green,black, 50%);
paragraph-spacing-before: 15;
paragraph-spacing-after: 22;
font-size: 20;
line-height-multiple: 1;
}

item[data-type= project][depth=11] {
color: mix(green,black, 50%);
paragraph-spacing-before: 15;
paragraph-spacing-after: 22;
font-size: 20;
line-height-multiple: 1;
}

item[data-type= project][depth=12] {
color: mix(green,black, 50%);
paragraph-spacing-before: 15;
paragraph-spacing-after: 22;
font-size: 20;
line-height-multiple: 1;
}

// -----------------------------------------
// -- Changes the Project Task Font.
// -----------------------------------------

item[data-type= task]{
color: mix(black,blue, 80%);
line-height-multiple: 1;
paragraph-spacing-after: 16;
font-size: 20;
}

// -----------------------------------------
// -- Changes the Project Note Font.
// -----------------------------------------

item[data-type=note] {
color: mix(black,white, 80%);
font-size: 20;
font-style: regular;
line-height-multiple: 1.1;
paragraph-spacing-after: 18;
}

// -----------------------------------------
// ------ PROCESS TAGS ------
// ----------------------------------------

// Changes the tag's text of the tag (Point of Order #1) “@poa1”.
run[tag=data-poa1] {
color: mix(black, white, 70%);
}

// ----------------------------------------

// Changes the tag's text of the tag (Point of Order #2) “@poa2”.
run[tag=data-poa2] {
color: mix(black, white, 70%);
}

// ----------------------------------------

// Changes the tag's text of the tag (reference) “@ref”.
run[tag=data-ref] {
color: mix(black, white, 70%);
}

// ----------------------------------------

// Changes the tag's text of the tag “@focus”.
run[tag=data-focus] {
color: mix(black, white, 70%);
}

// ----------------------------------------

// Changes the tag's text of the tag “@progress”.
run[tag=data-progress] {
color: mix(black, white, 70%);
}

// -----------------------------------------
// ------ STYLE TAGS ------
// ----------------------------------------

// Changes the text preceding the tag to italics: "@i"
item[data-i] {
font-style: italic;
font-size: 19;
}

// -----------------------------------------

// Changes the text preceding the tag to bold (loud): "@l"
item[data-l] {
font-weight: bold;
font-size: 19;
}

// -----------------------------------------

// Changes the text preceding the tag Red: "@r"
item[data-r] {
color: mix(red,black, 30%);
}

// Changes the text preceding the tag BOLD RED: "@R"
item[data-R] {
color: mix(red,black, 30%);
font-weight: bold;
}

// -----------------------------------------

// Changes the text preceding the tag Green: "@g"
item[data-g] {
color: mix(black,darkgreen, 20%);
}

// Changes the text preceding the tag BOLD GREEN: "@G"
item[data-G] {
color: mix(black,darkgreen, 20%);
font-weight: bold;
}

// -----------------------------------------

// Changes the text preceding the tag Blue: "@b"
item[data-b] {
color: mix(green,blue, 50%);
}

// Changes the text preceding the tag BOLD BLUE: "@B"
item[data-B] {
color: mix(green,blue, 50%);
font-weight: bold;
}

// -----------------------------------------
// ------ LINE SPACE TAGS ------
// ----------------------------------------

// Changes the spacing above the tagged line so that the tagged line may appear to be separated from the above line (space above): "@spa"
item[data-spa] {
paragraph-spacing-before: 35;
}

// -----------------------------------------

// Changes the spacing below the tagged line so that the following line may appear to be separated from the tagged line (space below): "@spb"
item[data-spb] {
paragraph-spacing-after: 35;
}

// -----------------------------------------

// Changes the line below the tagged line to appear directly under the tagged line - used as a pseudo list compression tool (space below compressed): "@spbc"
item[data-spbc] {
paragraph-spacing-after: 3;
}

// -----------------------------------------
// ------ DONE TAGS ------
// ----------------------------------------

item[data-done] {
color: mix(black, white, 40%);
paragraph-spacing-before: 1;
paragraph-spacing-after: 1;
font-size: 20;
> run[content] {
text-strikethrough: NSUnderlineStyleSingle;
text-strikethrough- color: mix(black, lightblue, 25%);
}
}