Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
|
|
|
|
|
|
- `sum lens /= 0` implies `length lens /= 0`, so no need to check the
latter after the former.
- Don't use `concat` for just two elements.
|
|
Don't try to estimate column widths if it leads to division by zero.
|
|
|
|
Finding the last HTTP 200 response via the availability API, so a
dummy "web-archive" scheme is added into the default configuration in
order to use a custom command.
The URI_ESCAPED environment variable is also introduced, though not
used here -- but may be handy for similar custom commands.
|
|
Otherwise it fails on pages that are only available with compression.
|
|
|
|
Pandoc adds them even when they are undefined, no need to add an
additional horizontal rule in such a case.
|
|
Insert empty lines conditionally instead of doing that between every
pair of blocks. It can be improved further, but looks slightly better
than it used to this way.
|
|
|
|
Akin to info viewers, and these won't interfere with link enumeration.
Also use "quit" instead of "q".
|
|
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.
|
|
Now it is more compact, and that's another step towards image support
in the Emacs interface.
|
|
|
|
User commands are adjusted, and the code is slightly refactored in
order to fit this better.
|
|
Some kind of image support can be introduced in the future, and it's
not quite correct to present images as links.
|
|
Mode names mostly match file extensions, so try to use those when
other methods fail.
|
|
This is particularly important for code blocks.
|
|
|
|
|
|
Identifiers get handled better with those. And since they also add
divs, rendering of lists of blocks is slightly improved to avoid
unnecessary spacing.
|
|
|
|
|
|
|
|
Superscripts and subscripts, as they were rendered, shorten lines in
GUI Emacs, breaking tables if those contained subscripts or
superscripts. In terminal Emacs, they were just indistinguishable from
regular text. And there was a minor hack for these.
Mostly undoing that (for strikethrough as well), though leaving slight
raising.
|
|
The "note N" strings add to the overall width, so the width of notes
themselves should be reduced.
It's different in CLI and Emacs, and rather imprecise here, so can
still be improved -- but at least overflow is unlikely now.
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
That is, add `Styled` constructors for those.
|
|
|
|
Styled elements now can be denoted, so that the emacs interface can
buttonize links, while it is still easy to ignore the semantics and
just render those elements.
The emacs interface is more mouse- and TAB-friendly now.
|
|
And add a command for displaying and copying it.
|
|
|
|
This is mostly needed for tables.
|
|
Fix link enumeration, and store the identifiers.
|
|
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.
|
|
|
|
|