Skip to content

Commit

Permalink
Added fast refresh of the notes the user is looking at
Browse files Browse the repository at this point in the history
  • Loading branch information
scbtest committed May 9, 2014
1 parent 5c7c6e1 commit 45029b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quick_simplenote.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ def merge_open(self, updated_notes, existing_notes, dirty=False):
write_note_to_path(updated_note, new_file_path)
# Handle filename change (note has the old filename value)
handle_open_filename_change(old_file_path, updated_note)
# Reload view of the note if it's selected
for view in [window.active_view() for window in sublime.windows()]:
if view.file_name() == new_file_path:
view.run_command("revert")
break

# Merge
Expand Down

0 comments on commit 45029b6

Please sign in to comment.