Sublime Forum

Use Windows variable in key bindings

#1

I have this code snippet:

{
“keys”: [“alt+b”],
“command”: “open_file”,
“args”: {“file”: “C:/Users/John/.dbt/profiles.yml”}

},

I would like to change it to this:

{
“keys”: [“alt+b”],
“command”: “open_file”,
“args”: {“file”: “C:/Users/%USERNAME%/.dbt/profiles.yml”}

},

So I can use this on different machines without need to edit keymap file.

0 Likes

#2

For that you would need a plugin, such as the one linked below.

1 Like

#3

Working xD

0 Likes