summaryrefslogtreecommitdiff
path: root/Pancake.hs
AgeCommit message (Collapse)Author
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.
2017-11-01Don't rely on INSIDE_EMACSdefanor
It is getting set by M-x term and shell as well, so it's wrong to decide whether to run in the embedded mode based on it.
2017-10-31Fix newline handlingdefanor
`fitWords` used to look for plain newlines, missing styled ones.
2017-10-31Update to pandoc 2defanor
2017-10-31Handle fragment identifiersdefanor
This took a bit of refactoring, and now providing link and identifier lists to the emacs interface as well (though not using them yet).
2017-10-31Refactor: get rid of long lines, cleanupdefanor
2017-10-31Add basic table supportdefanor
2017-10-31Implement document reloadingdefanor
2017-10-30Invoke external viewers properlydefanor
Set an environment variable for file name.
2017-10-30Default to plain text readerdefanor
2017-10-29Default to HTML on HTTPdefanor
2017-10-29Adjust filename extension handlingdefanor
Add more extensions to handle by external viewers by default, handle ".htm" for HTML, compare their downcased versions.
2017-10-29Set the -n option for emacsclient by defaultdefanor
There's no need in waiting (it's rather harmful, actually), and it pollutes stdout -- so adding the `-n` (--no-wait) option.
2017-10-29Fix gopher URI parsingdefanor
Using `splitDirectories` for its paths (types + selectors) was a bad idea, particularly leading to misbehaviour with "hURL:" redirects.
2017-10-29Start rendering with zero indentationdefanor
A minor fix: `renderDoc` used to call `renderBlocks`, which increases indentation at once, giving a minimum indentation level of 1.
2017-10-28Use plain curl for gopher by defaultdefanor
Though the gopher onion initiative is nice, that's an unnecessary dependency here -- better to not set by default.
2017-10-28Change fragment link colorsdefanor
So that they are distinguishable from active links.
2017-10-28Add the historyDepth settingdefanor