Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default folder missing in Sublime Text 3 directory

Tags:

sublimetext3

After installing Sublime Text 3, I try to use a custom keyboard shortcut (F5) defined in:

~/.config/sublime-text-3/Packages/User/Default (Linux).sublime-keymap

The shortcut doesn't work, and I see in the console the following message:

Unable to open /home/gabriel/.config/sublime-text-3/Packages/Default/Preferences.sublime-settings

Not only this file is missing in ST's install directory, the entire ~/.config/sublime-text-3/Packages/Default/ folder is missing. But If I open Preferences/Key Bindings, the default keymap file is opened correctly:

enter image description here

and the path shown for that file is within the ~/.config/sublime-text-3/Packages/Default/ folder, which I know is not there (!)

What is going on here? How can I fix this?

like image 752
Gabriel Avatar asked Oct 29 '22 19:10

Gabriel


1 Answers

Why the Key Binding is not working is nothing to do with the default file paths, the directory not existing, or the console errors.

Restart Sublime Text and the Key Binding will work. Enable command logging to see that it's working: in the console sublime.log_commands(True).

Sublime text shouldn't be displaying the paths for those Default package files. The ~/.config/sublime-text-3/Packages/Default/ directory doesn't exist because those files are distributed with Sublime Text, you'll find the files in the the Default package where Sublime Text is installed e.g. /path/to/sublime_text_3/Packages/Default.sublime-package. .sublime-package files are essentially zip files. Ignore those paths, and the error messages in the console. Those are Sublime Text issues.

like image 147
Gerard Roche Avatar answered Jan 02 '23 21:01

Gerard Roche