Maven: The De Facto Build Tool for JVM Projects

Maven: The De Facto Build Tool for JVM Projects

Install

# on Mac OS X
$ brew install maven
$ brew install maven-completion

ref:
https://maven.apache.org/index.html

Commands

# create project: interactive mode
$ mvn archetype:generate \
-DarchetypeArtifactId=maven-archetype-quickstart \
-DinteractiveMode=true

# create project: non-interactive mode
$ mvn archetype:generate \
-DarchetypeArtifactId=maven-archetype-quickstart \
-DinteractiveMode=false \
-DgroupId=ws.vinta.pangu \
-DartifactId=pangu

# download dependencies
$ mvn dependency:copy-dependencies

# download dependencies to a specific directory
$ mvn dependency:copy-dependencies -DoutputDirectory=jars

# analyze unused dependencies
$ mvn dependency:analyze

$ mvn compile

$ mvn test

# run a specific class
$ mvn exec:java -Dexec.mainClass="pangu_example.App"

# package a JAR
$ mvn package

# 提交到 central repository 之前可以用這個來測試一下安裝有沒有問題
$ mvn clean install

build lifecycle
http://openhome.cc/Gossip/JUnit/BuildLifeCycle.html

  • src/main/java 放置專案原始碼
  • src/test/java 放置單元測試用原始碼
  • src/main/resources 放置設定檔,例如 log4j.properties
  • src/test/resources 放置測試用設定檔,如同測試程式本身不會被打包進 jar

Configuration

in pom.xml

放 per project 的設定

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>
  <groupId>ws.vinta</groupId>
  <artifactId>pangu</artifactId>
  <version>1.0.1-SNAPSHOT</version>
  <packaging>jar</packaging>
  <name>Pangu</name>
  <description>Paranoid text spacing for good readability, to insert whitespace between CJK (Chinese, Japanese, Korean), half-width English, digit and symbol characters automatically.</description>
  <url>https://github.com/vinta/pangu.java</url>
  <inceptionYear>2014</inceptionYear>
  <licenses>
    <license>
      <name>MIT License</name>
      <url>http://www.opensource.org/licenses/mit-license.php</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>vinta</id>
      <name>Vinta</name>
      <email>[email protected]</email>
      <url>http://vinta.ws/</url>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:[email protected]:vinta/pangu.java.git</connection>
    <developerConnection>scm:git:[email protected]:vinta/pangu.java.git</developerConnection>
    <url>[email protected]:vinta/pangu.java.git</url>
    <tag>HEAD</tag>
  </scm>
  <issueManagement>
    <system>GitHub Issues</system>
    <url>https://github.com/vinta/pangu.java/issues</url>
  </issueManagement>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <distributionManagement>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
    <repository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
  </distributionManagement>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.5</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.2</version>
        <configuration>
          <source>${maven.compile.source}</source>
          <target>${maven.compile.target}</target>
          <optimize>${maven.compile.optimize}</optimize>
          <encoding>UTF8</encoding>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.4</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.10.1</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
        <version>1.6.5</version>
        <extensions>true</extensions>
        <configuration>
          <serverId>ossrh</serverId>
          <nexusUrl>https://oss.sonatype.org/</nexusUrl>
          <autoReleaseAfterClose>true</autoReleaseAfterClose>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.5.1</version>
        <configuration>
          <autoVersionSubmodules>true</autoVersionSubmodules>
          <useReleaseProfile>false</useReleaseProfile>
          <releaseProfiles>release</releaseProfiles>
          <goals>deploy</goals>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

ref:
http://maven.apache.org/pom.html
https://github.com/vinta/pangu.java/blob/master/pom.xml

Maven 的 groupId 基本上只是用來標示這個 artifact 屬於哪一個 group
基本上就是用你的 domain name 就好了
跟 Java 的 package 路徑沒有關係

in settings.xml

放 global 的設定

ref:
http://maven.apache.org/ref/3.2.3/maven-settings/settings.html

maven-source-plugin

maven-javadoc-plugin

How to attach source and javadoc artifacts?
http://maven.apache.org/plugin-developers/cookbook/attach-source-javadoc-artifacts.html

$ mvn source:jar
$ mvn javadoc:jar
# or
$ mvn package

Find packages

ref:
https://search.maven.org/
https://mvnrepository.com/

Issues

中文會是亂碼

<project>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
</project>

ref:
http://maven.apache.org/general.html#encoding-warning

新增額外的 Maven Repositories

in pom.xml

