summaryrefslogtreecommitdiff
path: root/Pancake/Command.hs
AgeCommit message (Collapse)Author
2019-02-18Add the "gs" command for Gopher searchdefanor
2018-01-01Update copyright yearsdefanor
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-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-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-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-11Fix shortcut command parsingdefanor
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