Compare commits
3 Commits
7e75763cee
...
641b8fb825
Author | SHA1 | Date | |
---|---|---|---|
641b8fb825 | |||
a6b8420c26 | |||
68d3a850c0 |
@ -5,19 +5,19 @@ tags: [ "organization" ]
|
|||||||
|
|
||||||
Set up the configuration file:
|
Set up the configuration file:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task
|
task
|
||||||
```
|
```
|
||||||
|
|
||||||
Add a task:
|
Add a task:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task add update linux
|
task add update linux
|
||||||
```
|
```
|
||||||
|
|
||||||
See which task is next:
|
See which task is next:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task next
|
task next
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -25,13 +25,13 @@ Note the id number.
|
|||||||
|
|
||||||
Mark a task as started:
|
Mark a task as started:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task start 1
|
task start 1
|
||||||
```
|
```
|
||||||
|
|
||||||
Once finished:
|
Once finished:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task 1 done
|
task 1 done
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ task 1 done
|
|||||||
|
|
||||||
Add a project:
|
Add a project:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task add project:house buy potted plant
|
task add project:house buy potted plant
|
||||||
task add proj:house.repair buy screwdriver
|
task add proj:house.repair buy screwdriver
|
||||||
task add proj:house.repair buy shelf brackets
|
task add proj:house.repair buy shelf brackets
|
||||||
@ -51,11 +51,11 @@ task add pro:house.paint buy brushes
|
|||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task pro:house sum
|
task pro:house sum
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task burndown.daily pro:house
|
task burndown.daily pro:house
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -63,13 +63,13 @@ The summaries will show how fast a project is being completed, and when you can
|
|||||||
|
|
||||||
# Tags
|
# Tags
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task add +buy toothbrush
|
task add +buy toothbrush
|
||||||
```
|
```
|
||||||
|
|
||||||
You can then see only tasks which involve buying something with:
|
You can then see only tasks which involve buying something with:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task +buy
|
task +buy
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -77,27 +77,27 @@ task +buy
|
|||||||
|
|
||||||
Set three contexts by their tags:
|
Set three contexts by their tags:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task context define work +sa or +hr
|
task context define work +sa or +hr
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task context define study +ed or +void or +rat
|
task context define study +ed or +void or +rat
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task context define home -sa -hr -ed -void -rat
|
task context define home -sa -hr -ed -void -rat
|
||||||
```
|
```
|
||||||
|
|
||||||
Change to the first context.
|
Change to the first context.
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task context work
|
task context work
|
||||||
```
|
```
|
||||||
|
|
||||||
Then stop.
|
Then stop.
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task context none
|
task context none
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ task context none
|
|||||||
|
|
||||||
View list of tasks completed in the last week:
|
View list of tasks completed in the last week:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task end.after:today-1wk completed
|
task end.after:today-1wk completed
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -113,19 +113,19 @@ task end.after:today-1wk completed
|
|||||||
|
|
||||||
Make a UDA 'size'.
|
Make a UDA 'size'.
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task config uda.size.type string
|
task config uda.size.type string
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task config uda.size.label Size
|
task config uda.size.label Size
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task config uda.size.values large,medium,small
|
task config uda.size.values large,medium,small
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
uda.size.default=medium
|
uda.size.default=medium
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ uda.size.default=medium
|
|||||||
|
|
||||||
This command shows tasks I'm most interested in:
|
This command shows tasks I'm most interested in:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
task next +ACTIVE or +OVERDUE or due:today or scheduled:today or pri:H
|
task next +ACTIVE or +OVERDUE or due:today or scheduled:today or pri:H
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -6,13 +6,13 @@ tags: [ "data", "tracking", "time", "timew" ]
|
|||||||
|
|
||||||
Try:
|
Try:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
timew summary :yesterday
|
timew summary :yesterday
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also use :week, :lastweek, :month, :quarter, :year, or a range such as:
|
You can also use :week, :lastweek, :month, :quarter, :year, or a range such as:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
timew summary today to tomorrow
|
timew summary today to tomorrow
|
||||||
timew today - tomorrow
|
timew today - tomorrow
|
||||||
2018-10-15T06:00 - 2018-10-17T06:00
|
2018-10-15T06:00 - 2018-10-17T06:00
|
||||||
@ -22,7 +22,7 @@ Each of these can gain with the :ids tag.
|
|||||||
|
|
||||||
# Basics
|
# Basics
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
timew start
|
timew start
|
||||||
timew stop
|
timew stop
|
||||||
timew continue
|
timew continue
|
||||||
@ -32,7 +32,7 @@ timew tags
|
|||||||
|
|
||||||
And add ids with:
|
And add ids with:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
timew summary :ids
|
timew summary :ids
|
||||||
timew track 10am - 1pm timewarrior
|
timew track 10am - 1pm timewarrior
|
||||||
timew track 1pm for 2h walk
|
timew track 1pm for 2h walk
|
||||||
@ -42,50 +42,50 @@ timew track 1pm for 2h walk
|
|||||||
|
|
||||||
First get ids.
|
First get ids.
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
timew summary :ids
|
timew summary :ids
|
||||||
```
|
```
|
||||||
|
|
||||||
Then if we're looking at task @2:
|
Then if we're looking at task @2:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
timew move @2 12:00
|
timew move @2 12:00
|
||||||
timew lengthen @2 3mins
|
timew lengthen @2 3mins
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
time shorten @2 40mins
|
time shorten @2 40mins
|
||||||
```
|
```
|
||||||
|
|
||||||
# Forgetting
|
# Forgetting
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
timew start 1h ago @4
|
timew start 1h ago @4
|
||||||
```
|
```
|
||||||
|
|
||||||
Or if your action actually had a break:
|
Or if your action actually had a break:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
timew split @8
|
timew split @8
|
||||||
```
|
```
|
||||||
|
|
||||||
Or maybe not?
|
Or maybe not?
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
timew join @4 @8
|
timew join @4 @8
|
||||||
timew @8 delete
|
timew @8 delete
|
||||||
```
|
```
|
||||||
|
|
||||||
Start at previous time
|
Start at previous time
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
timew start 3pm 'Read chapter 12'
|
timew start 3pm 'Read chapter 12'
|
||||||
timew start 90mins ago 'Read chapter 12'
|
timew start 90mins ago 'Read chapter 12'
|
||||||
```
|
```
|
||||||
|
|
||||||
Cancel currently tracked time.
|
Cancel currently tracked time.
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
timew cancel
|
timew cancel
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -157,11 +157,11 @@ with:
|
|||||||
|
|
||||||
# Fixing Errors
|
# Fixing Errors
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
curl -O https://taskwarrior.org/download/timew-dbcorrection.py
|
curl -O https://taskwarrior.org/download/timew-dbcorrection.py
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
python timew-dbcorrections.py
|
python timew-dbcorrections.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
11
data/view_torrents.md
Normal file
11
data/view_torrents.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
title: "View Torrents"
|
||||||
|
tags: [ "data", "transmission", "torrenting" ]
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
```sh
|
||||||
|
transmission-show $file.torrent | less
|
||||||
|
```
|
||||||
|
|
||||||
|
`TRACKERS` shows where transmission will ask who has the torrent, but will probably be out of date.
|
@ -1,34 +1,21 @@
|
|||||||
---
|
---
|
||||||
title: "vim navigation"
|
title: "vim navigation"
|
||||||
tags: [ "vim" ]
|
tags: [ "vim", "navigation" ]
|
||||||
---
|
---
|
||||||
|
|
||||||
| Move | Command |
|
| Move | Command |
|
||||||
|:-----|:-------------|
|
|:------------------------|:-------------|
|
||||||
|Down page | C-f |
|
| Down page | Ctl-f |
|
||||||
| Down half page | C-d |
|
| Down half page | Ctl-d |
|
||||||
| Up page | C-b |
|
| Up page | Ctl-b |
|
||||||
| Up half page | C-u |
|
| Up half page | Ctl-u |
|
||||||
|
| Scroll down | Ctl-e |
|
||||||
## Scroll
|
| Scroll up | Ctl-y |
|
||||||
|
| Jump to previous place | Ctl-i |
|
||||||
> C-e
|
| Jump to back | Ctl-o |
|
||||||
|
| Jump to last change | g; |
|
||||||
> C-y
|
| Jump to next change | g, |
|
||||||
|
| Go to current filename | gf |
|
||||||
## Jumps
|
|
||||||
|
|
||||||
Go through your last jumps:
|
|
||||||
|
|
||||||
> C-I
|
|
||||||
|
|
||||||
> C-O
|
|
||||||
|
|
||||||
Go to the last and previous places you've changed:
|
|
||||||
|
|
||||||
> g;
|
|
||||||
|
|
||||||
> g,
|
|
||||||
|
|
||||||
Go to a filename, and type `gf` (Go-to-File).
|
Go to a filename, and type `gf` (Go-to-File).
|
||||||
For example, if you put your cursor over the `~/.vimrc` in this line, you can edit your vim configuration file.
|
For example, if you put your cursor over the `~/.vimrc` in this line, you can edit your vim configuration file.
|
||||||
@ -39,10 +26,10 @@ For example, if you put your cursor over the `~/.vimrc` in this line, you can ed
|
|||||||
|
|
||||||
Make a 20 character 'visual split' in the current working directory ('`.`').
|
Make a 20 character 'visual split' in the current working directory ('`.`').
|
||||||
|
|
||||||
> :20vs .
|
`:20vs .`
|
||||||
|
|
||||||
Change the view for this:
|
Swap buffer positions:
|
||||||
|
|
||||||
> C-w x
|
`C-w x`
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
---
|
---
|
||||||
title: "vim completion"
|
title: "vim completion"
|
||||||
tags: [ "vim" ]
|
tags: [ "vim", "completion" ]
|
||||||
---
|
---
|
||||||
|
|
||||||
Complete the word by searching for the *n*ext similar word:
|
Complete the word by searching for the *n*ext similar word:
|
||||||
|
|
||||||
> C-n
|
`C-n`
|
||||||
|
|
||||||
Complete the word by searching for a *p*revious similar word:
|
Complete the word by searching for a *p*revious similar word:
|
||||||
|
|
||||||
> C-p
|
`C-p`
|
||||||
|
|
||||||
Complete the full line:
|
Complete the full line:
|
||||||
|
|
||||||
> C-x C-l
|
`C-x C-l`
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
---
|
---
|
||||||
title: "vim search"
|
title: "vim search"
|
||||||
tags: [ "vim" ]
|
tags: [ "vim", "search" ]
|
||||||
---
|
---
|
||||||
Search for the next and or previous occurrence of the word under your cursor with `*` and `#`.
|
Search for the next and or previous occurrence of the word under your cursor with `*` and `#`.
|
||||||
|
|
||||||
Search and replace the first 'one' found with 'two':
|
Search and replace the first 'one' found with 'two':
|
||||||
|
|
||||||
> :%s/one/two/
|
`:%s/one/two/`
|
||||||
|
|
||||||
Same, but replace 'one' globally:
|
Same, but replace 'one' globally:
|
||||||
|
|
||||||
> :%s/one/two/g
|
`:%s/one/two/g`
|
||||||
|
|
||||||
Put quotes around every occurrence of `$HOME`:
|
Put quotes around every occurrence of `$HOME`:
|
||||||
|
|
||||||
> :%s/$HOME/"&"
|
`:%s/$HOME/"&"`
|
||||||
|
|
||||||
Same, but add curly brackets around `$HOSTNAME`:
|
Same, but add curly brackets around `$HOSTNAME`:
|
||||||
|
|
||||||
> :%s/$HOSTNAME/{&}
|
`:%s/$HOSTNAME/{&}`
|
||||||
|
|
||||||
|
@ -3,12 +3,12 @@ title: "vim windows"
|
|||||||
tags: [ "vim" ]
|
tags: [ "vim" ]
|
||||||
---
|
---
|
||||||
|
|
||||||
| Command | Keys |
|
| Command | Keys |
|
||||||
|:-----|:----:|
|
|:--------------------------|:-------------------:|
|
||||||
| split window | C-w s |
|
| split window | `C-w s` |
|
||||||
| split window vertically | C-w v |
|
| split window vertically | `C-w v` |
|
||||||
| close window | C-q |
|
| close window | `C-q` |
|
||||||
| change window | C-w w |
|
| change window | `C-w w` |
|
||||||
| rotate windows | C-w r |
|
| rotate windows | `C-w r` |
|
||||||
| split open new file | :sf path/file |
|
| split open new file | `:sf $filepath` |
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Put bash in vim mode!
|
|||||||
|
|
||||||
Place the following in your `~/.inputrc`:
|
Place the following in your `~/.inputrc`:
|
||||||
|
|
||||||
```bash
|
```
|
||||||
set editing-mode vi
|
set editing-mode vi
|
||||||
set show-mode-in-prompt on
|
set show-mode-in-prompt on
|
||||||
set vi-ins-mode-string \1\e[33;32m\2[>]=\1\e[0m\2
|
set vi-ins-mode-string \1\e[33;32m\2[>]=\1\e[0m\2
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
title: "Vim Tricks"
|
title: "Vim Tricks"
|
||||||
tags: [ "vim" ]
|
tags: [ "vim" ]
|
||||||
|
requiered: [ "ssh" ]
|
||||||
---
|
---
|
||||||
|
|
||||||
## Remote Editing
|
## Remote Editing
|
||||||
|
|
||||||
> vim scp://*user*@*myserver*[:*port*]//*path/to/file.txt*
|
`vim scp://*user*@*myserver*[:*port*]//*path/to/file.txt*`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user