<project>
    <repositories>
        <repository>
            <id>spark-packages</id>
            <name>Spark Packages Repository</name>
            <url>https://dl.bintray.com/spark-packages/maven/</url>
        </repository>
    </repositories>
</project>

ref:
https://maven.apache.org/guides/mini/guide-multiple-repositories.html

允許下載 SNAPSHOT 版本的 libraries

in ~/.m2/settings.xml

<settings>
  <profiles>
    <profile>
      <id>allow-snapshots</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <repositories>
        <repository>
          <id>ossrh-snapshots-repo</id>
          <url>https://oss.sonatype.org/content/repositories/snapshots</url>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>
    </profile>
  </profiles>
</settings>

你可以新增多個 snapshots repo 的來源

Could not find artifact com.sun:tools:jar

ref:
http://maven.apache.org/general.html#tools-jar-dependency

Must Have Sublime Text 3 Packages

Must Have Sublime Text 3 Packages

AceJump

link: https://github.com/ice9js/ace-jump-sublime

AceJump allows you to move the cursor to any character to any place currently on screen

All Autocomplete

link: https://github.com/alienhard/SublimeAllAutocomplete

Extend Sublime autocompletion to find matches in all open files of the current window

ANSIescape (X)

link: https://packagecontrol.io/packages/ANSIescape

Ansible

link: https://github.com/clifford-github/sublime-ansible

Syntax highlighting for Ansible

ApplySyntax

link: https://github.com/facelessuser/ApplySyntax

Applying syntax by custom rules

Preferences > Package Settings > ApplySyntax > Settings - User

{
    "reraise_exceptions": false,
    "new_file_syntax": false,
    "syntaxes": [
        {
            "name": "Djaneiro/Syntaxes/HTML (Django)",
            "match": "all",
            "rules": [
                {"file_name": ".*\\.(html|htm)$"},
                {"first_line": "{%"}
            ]
        },
        {
            "name": "Djaneiro/Syntaxes/Python Django",
            "match": "all",
            "rules": [
                {"file_name": ".*\\.py$"},
                {"contains": "from django"}
            ]
        },
        {
            "name": "Djaneiro/Syntaxes/Python Django",
            "rules": [
                {"file_name": ".*(\\\\|/)local_settings.py$"},
                {"file_name": ".*(\\\\|/)settings.py$"}
            ]
        },
        {
            "name": "Python/Python",
            "rules": [
                {"file_name": ".*\\.py$"}
            ]
        }
    ]
}

AutoPEP8 (X)

link: https://github.com/wistful/SublimeAutoPEP8

Automatically formats Python code to conform to the PEP 8.

Babel

link: https://packagecontrol.io/packages/Babel

Syntax definitions for ES6 JavaScript with React JSX extensions.

BigComment (X)

link: https://github.com/manse/BigComment

Generate ascii-art comment to display text on Minimap.

$ cd "/Users/vinta/Library/Application Support/Sublime Text 3/Packages"
$ git clone [email protected]:manse/BigComment.git

Command + Option + C

BracketHighlighter

link: https://github.com/facelessuser/BracketHighlighter/

Brackets and Tags highlighter.

BufferScroll (X)

link: https://github.com/SublimeText/BufferScroll

Remember, restore and sync scroll, bookmarks, marks, folds and cursors

Case Conversion (X)

link: https://github.com/jdc0589/CaseConversion

Toggle variable naming styles.

Control + Option + C > Control + Option + S >> under_score
Control + Option + C > Control + Option + P >> PascalCase
Control + Option + C > Control + Option + C >> camelCase

ChineseOpenConvert

link: https://packagecontrol.io/packages/ChineseOpenConvert

String translation between Traditional Chinese and Simplified Chinese.

ColorPicker (X)

link: https://github.com/weslly/ColorPicker

Command + Shift + C

Color Highlighter (X)

link: https://github.com/Monnoroch/ColorHighlighter

把游標移進去之後,會自動把 #FFFFFF 之類的字串變成對應的顏色

Color Scheme - Behave

link: https://github.com/fnky/behave-theme

CSS Completions (X)

link: https://github.com/daneden/sublime-css-completions

DashDoc

link: https://github.com/Kapeli/DashDoc

Control + D
用游標所在字詞搜尋 Dash

in Dash: Preferences > General > Global search shorcut -- Shift + D
in System Preferences: Keyboard > Shortcuts > Services > Searching > Look Up in Dash -- Control + D

Preferences > Key Bindings - User

[
    {"command": "dash_doc", "keys": ["ctrl+d"]},
]

Djaneiro

link: https://github.com/squ1b3r/Djaneiro

