Skip to content

Commit d5a6750

Browse files
committed
Feature: ANF: rename file prefilles the input with the current file of the file
1 parent b0b63b8 commit d5a6750

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

advanced_new_file/commands/move_file_command.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ def get_status_prefix(self):
123123
def get_default_root_setting(self):
124124
return RENAME_FILE_DEFAULT_ROOT_SETTING
125125

126+
def generate_initial_path(self):
127+
file_path = self.window.active_view().file_name()[1:]
128+
base, _ = self.split_path(file_path)
129+
return file_path[len(base):]
130+
126131

127132
class AdvancedNewFileMoveAtCommand(sublime_plugin.WindowCommand):
128133
def run(self, files):

0 commit comments

Comments
 (0)