1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-26 01:15:37 +00:00
elinks/src/scripting
Olivier El Mekki edaf66fc60
[lua] expose reload() and goto_url() to lua api
Two api methods for lua scripting has been added.

`reload()` allows to refresh the document without triggering a new
html request. This commits expose that existing internal function to the
lua api.

One example where it is useful : making a lua hook that allows to edit a
local file we're browsing and see the change without having to perform a
full reload (thus losing the scrolling position). Or anything else that
allows to interactively modify the currently loaded document.

`goto_url()` allows to navigate to given url long after the page has been
loaded (so follow_url_hooks can't be used).

Example where it's useful : binding a key to load the latest archive.org
snapshot for current page (especially useful when using tor and being
constantly harassed by cloudflare).
2021-11-13 13:57:52 +01:00
..
guile [gettext] try system gettext. Refs #62 2021-08-08 21:25:08 +02:00
lua [lua] expose reload() and goto_url() to lua api 2021-11-13 13:57:52 +01:00
perl [gettext] try system gettext. Refs #62 2021-08-08 21:25:08 +02:00
python [gettext] try system gettext. Refs #62 2021-08-08 21:25:08 +02:00
ruby [meson] ruby dependency: ruby not ruby-2.6 2021-08-17 16:09:05 +02:00
smjs [smjs] Error Reporting with open_memstream 2021-09-06 20:36:10 +02:00
Makefile Cosmetic change. 2006-01-12 18:44:26 +01:00
meson.build [meson] meson build scripts. 2020-09-05 22:06:01 +02:00
scripting.c [gettext] try system gettext. Refs #62 2021-08-08 21:25:08 +02:00
scripting.h [cflags] Removed -Wno-pointer-sign 2021-01-02 16:20:27 +01:00
TODO Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00