Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
Even when calling `pancake' from another pancake buffer.
|
|
'renderInlines' splits inline elements into lines (on newline) and
renders them one-by-one, so that line positions can be tracked. The
code is also a bit cleaner this way.
|
|
|
|
That wasn't a proper fix, and may lead to additional issues.
This reverts commit 14468d50a6b22c67e656cd2b2a5fb4c7dad692b2.
|
|
Usually there's none, but now it's possible for them to get there
with --no-wrap. Perhaps that should be fixed too.
|
|
|
|
Not for tables or lists, but for regular text lines. Using
visual-line-mode for that by default.
|
|
|
|
The list is ordered anyway, no need to keep numbers there.
|
|
Just to simplify it.
|
|
|
|
|
|
|
|
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.
|
|
|
|
This covers both command-line options and the "load config" (former
"reload config") command.
|
|
So that e.g. `pancake ddg something` can be invoked for a quick
search.
Also print option parsing error messages.
|
|
|
|
Take the continuation glyph column into account.
|
|
Silence the "unused lexical argument" ones, use a custom function
instead of `goto-line'.
|
|
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.
|
|
`pancake' into `pancake-new', `pancake-browse-url' into `pancake', and
make its URL argument optional. Should be less confusing and more
idiomatic this way, similar to w3m.
|
|
|
|
|
|
|
|
|
|
|
|
- `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.
|
|
|
|
|
|
There may be an error during rendering, don't let it to get repeated
on each iteration.
|
|
Data.Text.Encoding functions are used instead.
|
|
|
|
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.
|