EJ12N wrote:Not that I know of but very possible with a plugin
import sublime, sublimeplugin, os, functools
def run(self, window, args):
view = window.activeView()
current_name = os.path.basename(view.fileName())
current_dir = os.path.dirname(view.fileName())
window.showInputPanel("New Tab Name:", current_name,
functools.partial(self.doRename, window, current_name, current_dir), None, None)
def doRename(self, window, current_name, current_dir, new_name):
old_name_path = os.path.join(current_dir, current_name)
new_name_path = os.path.join(current_dir, new_name)
toothrot wrote:Thanks for that, it's not all that different from what I'm already using..
Hopefully the powers that be might think renaming while preserving undo history is useful enough to spend a little time on...
At the very least a fixed openinCurrentTab will improve things a bit
gpfsmurf wrote:Did you try the "Automatic Backups" plugin?
toothrot wrote:+1 for "Save As Copy.." if that's what you mean Grey Wyvern
Users browsing this forum: Yahoo [Bot] and 5 guests