Control + Space

Dotfiles Syntax Highlighting

link: https://github.com/mattbanks/dotfiles-syntax-highlighting-st2

Bring ShellScript (Bash) syntax highlighting to dotfiles

EncodingHelper

link: https://github.com/SublimeText/EncodingHelper

Guess encoding of files, show in status bar, convert to UTF-8 from a variete of encodings

ExpandRegion

link: https://github.com/aronwoost/sublime-expand-region

A better "Expand Selection to Scope".

Find++ (X)

link: https://github.com/twolfson/FindPlusPlus

Find in current folder, Find in open files...

FuzzyFilePath (X)

link: https://github.com/sagold/FuzzyFilePath

Preferences > Key Bindings - User

[
    {"command": "insert_path", "keys": ["ctrl+t"], "args": {"type": "absolute"}},
    ...
]

Generic Config

link: https://github.com/skozlovf/Sublime-GenericConfig

Generic highlighting of the configuration files

Git

link: https://github.com/kemayo/sublime-text-git

Preferences > Package Settings > Git > Settings - User

{
    "diff_panel": true,
    "statusbar_branch": true,
    "statusbar_status": false
}

GitHubinator

link: https://github.com/ehamiter/GitHubinator

Open a corresponding page of current file on GitHub.

GitSavvy (X)

link: https://github.com/divmain/GitSavvy/

Full git and GitHub integration

Godef

link: https://github.com/buaazp/Godef

Better than GoSublime's Goto Definition.

$ go get -u github.com/rogpeppe/godef

Google Search

link: https://github.com/nwjlyons/google-search

Search Google for the currently selected text.

GoSublime

link: https://github.com/DisposaBoy/GoSublime

$ go get -u github.com/nsf/gocode

HTML5

link: https://github.com/mrmartineau/HTML5

HTML-CSS-JS Prettify

link: https://github.com/victorporof/Sublime-HTMLPrettify

Command + Shift + H(or 右鍵選單)

JavaScript Completions

link: https://sublime.wbond.net/packages/JavaScript%20Completions

JavaScript Next

link: https://github.com/Benvie/JavaScriptNext.tmLanguage

Better JavaScript language definition.

Jedi

link: https://github.com/srusskih/SublimeJEDI

Awesome Python autocompletion with SublimeText 3.

Control + Option + G (or CONTROL + 左鍵)
Go to definition
建議改成 Control + G

Control + Option + F (or OPTION + 左鍵)
Find usages
建議改成 Control + F

Preferences > Key Bindings - User

[
    {"command": "sublime_jedi_find_usages", "keys": ["ctrl+f"], "context": [{"key": "selector", "operator": "equal", "operand": "source.python - string - comment"}]},
    {"command": "sublime_jedi_goto", "keys": ["ctrl+g"], "context": [{"key": "selector", "operator": "equal", "operand": "source.python - string - comment"}]}
]
[
    {"command": "sublime_jedi_goto", "modifiers": ["ctrl"], "button": "button1", "press_command": "drag_select"},
    {"command": "sublime_jedi_find_usages", "modifiers": ["alt"], "button": "button1", "press_command": "drag_select"}
]

in YOUR_PROJECT.sublime-project

{
    "folders":
    [
        {
            "path": "/Users/vinta/Projects/codebaku-web"
        },
        {
            "path": "/Users/vinta/Projects/codebaku-hubot"
        }
    ],
    "settings":
    {
        "python_interpreter": "/Users/vinta/.pyenv/versions/3.4.3/bin/python3.4",
        "python_package_paths":
        [
            "/Users/vinta/Dropbox/Developments/virtualenv_codebaku/dist-packages"
        ]
    }
}

jQuery

link: https://github.com/SublimeText/jQuery

Snippets for jQuery.

KeybardSpellCheck

link: https://github.com/jlknuth/KeyboardSpellCheck

Control + Alt + K

Keymaps

link: https://github.com/MiroHibler/sublime-keymaps

Control + Option + ?

LineJumper

link: https://github.com/hypebeast/LineJumper

Move your cursor and select 10 lines at a time.

Fn + 方向鍵
游標移動 1 頁

Option + 方向鍵
游標移動 n 行

Preferences > Key Bindings - User

[
    {"command": "line_jumper", "keys": ["alt+up"], "args": {"number_of_lines": 5, "cmd": "up"}},
    {"command": "line_jumper", "keys": ["alt+down"], "args": {"number_of_lines": 5, "cmd": "down"}},
    ...
]

Markdown Extended

