commit 3e4b72ade70f7ae62ea6ebc2a646d15e41e9fcdd
parent f55b72f55fcc5dd1d4ada25f2b246c33c0a1887a
Author: Daniel Moch <daniel@danielmoch.com>
Date: Sun, 29 Jul 2018 10:04:13 -0400
Remove trailing whitespace
Diffstat:
5 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/README.md b/README.md
@@ -93,7 +93,7 @@ Check your OS distribution for installation packages.
note (specified by <key>) delete - delete
a note (specified by <key>) < favorite | unfavorite > - favorite/unfavorite a
- retrieve the category from a note (specified by <key>) cat set <category>
- - set the category for a note (specified by <key>)
+ - set the category for a note (specified by <key>)
cat rm - remove category from a note (specified by <key>) ```
#### Configuration
@@ -155,7 +155,7 @@ supported for dynamically building the title string. Each of these
formatting tags supports a width specifier (decimal) and a left
justification (-) like that supported by printf:
-``` %F - flags (fixed 5 char width) X - needs sync
+``` %F - flags (fixed 5 char width) X - needs sync
* - favorited m - tags %D - date
%N - title ```
@@ -230,7 +230,7 @@ easier/quicker to simply backup this entire directory.
Note category can be modified directly from the command line. Example:
-``` # Retrieve note category (e.g. "category1")
+``` # Retrieve note category (e.g. "category1")
nncli -k somekeyid cat get
# Returns "category1"
diff --git a/nnotes_cli/clipboard.py b/nnotes_cli/clipboard.py
@@ -12,7 +12,7 @@ def get_copy_command(self):
if (spawn.find_executable('pbcopy')):
return 'echo "%s" | pbcopy'
return None
-
+
def copy(self, text):
if (self.copy_command):
os.system(self.copy_command % text)
diff --git a/nnotes_cli/nncli.py b/nnotes_cli/nncli.py
@@ -169,7 +169,7 @@ def exec_diff_on_note(self, note, old_note):
out = temp.tempfile_create(None, tempdir=self.tempdir)
try:
- subprocess.call(diff + ' ' +
+ subprocess.call(diff + ' ' +
temp.tempfile_name(ltf) + ' ' +
temp.tempfile_name(otf) + ' > ' +
temp.tempfile_name(out),
@@ -1145,7 +1145,7 @@ def usage():
-r, --regex - search string is a regular expression
-k <key>, --key=<key> - note key
-t <title>, --title=<title> - title of note for create (cli mode)
- -c <file>, --config=<file> - config file to read from (defaults to
+ -c <file>, --config=<file> - config file to read from (defaults to
~/.config/nncli/config)
COMMANDS:
diff --git a/nnotes_cli/notes_db.py b/nnotes_cli/notes_db.py
@@ -155,7 +155,7 @@ def _helper_gstyle_categorymatch(self, cat_pats, note):
# category patterns specified but note has no categories, so no match
return 0
- # for each cat_pat, we have to find a matching category
+ # for each cat_pat, we have to find a matching category
# .lower() used for case-insensitive search
cat_pats_matched = 0
for tp in cat_pats:
diff --git a/nnotes_cli/view_note.py b/nnotes_cli/view_note.py
@@ -121,8 +121,8 @@ def get_status_bar(self):
'status_bar')
status_key_index = \
- ('pack', urwid.AttrMap(urwid.Text(' [' +
- str(self.key) +
+ ('pack', urwid.AttrMap(urwid.Text(' [' +
+ str(self.key) +
'] ' +
str(cur + 1) +
'/' +
@@ -135,10 +135,10 @@ def get_status_bar(self):
'status_bar')
status_category_flags = \
- ('pack', urwid.AttrMap(urwid.Text('[' +
- category +
- '] [' +
- flags +
+ ('pack', urwid.AttrMap(urwid.Text('[' +
+ category +
+ '] [' +
+ flags +
']'),
'status_bar'))