Skip to content

Commit 37340f1

Browse files
committed
CI: Update docs.yml
CI: Update docs.yml auto-generate vimdoc Update docs.yml
1 parent 59ec848 commit 37340f1

File tree

2 files changed

+64
-1
lines changed

2 files changed

+64
-1
lines changed

.github/workflows/docs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,27 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12+
1213
- name: panvimdoc
1314
uses: kdheepak/panvimdoc@main
1415
with:
1516
vimdoc: neorg-extras
1617
version: "Neovim >= 0.8.0"
1718
demojify: true
1819
treesitter: true
20+
21+
- name: Stash changes
22+
id: stash
23+
run: |
24+
git diff --exit-code || git stash --include-untracked
25+
26+
- name: Pull latest changes from remote
27+
run: git pull --rebase origin main
28+
29+
- name: Apply stashed changes if they exist
30+
if: steps.stash.outputs.stashed == 'true'
31+
run: git stash pop || true
32+
1933
- name: Push changes
2034
uses: stefanzweifel/git-auto-commit-action@v4
2135
with:

doc/neorg-extras.txt

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*neorg-extras.txt* For Neovim >= 0.8.0 Last change: 2024 August 27
1+
*neorg-extras.txt* For Neovim >= 0.8.0 Last change: 2024 August 31
22

33
==============================================================================
44
Table of Contents *neorg-extras-table-of-contents*
@@ -16,6 +16,7 @@ Table of Contents *neorg-extras-table-of-contents*
1616
- Rationale |neorg-extras-neorg-agenda-rationale|
1717
- Views |neorg-extras-neorg-agenda-views|
1818
- The Property Metadata |neorg-extras-neorg-agenda-the-property-metadata|
19+
- Interactive Task Cycling|neorg-extras-neorg-agenda-interactive-task-cycling|
1920
5. To-Do |neorg-extras-to-do|
2021
- Primary |neorg-extras-to-do-primary|
2122
- Secondary |neorg-extras-to-do-secondary|
@@ -53,6 +54,7 @@ Table of Contents *neorg-extras-table-of-contents*
5354
- |neorg-extras-tag-view|
5455
- |neorg-extras-the-property-metadata|
5556
- |neorg-extras-sorting-out-my-life|
57+
- |neorg-extras-interactive-task-cycling|
5658
- |neorg-extras-to-do|
5759
- |neorg-extras-primary|
5860
- |neorg-extras-secondary|
@@ -422,6 +424,53 @@ Maybe add a tag? You could also add a property (but I haven’t implemented
422424
support for finer sorting yet).
423425

424426

427+
INTERACTIVE TASK CYCLING *neorg-extras-neorg-agenda-interactive-task-cycling*
428+
429+
Manually changing task states and updating metadata to reflect that can grow
430+
tedious after a point. Its basically doing the same thing twice. And who wants
431+
to waste time looking at a clock and writing down the time to log their tasks?
432+
Vim is (after all) all about reducing redundancy and wasted time, and so the
433+
command:
434+
435+
`Neorg cycle_task`
436+
437+
Compresses task state update and property metadata update into one. Calling
438+
this function on a heading that is or isn’t a task will initiate the
439+
interactive task cycling process. The general sequencing of task states are as
440+
follows:
441+
442+
>txt
443+
# Task Transitions
444+
undone -> cancelled
445+
undone -> pending -> done
446+
undone -> pending -> cancelled
447+
undone -> pending -> hold -> pending -> done
448+
undone -> pending -> hold -> pending -> cancelled
449+
450+
undone -> ambiguous -> cancelled
451+
undone -> ambiguous -> pending -> done
452+
undone -> ambiguous -> pending -> cancelled
453+
undone -> ambiguous -> pending -> hold -> pending -> done
454+
undone -> ambiguous -> pending -> hold -> pending -> cancelled
455+
undone -> important -> cancelled
456+
undone -> important -> pending -> done
457+
undone -> important -> pending -> cancelled
458+
undone -> important -> pending -> hold -> pending -> done
459+
undone -> important -> pending -> hold -> pending -> cancelled
460+
461+
undone -> recurring -> done
462+
undone -> recurring -> cancelled
463+
<
464+
465+
Furthermore, the time properties are populated automatically given the
466+
following state changes: - When creating task -> populate deadline - When
467+
leaving undone -> populate started - When entering cancelled or done ->
468+
populate completed
469+
470+
With this command, I hope that users will waste less time manually messing
471+
around with the property metadata, and focus more on getting things done.
472+
473+
425474
==============================================================================
426475
5. To-Do *neorg-extras-to-do*
427476

0 commit comments

Comments
 (0)