Sublime
import sublime import sublime_plugin from datetime import datetime class InsertDatetimeCommand(sublime_plugin.TextCommand): def run(self, edit): current_datetime = datetime.now().strftime("%Y-%m-%d %H:%M:%S") self.view.run_command("insert", {"characters": current_datetime})
[ { "keys": ["ctrl+shift+q"], // Choose your preferred key combination "command": "insert_datetime" } ]
Last updated