nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 52148a3f99a00b4f91ce0e115f20360929f89922
parent f55b72f55fcc5dd1d4ada25f2b246c33c0a1887a
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun, 29 Jul 2018 10:04:13 -0400

Remove trailing whitespace

Diffstat:
Mnnotes_cli/clipboard.py | 2+-
Mnnotes_cli/nncli.py | 4++--
Mnnotes_cli/notes_db.py | 2+-
Mnnotes_cli/view_note.py | 12++++++------
4 files changed, 10 insertions(+), 10 deletions(-)

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'))