Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalised method for shortcuts to sites and site-searches? #218

Open
emacsomancer opened this issue Dec 15, 2016 · 4 comments
Open

Generalised method for shortcuts to sites and site-searches? #218

emacsomancer opened this issue Dec 15, 2016 · 4 comments

Comments

@emacsomancer
Copy link

Is there a generalised method for creating (1) shortcuts to sites, e.g. C-c C-r to open "roots-archives.com", and (2), (perhaps more importantly), site-internal searches, e.g. C-c C-i + a search term $S to search imdb.com for $S?

(I'm trying to migrate from Conkeror to keysnail, and this is one feature I'm missing from Conkeror.)

@ncaq
Copy link

ncaq commented Dec 16, 2016

We hope you find it informative.
This code search select word by eow.

key.setViewKey('C-\'', function (ev, arg) {
    gBrowser.loadOneTab(util.format("https://eowf.alc.co.jp/search?q=%s", encodeURIComponent(command.getClipboardText(true))));
}, 'goto_alc_from_selection_clipboard_in_tree');

@emacsomancer
Copy link
Author

Thanks @ncaq, that does help for one function I wanted.

Do you know if there is a good example of making a shell command like:

amazon high quality green tea

which would open up amazon and do a search for "high quality green tea"?

@ncaq
Copy link

ncaq commented Dec 17, 2016

I don't use keysnail when it case.
I copy to clipboard high quality green tea, and search from firefox standard awesome bar.
I recommend see How to search IMDB, Wikipedia and more from the address bar | Firefox Help

@emacsomancer
Copy link
Author

I've tried this, but it's not ideal. There's no sort of autocompletion, so I can't do gitl TAB and have it complete gitlab and then type a search item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants