Commits

Anonymous committed 244bbaa

Implemented tab triggers.

Comments (0)

Files changed (24)

     - Breaks. E.g.:
       ~ This is a break.
     - Tacks
+    - Tags. E.g.: :important:, :one:two:three:
     - Follow ups. E.g.:
       -> Lorem ipsum.
       => Lorem ipsum.
     - Show an outline of the document on using goto symbol
     - Open Python file at specific line from Python tracebacks when pressing enter on a filepath
 
+  * Tab completions
+    - Headlines: "*", "**", "***"
+    - Pages: "p"
+    - Breaks: "b"
+    - Tack: "-"
+    - Tack with unchecked checkbox: "-c"
+    - Tack with checked checkbox: "-cc"
+    - Tack with unchecked checkbox and external link: "-cl"
+    - Tack with TODO: "-ct"
+    - Tack with WORKING: "-cw"
+    - Tack with DONE: "-cd"
+    - Tag: "t"
+    - Additional Tags: ":" (just keep hitting tab for more)
+    - Follow ups: "f"
+    - Sum ups: "ff"
+    - External links: "l"
+    - Inter document links: "i", "ii"
+    - Checkbox unchecked: "c"
+    - Checkbox checked: "cc"
+    - Checkbox summary: "cs"
+
 * Installation
 
   * Codebase
     - [ ] Format: Markdown
   - [ ] Automatic export after save into given format if mark found in org file.
   - [ ] Fix cursor position after filling checkbox summary on checkbox toggle
-  - [ ] Tab trigger "[]" which extends into "[ ] " and updates the summary
+  - [ ] Tab trigger "c" [1/2]
+    - [X] …which extends into "[ ] "
+    - [ ] …and updates the summary
   - [ ] Define special block/area in document where time logging can occur. If one changes the status (TODO, WORKING, DONE etc.) this will be written into the log. Ideas for format are welcome!
   - [ ] If all children don't have checkboxes only show the number of children in the summary
   - [ ] If the summary ends with "%]" calculate percentage instead of amount

break.sublime-snippet

+<snippet>
+    <content><![CDATA[~ ${0:REASON}]]></content>
+    <tabTrigger>b</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>break</description>
+</snippet>

checkbox_checked.sublime-snippet

+<snippet>
+    <content><![CDATA[[X] ]]></content>
+    <tabTrigger>cc</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>checkbox checked</description>
+</snippet>

checkbox_summary.sublime-snippet

+<snippet>
+    <content><![CDATA[[/$1]$0]]></content>
+    <tabTrigger>cs</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>checkbox summary</description>
+</snippet>

checkbox_unchecked.sublime-snippet

+<snippet>
+    <content><![CDATA[[ ] ]]></content>
+    <tabTrigger>c</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>checkbox unchecked</description>
+</snippet>

code.sublime-snippet

+<snippet>
+    <content><![CDATA[[code]
+$0
+[/code]]]></content>
+    <tabTrigger>code</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>code block</description>
+</snippet>

extlink.sublime-snippet

+<snippet>
+    <content><![CDATA[[[${0:LINK}]]]]></content>
+    <tabTrigger>l</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>external link</description>
+</snippet>

followup.sublime-snippet

+<snippet>
+    <content><![CDATA[-> ${0:CONTENT}]]></content>
+    <tabTrigger>f</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>follow up</description>
+</snippet>

headline.sublime-snippet

+<snippet>
+    <content><![CDATA[* ]]></content>
+    <tabTrigger>h</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>headline</description>
+</snippet>

headline2.sublime-snippet

+<snippet>
+    <content><![CDATA[** ]]></content>
+    <tabTrigger>hh</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>headline 2</description>
+</snippet>

headline3.sublime-snippet

+<snippet>
+    <content><![CDATA[*** ]]></content>
+    <tabTrigger>hhh</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>headline 3</description>
+</snippet>

intlink.sublime-snippet

+<snippet>
+    <content><![CDATA[{${0:NUMBER}}]]></content>
+    <tabTrigger>i</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>internal link</description>
+</snippet>

intlink2.sublime-snippet

+<snippet>
+    <content><![CDATA[{{${0:HEADLINE}}}]]></content>
+    <tabTrigger>ii</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>internal headline link</description>
+</snippet>

multitag.sublime-snippet

+<snippet>
+    <content><![CDATA[:${1:TAG}:$0]]></content>
+    <tabTrigger>:</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>tag</description>
+</snippet>

page.sublime-snippet

+<snippet>
+    <content><![CDATA[--- ${0:YYYY-MM-DD} ---]]></content>
+    <tabTrigger>p</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>page</description>
+</snippet>

sumup.sublime-snippet

+<snippet>
+    <content><![CDATA[=> ${0:CONTENT}]]></content>
+    <tabTrigger>ff</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>sum up</description>
+</snippet>

tack.sublime-snippet

+<snippet>
+    <content><![CDATA[- ${0:CONTENT}]]></content>
+    <tabTrigger>-</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>tack</description>
+</snippet>

tack_checkbox_checked.sublime-snippet

+<snippet>
+    <content><![CDATA[- [X] ]]></content>
+    <tabTrigger>-cc</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>tack checkbox checked</description>
+</snippet>

tack_checkbox_unchecked.sublime-snippet

+<snippet>
+    <content><![CDATA[- [ ] ]]></content>
+    <tabTrigger>-c</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>tack checkbox unchecked</description>
+</snippet>

tack_checkbox_unchecked_extlink.sublime-snippet

+<snippet>
+    <content><![CDATA[- [ ] [[${0:LINK}]]]]></content>
+    <tabTrigger>-cl</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>tack checkbox unchecked external link</description>
+</snippet>

tack_done.sublime-snippet

+<snippet>
+    <content><![CDATA[- DONE ${0:CONTENT}]]></content>
+    <tabTrigger>-d</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>tack done</description>
+</snippet>

tack_todo.sublime-snippet

+<snippet>
+    <content><![CDATA[- TODO ${0:CONTENT}]]></content>
+    <tabTrigger>-t</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>tack todo</description>
+</snippet>

tack_working.sublime-snippet

+<snippet>
+    <content><![CDATA[- WORKING ${0:CONTENT}]]></content>
+    <tabTrigger>-w</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>tack working</description>
+</snippet>

tag.sublime-snippet

+<snippet>
+    <content><![CDATA[:${1:TAG}:$0]]></content>
+    <tabTrigger>t</tabTrigger>
+    <scope>text.orgmode</scope>
+    <description>tag</description>
+</snippet>