Sublime Forum

Keyboard shortcut open_file no work properly

#1

Hi,
This my shortcut is :

    {
        "keys": "ctrl+alt+l"],
        "command": "open_file",
        "args": {
            "file": "C:\\Developer\\SFTP\\sublime_sftp_debug.txt"
        }
    },

But sublime build 3066 open
C:\Users\xxxx\AppData\Roaming\Sublime Text 3\Packages\User\C:\Developer\SFTP\sublime_sftp_debug.txt
not
C:\Developer\SFTP\sublime_sftp_debug.txt

Any idea why this happens?

0 Likes

#2

try with

{ "keys": "ctrl+alt+l"], "command": "open_file", "args": { "file": "C:/Developer/SFTP/sublime_sftp_debug.txt" } },

or with

{ "keys": "ctrl+alt+l"], "command": "open_file", "args": { "file": "file://C:/Developer/SFTP/sublime_sftp_debug.txt" } },

0 Likes

#3

Thanks, but not working…

0 Likes

#4

After try differents formats of the file (arg:string) and view in console others formats files.
this open file with format:

{ "keys": "ctrl+alt+l"], "command": "open_file", "args": { "file": "/C/Developer/SFTP/sublime_sftp_debug.txt" } },
do not know why but it works

0 Likes

#5

Ahh yes, I forgot, that weird stuff

0 Likes