Sublime Forum

What happened to user/default.sublime-mousemap

#1

what happened to user/default.sublime-mousemap

I do not even know if there exists such a thing as a user/default.sublime-mousemap but there should be but it is not on this computer.

How would I create user/default.sublime-mousemap? I mean if I did would it be recognised.

Where is `Default/Default (Windows).sublime-mousemap located? Or does SublimeText have a default location for mouse bindings?

Thanks in advance!

0 Likes

#2

The only contents of the User package are files that you put there or files put there by packages that you’ve installed (for example settings). There’s not a direct interface to manipulate a sublime-mousemap file like there is for sublime-keymap because unlike key bindings it’s not possible to overload mouse bindings with context, and as such you need to create such a file yourself.

You would create that manually by editing the content and then saving the file in your User package. You want the file to be named Default (PLATFORM).sublime-mousemap, where PLATFORM is either Linux, Windows or OSX (and the case of the filename matters depending on the platform you’re on, so it’s best to always use the correct case to forestall potential problems.

It’s stored in the Default package (that’s what the Default/ part of the resource path is specifying). You can view it by using View Package File from the command palette and entering a filter like sublime-mousemap or similar; the file that you open will be read only, but you can use it’s contents for reference purposes.

1 Like

#3

Thank you so much for the reply!

I do not see a folder named default in packages. Nor does that leads to a file name Default (Windows).sublime-mousemap anywhere. I do see a file named Default.sublime-package in the installation directory.

I not sure if I need anymore help at this time and again your effort to respond is well appreciated.

0 Likes

#4

The package that ship with Sublime aren’t stored in the Packages folder (and most of the time, packages you install aren’t there either).

I would focus less on the physical location of where the package exists because the View Package File command I mentioned above will allow you to look at any packaged file regardless of where or how it’s stored.

0 Likes