sublime-rainmeter icon indicating copy to clipboard operation
sublime-rainmeter copied to clipboard

Use goto definition of keys to go to documentation

Open thatsIch opened this issue 9 years ago • 2 comments

Maybe download and display real HTML or just link to homepage.

Most times the hints are not information enough and thus people need to read the real documentation. But especially learning from skins going there manually is very cumbersome.

Clicking on a GraphStart could directly either open https://docs.rainmeter.net/manual-beta/meters/histogram/#GraphStart in the browser or make a mirror on each start and handle the rendering manually in sublime text.

thatsIch avatar Nov 17 '16 21:11 thatsIch

The default goto definition can not be overwritten with own behaviour. It uses the indexed symbol system to navigate around in the project.

thatsIch avatar Jan 05 '17 10:01 thatsIch

connection check requires something like

import http.client

conn = http.client.HTTPSConnection("docs.rainmeter.net", timeout=1)
conn.request("HEAD", "/manual-beta/")
response = conn.getresponse()
print(response.status, response.reason)

this but it can throw random exceptions depending on the error. Probably just wrapping it into try catch should do it

could throw:

  • https://docs.python.org/3.3/library/socket.html#socket.gaierror
  • https://docs.python.org/3.3/library/http.client.html#http.client.HTTPException

I am not aware of others..

thatsIch avatar Jan 05 '17 11:01 thatsIch