Skip to content

Default Keymap Not Extracting #20

@mvastola

Description

@mvastola

Hi @kairyou,
Thanks for this plugin. Really tiny bug, but in sublime-tmpl.py the file_list array is missing your default keymap file. This is causing it to never be extracted from the package.

Is there any way you could fix this? (BTW, I suspect this is actually the source of the problem the user in #11 reported experiencing.)

Also, two other related things I'm noticing, having just installed this plugin:

  • When I try to open the default keymap file (which currently doesn't exist) the path that the latest ST3 opens is ~/.config/sublime-text-3/Packages/SublimeTmpl/Default (Linux).sublime-keymap. Particularly, your keymap file doesn't have the (Linux) in it.
    I'm not 100% sure if this matters or if Sublime would automagically fall back to the other path if it existed (I should probably check) and I know this should be a cross-platform plugin, but it's worth mentioning in case these files are all supposed to have the OS in them now.

  • Along the same lines -- though a slightly different quirk -- is that when choosing to open the user keymap file, the path ~/.config/sublime-text-3/Packages/User/Default (Linux).sublime-keymap is opened for me.
    I mention this because I can only assume that you need to create at least a blank file custom to SublimeTmpl to prevent it from falling back to the global. (Interestingly, for some reason this fallback doesn't occur with the user settings file, which opens as ~/.config/sublime-text-3/Packages/User/SublimeTmpl.sublime-settings, but I'm guessing that's because I don't have a file named ~/.config/sublime-text-3/Packages/User/Default (Linux).sublime-settings.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions