aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-05 22:00:39 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-05 22:00:39 +0100
commitb8a0d0e9245abaa287a28c3c6ca217112dd38358 (patch)
tree3566452c25e3f2ac834b228f269595718a49246a
parentb92f653d6f4f9b3b862777e5c150c035f14cbd30 (diff)
downloadchawan-b8a0d0e9245abaa287a28c3c6ca217112dd38358.tar.gz
Update docs
-rw-r--r--README.md3
-rw-r--r--doc/cha-api.510
-rw-r--r--doc/cha-config.526
3 files changed, 33 insertions, 6 deletions
diff --git a/README.md b/README.md
index c573b5b7..4467ec04 100644
--- a/README.md
+++ b/README.md
@@ -148,13 +148,14 @@ Many other text-based web browsers exist. Here's some recommendations
(not meant to be an exhaustive list):
* [w3m](https://sr.ht/~rkta/w3m/) - A text-mode browser, extensible using
- local-cgi. Also has inline image display and very good table support.
+ local CGI. Also has inline image display and very good table support.
Main source of inspiration for Chawan.
* [elinks](https://github.com/rkd77/elinks) - Has CSS and JavaScript support,
and incremental rendering (it's pretty fast.)
* [links](http://links.twibright.com/) - Precursor of elinks, but it's still
being developed. Has a graphical mode.
* [lynx](https://lynx.invisible-island.net/) - Doesn't need an introduction.
+ The oldest web browser still in active development.
* [edbrowse](http://edbrowse.org/) - This one looks more like `ed` than
`less` or `vi`. Originally designed for blind users.
* [telescope](https://github.com/telescope-browser/telescope) - A "small
diff --git a/doc/cha-api.5 b/doc/cha-api.5
index df828dd0..2ea1309a 100644
--- a/doc/cha-api.5
+++ b/doc/cha-api.5
@@ -139,17 +139,17 @@ Same as \f[CR]pager.load(url + \[dq]\[rs]n\[dq])\f[R].
T}@T{
T}
T{
-\f[CR]gotoURL(url, options = {replace: null, contentType: null})\f[R]
+\f[CR]gotoURL(url, options = {replace: null, contentType: null, save: false})\f[R]
T}@T{
Go to the specified URL immediately (without a prompt).
-This differs from \f[CR]load\f[R] and \f[CR]loadSubmit\f[R] in that it
-\f[I]does not\f[R] try to correct the URL.
+This differs from \f[CR]loadSubmit\f[R] in that it loads the exact URL
+as passed (no prepending https, etc.)
When \f[CR]replace\f[R] is set, the new buffer may replace the old one
if it loads successfully.
When \f[CR]contentType\f[R] is set, the new buffer\[cq]s content type is
forcefully set to that string.
-Use this for loading automatically retrieved (i.e.\ non\-user\-provided)
-URLs.
+When \f[CR]save\f[R] is true, the user is prompted to save the resource
+instead of displaying it in a buffer.
T}@T{
T}
T{
diff --git a/doc/cha-config.5 b/doc/cha-config.5
index 2a2efa0a..101c11e6 100644
--- a/doc/cha-config.5
+++ b/doc/cha-config.5
@@ -386,6 +386,24 @@ T}@T{
Path to pre\-fill for \[lq]Save to:\[rq] prompts.
T}@T{
T}
+T{
+copy\-cmd
+T}@T{
+shell command
+T}@T{
+Command to use for \[lq]copy to clipboard\[rq] operations.
+Currently it defaults to \f[CR]xsel \-bi\f[R].
+T}@T{
+T}
+T{
+paste\-cmd
+T}@T{
+shell command
+T}@T{
+Command to use for \[lq]read from clipboard\[rq] operations.
+Currently it defaults to \f[CR]xsel \-bo\f[R].
+T}@T{
+T}
.TE
.SS Input
Input options are to be placed in the \f[CR][input]\f[R] section.
@@ -1649,6 +1667,14 @@ T}@T{
Save the source of the current buffer to the disk.
T}@T{
T}
+T{
+sI
+T}@T{
+\f[CR]cmd.buffer.saveImage\f[R]
+T}@T{
+Save the image currently under the cursor.
+T}@T{
+T}
.TE
.SS Line\-editing actions
.PP