mnewt / asx

Ask StackExchange/StackOverflow in Emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example.gif

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.

Install

Available on MELPA.

Usage

Run M-x asx and enter query when prompted.

Configuration

VariableNotesDefault
asx-sitesSites to search.("stackoverflow.com" ...)
asx-search-engineSearch engine to use.google
asx-search-engine-alistAlist of search engine configuration.((google ..) (duckduckgo ..))
asx-number-of-answersAnswers to include.3
asx-prompt-post-pIf non-nil, prompt for post to show. Otherwise show the first post.nil
asx-buffer-nameName of buffer to insert post.*AskStackExchange*
asx-skip-unansweredIf non-nil, skip posts which have no answers.t

Commands

VariableNotes
asxSearch for query.
asx-jumpJump to post.
asx-next-postGo to next post.
asx-previous-postGo to previous post.
asx-reload-postReload current post.
asx-go-back-to-first-postGo to first post.

Similar projects

About

Ask StackExchange/StackOverflow in Emacs

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 100.0%