Skip to content

Commit

Permalink
Allow by_searching to be {"snippet": snippet} and prepopulate prompt
Browse files Browse the repository at this point in the history
Partially addresses #54
  • Loading branch information
bordaigorl committed Feb 6, 2015
1 parent 0680c86 commit ab72a2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sublime_evernote.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,9 @@ def do_search(query):
if isinstance(by_searching, str):
do_search(by_searching)
else:
self.window.show_input_panel("Enter search query:", "", do_search, None, None)
p = self.window.show_input_panel("Enter search query:", "", do_search, None, None)
if isinstance(by_searching, dict):
p.run_command("insert_snippet", {"contents": by_searching.get("snippet", "")})
return

if from_notebook or with_tags:
Expand Down

0 comments on commit ab72a2e

Please sign in to comment.