paperwm / gnome-shell-mode

Package for developing gnome-shell extensions
GNU General Public License v2.0
27 stars 7 forks source link

Documentation lookup #7

Open olejorgenb opened 7 years ago

olejorgenb commented 7 years ago

Ideally we want this inline in emacs. Maybe use https://github.com/jinzhu/zeal-at-point .

Preliminary research:

We can easily get the corresponding native c function when we can evaluate the js function:

global.display.focus_window.change_workspace
//: function change_workspace(workspace) {
//:     /* proxy for native symbol meta_window_change_workspace(); */
//: }

Doesn't seem to be a global (all gnome packages) index unfortunately. It's not possible in general to extract the package name from the method name. (Some packages have multiple words). We can of course hard code such mappings.

To control which browser window to open a link in: simply focus it before opening the link.

olejorgenb commented 7 years ago

Yey! https://developer.gnome.org/symbols/?q=meta_window_get_mutter_hints

There's also a endpoint for looking up partial symbols: eg. https://developer.gnome.org/symbols/lookup/get_children The query will be surrounded by wildcards. It's possible to embed wildcards using % (URI encoded %25). Max 50 results. Source: https://git.gnome.org/browse/library-web/tree/web/api.py

There is a search box at the bottom of https://developer.gnome.org/references