- chore: bump py313 (ST >=4201)
- fix: compatibility with ST 4201 (py313)
- fix: wrong results after
undocommand - refactor: tidy codes
Package Control v4 is required due to the use of more-itertools py38 dependency.
- refactor: tidy codes
- chore: add
more-itertoolsas a dependency
- refactor: tidy codes (ST>=4152)
- refactor: add
NO_UNDOflag toview.add_regions - refactor: sort merged regex by scheme length DESC
- refactor: use py38 syntax
- chore: format
pyproject.tomlwith taplo
- refactor: tidy codes
- fix: occasionally startup exception
- feat: capture URLs starting with "www" without a scheme
- fix: wrong link in "Copy ..." context menu
- refactor: for ST >= 4132, utilize
view.expand_to_scopeAPI
- refactor: simplify
boot.py
- fix: modules should be reloaded when update plugin
- fix: RuntimeError: dictionary changed size during iteration
- refactor: tweak directory structure
- fix: wrong result if selected region's
.b > .a - chore: improve type annotations
- feat: add commands to copy URIs
- feat: copy/select URIs from context menu
-
fix: URI ends with "." in markdown image/link context (#8)
This fix also introduces a new setting:
expand_uri_regions_selectors
-
feat: check all foreground views for updating
Previously, OpenUri only checks the current activated view. Since OpenUri also checks whether the view is dirty before perform a update, I think this shouldn't be resource consuming.
-
refactor: drop ST 3 support
-
refactor: default mouse binding has been removed
If you need the mouse binding, add
[ // open URL via: alt + right click { button: 'button2', modifiers: ['alt'], command: 'open_context_url', }, ]
- refactor: tidy codes
Added
-
Use strings in setting
draw_uri_regions.flagsPreviously, it's simply an integer, which is less self-explanatory. Now, you can use a list of strings (flag names):
"draw_uri_regions": { // the draw flags used, see https://www.sublimetext.com/docs/api_reference.html "flags": [ "HIDE_ON_MINIMAP", "DRAW_SOLID_UNDERLINE", "DRAW_NO_FILL", "DRAW_NO_OUTLINE", ], },
Changed
- make
plugin_loaded()async to speed up ST startup - make plugin folder structure simpler
Documentation
- Update settings comments for recent ST 4 release
Added
-
Add setting:
work_for_transient_viewThis setting controls whether this plugin should work for a transient view such as file preview via "Goto Anything".
Fixed
- Plugin is not working for transient view. (#5)
Fixed
- Replace
open_uri_from_cursorswithopen_context_urlin mousemap.
Fixed
- Phantom is not generated when there is
&in the URI.
Fixed
- As of ST 4, remove a phantom position workaround.
Fixed
- Prevent from frequently calling
sublime.load_settings().
Fixed
- Delete phantoms when plugin unloaded.
Fixed
-
Phantom padding for some color schemes.
Some color schemes such as Material Theme's have large unneeded padding for phantoms somehow.
Changed
- Run with Python 3.8 in ST 4.
Changed
file://scheme is enabled by default now.- Update icon
FontAwesome/external-link.svg.
Fixed
file://scheme is not working for URL-encoded URIs.
Changed
- Bound renderer interval with a minimum value.
So if you accidentally use a tiny value like
0will not causing ST unresponsive.
Added
- Introduce
mypyfor static analysis.
Added
- Add and utilize the
typingmodule.
Changed
- Make
get_package_name()not hard-coded.
Changed
- The default mouse binding has been changed to
Ctrl + Right Click. Because theAltkey seems not working under Linux and I would like to provide a binding that hopefully works under all platform.
Fixed
- Do not let exceptions terminate the rendering thread.
Fixed
- Fix renderer thread crashes when viewing an image file with ST.
Changed
- Just some code structure tweaks.
Fixed
- Prevent from weird
phantom_set_idKeyError.
Added
- Add new log level: DEBUG_LOW
Changed
- Render phantoms/regions with another background thread.
- Rename
on_modified_typing_periodtotyping_period.
Fixed
- Fix and remove workaround for
is_view_too_large().
Fixed
- Optimize default URI regex for BBCode mismatches.
Added
- Allow drawing URI regions on hovering.
- Make text in the hovering popup configurable. (
popup_text_html) - Add log to show activated schemes.
Changed
- Allow drawing URI regions even if
show_open_buttonis"never". - Optimize the generated URI-matching regex.
- Change default key binding to
alt+o,alt+u. - Some minor mathematical optimizations.
Changed
- Plugin has been renamed from
OpenUriInBrowsertoOpenUri. use_show_open_button_fallback_if_file_larger_thandefaults to1MB.
Added
- Allow using different path regexes for different schemes.
Changed
- Change
uri_path_regexto prevent from some HTML problem. Escaped HTML entity may be trailing in a URL. Disallow<...>in URI because it's ambiguous with HTML tags.
Fixed
- Fix scheme for
mailto:.
Added
- Better logging messages with
log_level. - Better fitting for light/dark images via inverting gray scale.
Changed
- Auto refresh after saving the settings file to reflect changes.
Fixed
- Fix URL matching regex keeps getting compiled in
find_uri_regions_by_regions().
Added
- Add new command:
open_uri_from_view. - Add default key/mouse bindings.
- Allow setting a different image and color for popup.
Changed
-
Hovered behavior now uses popup rather than phantom.
-
Image-related user settings have been restructured.
-
Command names have been changed.
open_uri_in_browser_from_cursor->open_uri_from_cursorsselect_uri_from_cursor->select_uri_from_cursorsselect_uri->select_uri_from_view
Added
- Add new FontAwesome imagaes:
link,share-square,star. - Add new
image_new_window_colorvalues:"@scope","@scope_inverted". This will make the phantom be the same color with the corresponding URI.
Changed
- Change default "on_modified_typing_period" to 150.
- Downscaling FontAwesome images to 48x48.
Added
- Colored phantom PNG images are now generated in-memory.
So you are able to use any color for those images.
See setting
image_new_window_color.
Changed
- Use icons from FontAwesome.
- Default
uri_path_regexnow matches Unicode URIs.
Fixed
- Fix phantom may break "scope brackets"
`for BracketHilighter. - Fix scaling ratio when using non-square images in phantoms.
Added
- Add setting
use_show_open_button_fallback_if_file_larger_than. - Add setting
show_open_button_fallback. - Add new
show_open_buttonvalues:never.
Fixed
on_hovernow draws URI regions ifdraw_uri_regionsis enabled.
Fixed
- Fix that I misunderstand how
sublime.Settings.add_on_change()works.
nits
Added
- Add config the regex to match URI's path part. (
uri_path_regex) - Add new schemes:
mms://andsftp://.
Changed
- The settings of
detect_schemesis now plain text rather than regex. This allows the generated regex to be further optimized.
Added
- Add the ability to highlight URI regions. (see
draw_uri_regions)
Changed
- Remove detection for websocket scheme.
Changed
- Better phantom looking.
Changed
- Change default "on_modified_typing_period" to 150.
Fixed
- Fix circular import.
Changed
- Cache the "new_window" image content in memory.
Changed
- Setting
on_hoveris now changed toshow_open_button."on_hover": trueis the same with"show_open_button": "hover"."on_hover": falseis the same with"show_open_button": "always".
Fixed
- Fixed old phantoms are not removed after reloading plugin.
Added
- Add commands:
select_uriandselect_uri_from_cursor. - Add some menus.
Added
- Add config:
on_modified_typing_period.
Changed
- Plugin name has been changed to
OpenUriInBrowser. - Command
open_url_in_browser_from_cursorhas been changed toopen_uri_in_browser_from_cursor. - All other
URL-related things have been renamed toURIif not mentioned here.
Added
- Allow multiple cursors to open multiple URLs at once via a command (
open_url_in_browser_from_cursor).
Changed
- Technically a total rewrite.
- Simplified URL-finding REGEX.
- Self-managed phantom set. Do not clear phantoms when a view is deactivated.
- Use binary searching to find URLs which should be opened.
Added
- User level settings.
Changed
- Getting phantom icon from a function.
Changed
- Fix to read phantom icon.
Changed
- Fix to read phantom icon.
Changed
- Fix settings file.
Added
- Add image to README.md.
Changed
- Fix settings file.
- Update README.md.
Changed
- Remove firefox as default browser.
- Update README.md.
Added
- Regex to detect URLs.
- Option to display links permanently or on hover.
Removed
- Support for opening files was removed as the usage is very limited.
Added
- Command option to open settings.
Fixed
- Fix for URLs with special characters.
Added
- Provision to specify custom browser to open links.
- Option to disable plugin.
- Open files with their default application on system.
Changed
- Popup was replaced by phantom as suggested by @FichteFoll.
Added
- "Open in Browser" popup while hovering over links or filepaths surrounded by quotes or whitespaces.