Nighty Build 2215 is out now, with a few misc fixes
Nightly Build 2215
weslly
#2
I’m not sure if this is a bug from this build but when I run this command the mouse selection dragging stops working.
import sublime
import sublime_plugin
import time
import locale
class InsertDatetimeCommand(sublime_plugin.TextCommand):
def run(self, edit):
locale.setlocale(locale.LC_ALL, 'pt_BR')
sel = self.view.sel()
# datenow = time.strftime("%A, %d %B %Y %H:%M:%S");
datenow = time.strftime("%A, %d de %B de %Y").replace(' 0', ' ')
for s in sel:
self.view.replace(edit, s, datenow)
Edit: Apparently this has something to do with the locale.
0 Likes
atomi
#3
A bit off topic but I believe project wide build systems defined in sublime-project files would be better served via the command palette as build variants are now.
As it is, you need to drive down to Tools>Build Systems and select the project’s build system which defeats the purpose of automatic builds for individual files. Unless I’m missing something, I hope this can be considered in a future release.
0 Likes