SideBarTools
SideBarTools copied to clipboard
New File command via the palette
I think we should perhaps have one "New file" command in the palette, that opens the same dialog as "Move", with three possible cases:
- If the active view has a file name, suggest the new file to be have the same name. Just like the "Move" command we could pre-select the filename so it's easy to change. This is a good starting point for creating e.g. another file of the same type, and it's super easy to create the file in any of the parent directories.
- Elseif the view has no file name, but there is at least one directory open in the sidebar, suggest creating the new file in that directory
- If neither of these cases is true, suggest creating the file in the user home directory or some other sane default. For the side bar "New file" command, we should treat the first selected path as the starting point (basically implementing case 1 above).