Skip to content

Commit

Permalink
Focus the opened file view always.
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwen0228 committed May 6, 2022
1 parent 9066872 commit c4dcae7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions advanced_new_file/commands/new_file_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def on_load(self, view):
else:
view.run_command("insert_snippet", {"contents": template})
view.settings().set("_anf_new", "")
sublime.active_window().focus_view(view)

def get_basename(self, path):
return os.path.basename(os.path.expanduser(path))
Expand Down

0 comments on commit c4dcae7

Please sign in to comment.