SublimeWiki icon indicating copy to clipboard operation
SublimeWiki copied to clipboard

Having CTRL-Enter also as a default key combination

Open kszcode opened this issue 13 years ago • 5 comments

Hello!

Considering tomboy and xiki's behavior it might make sense to have Ctrl-Enter also included as a default key combination.

What do you think?

kszcode avatar Apr 23 '13 12:04 kszcode

This would be a 1 line change; I don't think it'll be a big deal. The only possible downside is collision on that key combo, but I'll make sure it's safe before I commit it.

PogiNate avatar Apr 23 '13 15:04 PogiNate

Thank you for your fast response!

I would have a couple of more suggestions:

  1. how about adding headings like text ending with colons something like this in the .tmLanguage file
    <dict>
        <key>match</key>
        <string>^\s*(\w+.+:\s*$\n?)</string>
        <key>name</key>
        <string>keyword.control.header.Wiki</string>
    </dict>
  1. it would be also nice enabling CTRL-R Wiki.tmPreferences
    <?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>Wiki</string>

      <key>scope</key>
      <string>keyword.control.header.Wiki, markup.underline.link.internal.Wiki</string>

      <key>settings</key>
      <dict>
        <key>showInSymbolList</key>
        <integer>1</integer>

        <!-- Make sure that not more then 110 characters are sent per line to the method list -->
        <key>symbolTransformation</key>
        <string>s/^\s*(.{1,120}).*/$1/</string>
      </dict>

    </dict>
    </plist>

kszcode avatar Apr 23 '13 20:04 kszcode

And for compatibility with Monokai bright theme, I've added a string here, to have the Camel Case words highlighted:

        <dict>
            <key>comment</key>
            <string>Match WikiWords and make them into links.</string>
            <key>match</key>
            <string>([A-Z][a-z]+){2,}</string>
            <key>name</key>
            <string>string.markup.underline.link.internal.Wiki</string>
        </dict>

kszcode avatar Apr 23 '13 21:04 kszcode

If you'd like to submit a pull request with all the changes I'll look it over and pull it in; these look like helpful additions.

PogiNate avatar Apr 23 '13 21:04 PogiNate

These changes were made in #5

PogiNate avatar Apr 24 '13 19:04 PogiNate