This package allows you to search any StackExchange site specified in
asx-sites
and insert the top post in an Org-mode buffer. For better searching,
this uses Google and DuckDuckGo as it is superior to StackExchange’s searching
capabilities. More search engines can be defined using asx-search-engine-alist
.
Inspired by this reddit post and howdoyou.el, I decided to build a more robust experience and make it compatible with Org-mode.
I chose to scrape the StackExchange posts, as StackExchange’s API only allows searching/getting posts from a single site.
If Ivy 0.13.0 or Helm is installed, suggestions from Google or DuckDuckGo will be provided while you type.
Available on MELPA.
Run M-x asx
and enter query when prompted.
Variable | Notes | Default |
---|---|---|
asx-sites | Sites to search. | ("stackoverflow.com" ...) |
asx-search-engine | Search engine to use. | google |
asx-search-engine-alist | Alist of search engine configuration. | ((google ..) (duckduckgo ..)) |
asx-number-of-answers | Answers to include. | 3 |
asx-prompt-post-p | If non-nil, prompt for post to show. Otherwise show the first post. | nil |
asx-buffer-name | Name of buffer to insert post. | *AskStackExchange* |
asx-skip-unanswered | If non-nil, skip posts which have no answers. | t |
Variable | Notes |
---|---|
asx | Search for query. |
asx-jump | Jump to post. |
asx-next-post | Go to next post. |
asx-previous-post | Go to previous post. |
asx-reload-post | Reload current post. |
asx-go-back-to-first-post | Go to first post. |