Code Monkey home page Code Monkey logo

sublimetext2-linkopener's People

Contributors

cvladan avatar noxart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sublimetext2-linkopener's Issues

Breaks 'open_url' command shipped with Sublime Text

Sublime Text already has a command called 'open_url' that accepts a keyword argument 'url', when called it is redirected to LinkOpener.OpenUrlCommand that doesn't expect the extra argument

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 545, in run_
    return self.run(edit, **args)
TypeError: run() got an unexpected keyword argument 'url'

E.g., Help>Documentation is not working anymore (at least on Sublime Text 3 for Windows)

Search on Web doesn't redirect to browser

I get this message in the console when clicking the "search on web" option from context menu

Traceback (most recent call last):
File "./sublime_plugin.py", line 362, in run_
File "./LinkOpener.py", line 191, in run
AttributeError: 'NoneType' object has no attribute 'replace'

But I am using chromium under linux, so I think it's could be because python 2 doesn't manage this browser.

Not all URLs have a . in

A URL on a local network may not have a . in the server name, e.g.:
http://server/path

Here is a patch to LinkOpener.py that matches these:

30c30
< head = r"(?:(?:(?:http|https|ftp)://(?:\S+?))|(?:\bwww\.\S+?))"

---
> head = r"(?:(?:(?:http|https|ftp)://(?:\S*?\.\S+?))|(?:\bwww\.\S+?))"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.