Skip to content

Commit

Permalink
add linux keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
wilczynskia3mobile committed Sep 30, 2016
1 parent 1a63852 commit 0521006
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 4 additions & 0 deletions Default (Linux).sublime-keymap
@@ -0,0 +1,4 @@
[
{ "keys": ["shift+ctrl+f"], "command": "saved_filters", "context": [{ "key": "selector", "operator": "equal", "operand": "text.taskpaper" }] },
{ "keys": ["ctrl+."], "command": "toggle_done", "context": [{ "key": "selector", "operator": "equal", "operand": "text.taskpaper" }] },
]
6 changes: 2 additions & 4 deletions Default (OSX).sublime-keymap
@@ -1,6 +1,4 @@
[
{ "keys": ["shift+super+f"], "command": "saved_filters", "context": [{ "key": "selector", "operator": "equal", "operand": "text.taskpaper" }] },
{ "keys": ["super+."], "command": "toggle_done", "context": [{ "key": "selector", "operator": "equal", "operand": "text.taskpaper" }] },
{ "keys": ["alt+f"], "command": "saved_filters", "context": [{ "key": "selector", "operator": "equal", "operand": "text.taskpaper" }] },
{ "keys": ["shift+alt+f"], "command": "filter", "context": [{ "key": "selector", "operator": "equal", "operand": "text.taskpaper" }] },
{ "keys": ["shift+alt+m"], "command": "move_to_project", "context": [{ "key": "selector", "operator": "equal", "operand": "text.taskpaper" }] },
]
]
8 changes: 4 additions & 4 deletions tags_commands.py
@@ -1,4 +1,4 @@
from . import todoflow
from .todoflow.todoflow import textutils
import sublime
import sublime_plugin

Expand All @@ -14,10 +14,10 @@ def run_on_line(self, edit, line_reqion):
self.view.replace(edit, line_reqion, replacement)

def transform_line(self, line):
if todoflow.has_tag(line, 'done'):
return todoflow.remove_tag(line, 'done')
if textutils.has_tag(line, 'done'):
return textutils.remove_tag(line, 'done')
else:
import datetime
return todoflow.add_tag(
return textutils.add_tag(
line, 'done', datetime.date.today().isoformat()
)

0 comments on commit 0521006

Please sign in to comment.