Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
114 lines (113 sloc) 5.67 KB
// how detailed log messages should be?
// values can be
// - "NOTHING" (do not show anything)
// - "CRITICAL" (something makes plugin not workable)
// - "ERROR" (something is wrong)
// - "WARNING" (something may be wrong)
// - "INFO" (those that users may interest in)
// - "DEBUG" (for developer)
// - "DEBUG_LOW" (for developer, even more detailed than DEBUG)
"log_level": "INFO",
// browser used to open a URI. leave this empty to use a default browser.
// available values could be found on
"browser": "",
// when to show a phantom/popup button beside a URI?
// values can be
// - "always" (always show buttons)
// - "hover" (only when the URI is hovered)
// - "never" (never show buttons)
"show_open_button": "always",
// if the file is too large, this setting will be used as the fallback setting of "show_open_button"
"show_open_button_fallback": "hover",
// if the file size is larger than the given one, it will uses "show_open_button_fallback" as the fallback mode
"large_file_threshold": 1000000, // 1MB
// the period (in millisecond) that consecutive modifications are treated as typing
// phantoms will be updated only when the user is not considered typing
"typing_period": 250,
// the interval (in millisecond) for checking whether to render the current view
// 500 means the background thread will check the current view should be re-rendered or not, every 500ms
"renderer_interval": 500,
// the text HTML used in the hovering popup
"popup_text_html": "<span>Open this URI</span>",
// images used in this plugin (only supports PNG format)
// for other plugin-shipped images, visit
// if you don't like them, you can even define your own image path.
"image_files": {
"phantom": "Packages/${package_name}/images/FontAwesome/external-link-square.png",
"popup": "Packages/${package_name}/images/FontAwesome/share-square.png",
// colors which used to color corresponding images
// values can be
// - "" (empty string, use the original color of the image)
// - "@scope" (use the same color with the corresponding URI's, require ST >= 3170)
// - "@scope_inverted" (use the inverted color of the corresponding URI's, require ST >= 3170)
// - ST's scope (use the color of the scope, require ST >= 3170)
// - color code in the form of "#RGB", "#RRGGBB" or "#RRGGBBAA"
"image_colors": {
"phantom": "#fa8c00",
"popup": "#fa8c00",
// draw URI regions such as adding a underline?
"draw_uri_regions": {
// when to draw URI regions?
// values can be
// - "always" (always draw)
// - "hover" (only when the URI is hovered)
// - "never" (never draw)
"enabled": "never",
// the scope used to highlight URI regions (you may customize it with your theme)
"scope": "string",
// icon in the gutter: "dot", "circle", "bookmark" or empty string for nothing
"icon": "",
// @see
// sublime.DRAW_EMPTY = 1
// sublime.HIDE_ON_MINIMAP = 2
// sublime.DRAW_NO_FILL = 32
// sublime.HIDDEN = 128
// sublime.DRAW_NO_OUTLINE = 256
// sublime.DRAW_SOLID_UNDERLINE = 512
"flags": 802,
// defined schemes (case-insensitive) that wants to be detected
// you may add your own new schemes to be detected
// key / value = scheme / enabled
"detect_schemes": {
// basic
"file://": {"enabled": false, "path_regex": "@default"},
"ftp://": {"enabled": true, "path_regex": "@default"},
"ftps://": {"enabled": true, "path_regex": "@default"},
"http://": {"enabled": true, "path_regex": "@default"},
"https://": {"enabled": true, "path_regex": "@default"},
"mailto:": {"enabled": true, "path_regex": "@default"},
// server
"sftp://": {"enabled": false, "path_regex": "@default"},
"ssh://": {"enabled": false, "path_regex": "@default"},
"telnet://": {"enabled": false, "path_regex": "@default"},
// P2P
"ed2k://": {"enabled": false, "path_regex": "@default"},
"freenet://": {"enabled": false, "path_regex": "@default"},
"magnet:?": {"enabled": false, "path_regex": "@default"},
// messenger
"irc://": {"enabled": false, "path_regex": "@default"},
"line://": {"enabled": false, "path_regex": "@default"},
"skype:": {"enabled": false, "path_regex": "@default"},
"tencent://": {"enabled": false, "path_regex": "@default"},
"tg://": {"enabled": false, "path_regex": "@default"},
// regexes (case-insensitive) used to match the URI's path part
"uri_path_regexes": {
// this is the default path regex for all schemes
"@default": "(?:[^\\s()\\[\\]{}<>`^*'\"ā€œā€ā€˜ā€™]|\\((?![/\\\\])[^\\s)]*\\)|\\[(?![/\\\\])[^\\s\\]]*\\]|\\{(?![/\\\\])[^\\s}]*\\})+(?<![:.,!?Ā”Āæļ¼Œć€‚ļ¼ļ¼Ÿ])",
// an example which can be used to match ASCII-only URIs
"ascii_only": "[a-z0-9@~_+\\-*/&=#%|:.,!?]+(?<=[a-z0-9@~_+\\-*/&=#%|])",
// how many neighbor chars from a cursor will be used to find a URI
"uri_search_radius": 200,
You canā€™t perform that action at this time.