Skip to content

Comment hotkey does not work #1

Description

@wwerkk

First of all, massive respect for making this package, I cannot express how pleasant it is to be able to write genexpr code without the usual codebox masochism.

I have noticed that the comment hotkey (CMD+/) does not seem to work.
After inputting sublime.log_commands(True) into console, pressing the hotkey combination prints:
command: toggle_comment {"block": false}

I guess this is related to Sublime not being aware of what is the suitable comment syntax in case of genexpr.

There is a dirty fix of editing /Users/wwerkowicz/Library/Application Support/Sublime Text/Packages/User/.tmPreferenceswhich worked for me, but I'm sure it could be done better and perhaps by default.
For reference, my .tmPreferences file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>name</key>
    <string>Comments</string>
    <key>scope</key>
    <string>source.genexpr</string>
    <key>settings</key>
    <dict>
        <key>shellVariables</key>
        <array>
            <dict>
                <key>name</key>
                <string>TM_COMMENT_START</string>
                <key>value</key>
                <string>// </string>
            </dict>
        </array>
    </dict>
</dict>
</plist>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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