summaryrefslogtreecommitdiff
path: root/Pancake.hs
AgeCommit message (Collapse)Author
2019-02-18Add the "gs" command for Gopher searchdefanor
2018-02-21Use Redland bindings instead of rdf4hdefanor
It's faster, includes a proper triple store with querying, and generally should be more useful.
2018-01-23Add initial RDF supportdefanor
With two types of caching: file-based for retrieved documents, and memory-based for predicate labels extracted from those.
2018-01-01Update copyright yearsdefanor
2017-12-28Lint Pancake.hsdefanor
2017-12-27Handle absolute ddg-encumbered linksdefanor
2017-12-27Add URI-based input completiondefanor
Not shared with Emacs yet, just for CLI.
2017-12-26Use Haskelinedefanor
The code is slightly cleaner with it, and it would be useful for completion.
2017-12-26Add the 'Pancake' type aliasdefanor
2017-12-24Fix a typodefanor
2017-12-22Partially delegate line wrapping to Emacsdefanor
Not for tables or lists, but for regular text lines. Using visual-line-mode for that by default.
2017-12-22Refine documentation annotations and function namesdefanor
2017-12-22Use a list of elements instead of enumerationdefanor
The list is ordered anyway, no need to keep numbers there.
2017-12-22Use enumeration instead of breadcrumbs for position trackingdefanor
Just to simplify it.
2017-12-21Retain position on redisplay, reload, etcdefanor
Based on line numbers that are attached to document blocks, not dependent on window/terminal width. Some bits can still be refined/refactored, but here's the initial support.
2017-12-19Enable a user to specify a configuration filedefanor
This covers both command-line options and the "load config" (former "reload config") command.
2017-12-18Read first command from command-line optionsdefanor
So that e.g. `pancake ddg something` can be invoked for a quick search. Also print option parsing error messages.
2017-12-15Add the "redisplay" commanddefanor
2017-12-14Add the "set width" commanddefanor
This is mostly needed for embedding, since there doesn't seem to be any practical (let alone portable) standard way to notify pancake of emacs window size changes. In pancake.el, width adjustment is now getting done automatically whenever any other command gets issued.
2017-12-13Add uncluttering/XSLT supportdefanor
2017-12-12Use dynamic program name in the --help messagedefanor
2017-11-28Use [ and ] instead of b and f for history navigationdefanor
Akin to info viewers, and these won't interfere with link enumeration. Also use "quit" instead of "q".
2017-11-28Introduce initial image supportdefanor
Pancake reports saved files to Emacs, Emacs inserts them into appropriate positions if they are images; `pancake-load-images' just sends "save" commands for all the images. `pancake-display-hook' was added as well, so that image loading can be requested automatically, among other things. There is a few things to improve: currently the images don't get sliced, there's no caching or parallelization, and no tracking of explicitly requested images.
2017-11-28Prepend license notices to source filesdefanor
2017-11-26Add file savingdefanor
User commands are adjusted, and the code is slightly refactored in order to fit this better.
2017-11-24Make div indentation optionaldefanor
2017-11-23Allow user-defined digits and radices for reference numberingdefanor
2017-11-16Handle SIGINT during getLinedefanor
It is too easy to kill pancake by accident, while trying to interrupt a child process that finishes by itself right at that moment. So, only quitting if there's two interruptions in a row (without any input between them). Minor refactoring has also happened in this commit.
2017-11-15Handle the --help optiondefanor
Using GetOpt now.
2017-11-14Fix shortcut query escapingdefanor
It used to escape "reserved" instead of "unreserved" characters.
2017-11-13Handle the --version optiondefanor
2017-11-09pancake.el: prompt for input on RETdefanor
This is useful mostly for backward search. Also ignore empty lines in embedded mode in pancake itself, and add a "pancake>" prompt.
2017-11-06Lint the codedefanor
2017-11-06Fix an error messagedefanor
2017-11-05Update the help messagedefanor
2017-11-05Provide current URI to pancake-modedefanor
And add a command for displaying and copying it.
2017-11-05Read metadatadefanor
Reading effective URI and content type (if those are available) now, aiming `curl -w` or similar commands. Not a particularly nice way, and complicates both the program and the configuration, but sometimes file name extensions are deceptive.
2017-11-05Allow to set document types explicitlydefanor
2017-11-05Use Parsec for command parsingdefanor
2017-11-05Split into modulesdefanor
2017-11-04Report utf-8 decoding failures, fall back to latin1defanor
2017-11-03Escape newline characters in embedded modedefanor
Inline math may contain those.
2017-11-02Quit on EOFdefanor
2017-11-02Fix: remove `init`defanor
2017-11-02Prefix headersdefanor
2017-11-02Colorize horizontal rulesdefanor
2017-11-02Shorten image reference textsdefanor
It is rather unpleasant to get long inline image URIs without titles.
2017-11-02Calculate relative table column widthsdefanor
Based simply on total amounts of characters in their cells.
2017-11-02Mark only first blocks of list itemsdefanor
That is, don't assume that there is just a single block per item (which is not always the case). Other blocks should be indented accordingly, just as lines of the first block.
2017-11-01Use terminfo instead of colorful-monoidsdefanor
colorful-monoids don't use terminfo, simply guessing capabilities.