Current file name as new file in Advance New File plugin - sublimetext3

I would like to make default name for new file same as current file in Advance New File plugin.
In settings there is a option "rename_default": "", where you can enter name for the new file. Is there any way to enter variable text not just static. I tried with "$file" but its returning just that text.

Related

Create shortcut from server to client can dynamically change path without replace client shortcut

I have one server that contain my excel file for all client, every times I need to backup the excel file for example:
Name |Date time
data.xls |4/12/2017
And the shortcut path was "\192.168.1.254\MyDocument\data.xls" when I backup the excel file become :
Name |Date time
data.xls |4/12/2017
data_copy1.xls |4/13/2017
And I was create the shortcut first time need to change the path become : "\192.168.1.254\MyDocument\data_copy1.xls"
Every time I change the path I go to client change one by one, is there some way to easier when I backup the excel file and the file name change and then the client shortcut follow the new path?
Thanks
I had found the answer:
so simple...
open notepad
type (#echo off)
type (start "" "path file"
save
choose extension All (*)
save with extension .bat
Know just copy the new path file for replace at
***path file***

Sublime showing full file path on every line while saving any file

I have updated my sublime text.Now whenever i am trying to save any file in editor it shows full file path at every line.
don't know how to disable this

How do I set sublime text to auto detect a file type after setting it once?

for instance I have a .zsh file that I would like to always open in sublime as a "Shell Script (bash)" file type. Currently it defaults back to a text file format even when I change and reopen it.
Look in the bottom right of the window.
Click the file type name. Let's assume it is 'Shell Script (Bash)'.
Notice that the first option is 'Open all with current extension as...'
Follow the obvious steps from there and you should be all set.

Command to Create New File in Current Directory

I'd like to Create a New Text Document in the Current Directory, named "New Text Document" that is created with the text Highlighted for Renaming, the same as if you right-click the open folder > New >Text Document
I'd prefer to do it straight from the Command Line, or if not possible, then a Batch Script
I'd like to just point to %windir%\System32\notepad.exe and make it create a new Document in the current folder, or maybe somehow launch it from the Current Directory somehow..
or I thought about creating a file called "New Text Document.txt" elsewhere on the computer, and maybe pointing to that file, and copying it to the current directory.. but I'd like it to go straight to renaming.
anyone know if thats possible or not?
thanks
Try this:
echo 2> NewTextDocument.txt
This will redirect any error to NewTextDocument.txt.
Since this command is valid (no error), it will produce new file with empty content.
More about redirecting: wikipedia

Coredata: opening an xcdatamodeld file

I have a single xcdatamodeld file and would merely like to open this particular file with xcode. However, when I double click the file, it doesn't really show me anything or allow editing. The only way to do this is to run MyApp.xcodeproj and only then can I modify this file. Isn't there any way to edit the coredata file using only the xcdatamodel file? Thanks!
The xcdatamodeld file is not actually a file - it's a directory containing other model files.
Right click the file, choose Show Package Contents and you will get access to the files inside the directory. You can then double-click those files. When I do so I get just the Xcode model editor without the full Xcode project window.

Resources