link: https://github.com/jonschlinkert/sublime-markdown-extended

Supporting GitHub Flavored Markdown

Modific

link: https://github.com/gornostal/Modific

Highlight lines changed since the last commit

Pretty JSON

link: https://github.com/dzhibas/SublimePrettyJson

Formating JSON.

$ brew install jq

Preferences > Package Settings > Pretty JSON > Settings - User

{
    "indent": 4
}

PyCover (X)

link: https://packagecontrol.io/packages/PyCover

Showing coverage infomation in Sublime Text.

Python Improved

link: https://github.com/MattDMo/PythonImproved

A better Python .tmLanguage definition.

requirementstxt

link: https://github.com/wuub/requirementstxt

Syntax highlighting for requirements.txt.

Select Quoted

link: https://github.com/int3h/SublimeSelectQuoted

Command + "
選擇 "" 或 '' 內的文字

Command + (
選擇 () 的文字

Preferences > Key Bindings - User

[
    {"command": "expand_selection", "args": {"to": "brackets"}, "keys": ["super+9"]},
    ...
]

SideBarEnhancements

link: https://github.com/titoBouzout/SideBarEnhancements

StringUtilities

link: https://packagecontrol.io/packages/StringUtilities

Sublimall

link: https://github.com/vinta/sublimall-server

Synchronize your Sublime Text preferences and packages configurations

原作者已經停止開發了
不過我 fork 了一個版本
加上 deploy 到 Heroku 的功能

$ brew install p7zip

Preferences > Package Settings > Sublimall > Settings - User

{
    "email": "[email protected]",
    "api_key": "YOUR_API_KEY",
    "7za_path": "/usr/local/bin/7za"
}

sublime-github

link: https://github.com/bgreenlee/sublime-github

SublimeLinter

link:
https://github.com/SublimeLinter/SublimeLinter3
https://github.com/SublimeLinter/SublimeLinter-annotations
https://github.com/SublimeLinter/SublimeLinter-flake8
https://github.com/SublimeLinter/SublimeLinter-json
https://github.com/sirreal/SublimeLinter-contrib-golint
https://github.com/sirreal/SublimeLinter-contrib-govet

各語言的 coding style 和 syntax 檢查
SublimeLinter 3 並不包含 linter,要自己用 Package Control 安裝

Preferences > Package Settings > SublimeLinter > Settings - User

{
    "user": {
        "debug": false,
        "delay": 0.65,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
        "gutter_theme_excludes": [],
        "lint_mode": "background",
        "linters": {
            "annotations": {
                "@disable": false,
                "args": [],
                "errors": [
                    "DIRTY HACK",
                    "FIXME",
                    "TEST"
                ],
                "excludes": [],
                "warnings": [
                    "CAUTION",
                    "TODO",
                    "README"
                ]
            },
            "flake8": {
                "@disable": false,
                "args": [],
                "builtins": "",
                "excludes": [],
                "executable": "",
                "ignore": "E501",
                "jobs": "1",
                "max-complexity": -1,
                "max-line-length": 999,
                "select": "",
                "show-code": true
            },
            "golint": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "govet": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "json": {
                "@disable": false,
                "args": [],
                "excludes": [],
                "strict": true
            }
        },
        "mark_style": "fill",
        "no_column_highlights_line": true,
        "passive_warnings": false,
        "paths": {
            "linux": [],
            "osx": [
                "/Users/vinta/.pyenv/versions/2.7.10/bin",
                "/Users/vinta/.pyenv/versions/3.5.0/bin",
                "/Users/vinta/.gvm/gos/go1.5.3/bin",
                "/Users/vinta/Projects/oh-my-go/bin"
            ],
            "windows": []
        },
        "python_paths": {
            "linux": [],
            "osx": [],
            "windows": []
        },
        "rc_search_limit": 0,
        "shell_timeout": 10,
        "show_errors_on_save": false,
        "show_marks_in_minimap": false,
        "syntax_map": {
            "html (django)": "html",
            "html 5": "html",
            "python django": "python",
            "pythonimproved": "python"
        },
        "warning_color": "DDB700",
        "wrap_find": true
    }
}

tern_for_sublime

link: https://github.com/marijnh/tern_for_sublime

Handling autocompletion for JavaScript by tern.js.

$ cd "/Users/vinta/Library/Application Support/Sublime Text 3/Packages/"
$ git clone git://github.com/marijnh/tern_for_sublime.git

$ cd tern_for_sublime
$ npm install

Preferences > Settings - User

{
    "auto_complete": true,
    "auto_complete_triggers":
    [
        {
            "selector": "source.js",
            "characters": "."
        }
    ],
    ...
    "tern_argument_hints": true,
    "tern_arguments": [
         "--no-port-file"
    ],
    "tern_command":
    [
         "/Users/vinta/.nvm/v0.10.32/bin/node",
         "/Users/vinta/.nvm/v0.10.32/bin/tern"
    ],
    ...
}

in PROJECT_ROOT/.tern-project

{
    "libs": [
        "angular",
        "browser",
        "jquery"
    ]
}

OPTION + .
Go to definition

ref:
http://ternjs.net/doc/manual.html

Theme - Afterglow

link: https://github.com/YabataDesign/afterglow-theme

Theme - itg.flat

link: https://github.com/itsthatguy/theme-itg-flat

ToggleQuotes

link: https://github.com/spadgos/sublime-ToggleQuotes

建議改成 Control + '

--

Preferences > Key Bindings - User

[
    {"command": "ace_jump_char", "keys": ["super+shift+'"]},
    {"command": "better_bookmarks_clear_all_marks", "keys": ["shift+f12"]},
    {"command": "better_bookmarks_clear_marks", "keys": ["f12"]},
    {"command": "better_bookmarks_mark_line", "keys": ["f11"]},
    {"command": "dash_doc", "keys": ["ctrl+d"]},
    {"command": "expand_selection", "keys": ["alt+."], "args": {"to": "tag"}},
    {"command": "expand_selection", "keys": ["alt+0"], "args": {"to": "brackets"}},
    {"command": "find_under_expand", "keys": ["super+d"]},
    {"command": "fpp_find_in_project", "keys": ["super+shift+g"]},
    {"command": "godef", "keys": ["ctrl+g"], "context": [{"key": "selector", "operator": "equal", "operand": "source.go"}]},
    {"command": "google_search", "keys": ["ctrl+q"]},
    {"command": "gs_browse_declarations", "keys": ["ctrl+f"], "args": {"dir": "."}, "context": [{"key": "selector", "operator": "equal", "operand": "source.go"}]},
    {"command": "gs_doc", "keys": ["ctrl+h"], "args": {"mode": "hint"}, "context": [{"key": "selector", "operator": "equal", "operand": "source.go"}]},
    {"command": "gs_inline_diff", "keys": ["ctrl+c"]},
    {"command": "gs_show_status", "keys": ["ctrl+s"]},
    {"command": "insert_snippet", "keys": ["ctrl+shift+v"], "args": {"contents": "from IPython import embed; embed()"}},
    {"command": "jump_back", "keys": ["alt+s"]},
    {"command": "jump_forward", "keys": ["alt+w"]},
    {"command": "line_jumper", "keys": ["alt+down"], "args": {"number_of_lines": 5, "cmd": "down"}},
    {"command": "line_jumper", "keys": ["alt+shift+down"], "args": {"number_of_lines": 5, "cmd": "down_select"}},
    {"command": "line_jumper", "keys": ["alt+shift+up"], "args": {"number_of_lines": 5, "cmd": "up_select"}},
    {"command": "line_jumper", "keys": ["alt+up"], "args": {"number_of_lines": 5, "cmd": "up"}},
    {"command": "next_bookmark" , "keys": ["f10"]},
    {"command": "open_dir", "keys": ["alt+f"], "args": {"dir": "$file_path", "file": "$file_name"}},
    {"command": "open_file", "keys": ["super+alt+k"], "args":{"file": "${packages}/User/Default (OSX).sublime-keymap", "platform": "OSX"}},
    {"command": "prev_bookmark", "keys": ["f9"]},
    {"command": "reveal_in_side_bar", "keys": ["alt+r"]},
    {"command": "select_quoted", "keys": ["alt+'"]},
    {"command": "show_overlay", "keys": ["super+e"], "args": {"overlay": "goto", "text": ":"}},
    {"command": "show_overlay", "keys": ["super+t"], "args": {"overlay": "goto", "text": "#"}},
    {"command": "side_bar_project_open_file", "keys": ["super+alt+p"]},
    {"command": "spell_check", "keys": ["ctrl+t"]},
    {"command": "sublime_jedi_find_usages", "keys": ["ctrl+f"], "context": [{"key": "selector", "operator": "equal", "operand": "source.python - string - comment"}]},
    {"command": "sublime_jedi_goto", "keys": ["ctrl+g"], "context": [{"key": "selector", "operator": "equal", "operand": "source.python - string - comment"}]},
    {"command": "toggle_side_bar", "keys": ["super+\\"]}
]