Skip to content

Commit

Permalink
Trying fix for #17. Getting note content from file seems to work, but…
Browse files Browse the repository at this point in the history
… I can't still make the title work on the list
  • Loading branch information
scbtest committed May 2, 2015
1 parent 163766c commit dc448ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion quick_simplenote.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,13 @@ def flush_saves():
sublime.set_timeout(flush_saves, debounce_time)

def get_current_content(self, view):
return view.substr(sublime.Region(0, view.size())).encode('utf-8')
note_file_content = ""
try:
with open(view.file_name(),'r') as content_file:
note_file_content = content_file.read()
except (EOFError, IOError) as e:
pass
return note_file_content

def handle_note_changed(self, modified_note_resume, content, old_file_path, open_view):
global notes
Expand Down

0 comments on commit dc448ad

Please sign in to comment.