pinboard-elinks

Check-in [4cdaa96f7d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Change keybindings in README.

Related to commit: 496ab7012455fdbf88e5129613d69c0289591c36

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256: 4cdaa96f7dfc2d90dbd3ef5b642c2c07ab764c085b897d29e37a28a49ed68e60
User & Date: atomicules@lavabit.com 2013-05-27 14:51:36
Context
2013-06-21
08:56
It wasn't an off by one error, think was rounding error instead

*think*. Still don't know for sure. Perhaps was a different in Lua
versions after all. check-in: fc0e0c9425 user: atomicules@lavabit.com tags: master, trunk

2013-05-27
14:51
Change keybindings in README.

Related to commit: 496ab7012455fdbf88e5129613d69c0289591c36 check-in: 4cdaa96f7d user: atomicules@lavabit.com tags: master, trunk

14:41
Temp fix for off by one error.

Note from the Lua manual for string.byte and string.char:

"Note that numerical codes are not necessarily portable across
platforms."

The original worked fine for me on OSX PPC, but on i386 NetBSD it's off
by one. Could do with a better fix (I.e understanding it, rather than
just sticking in the -1) check-in: ba3a1fc143 user: atomicules@lavabit.com tags: master, trunk

Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to README.markdown.

1
2
3
4
5
6
7
8
9
10
11
12
13
# Pinboard Lua Script for ELinks

Adds the following functionality to ELinks:

- "ALT+p" Adds current page to Pinboard, with dialog box for description and tags
- "ALT+l" Adds current page to Pinboard and marks as "Read Later"
- Reformats the mobile site to be better for ELinks (Adds working edit/delete links)

Javascript support in ELinks is a bit lacking (it's never worked well for me anyway) so it's not possible to use the Pinboard bookmarklets. Lua support in ELinks is much better, so this script does what the bookmarklets would do, but via lua. Since CSS support in ELinks is also a bit lacking - there's a lot of cruft on the Pinboard mobile sight in ELinks (stuff that's set as `display: none`, etc) - this script also cleans that up. The Pinboard edit and delete links won't work in ELinks because of javascript again, so this script generates replacement ones: Editing is done by "saving" the bookmark again, since the add page works fine; Deleting is done via the AP, since it is immediately destructive the delete link is only visible on the individual bookmark page, not when browsing through a list of bookmarks.

##Installation

Source from your `~/.elinks/hooks.lua` file with `dofile("pinboard.lua")`




|
|







1
2
3
4
5
6
7
8
9
10
11
12
13
# Pinboard Lua Script for ELinks

Adds the following functionality to ELinks:

- "CTRL+p" Adds current page to Pinboard, with dialog box for description and tags
- "CTRL+l" Adds current page to Pinboard and marks as "Read Later"
- Reformats the mobile site to be better for ELinks (Adds working edit/delete links)

Javascript support in ELinks is a bit lacking (it's never worked well for me anyway) so it's not possible to use the Pinboard bookmarklets. Lua support in ELinks is much better, so this script does what the bookmarklets would do, but via lua. Since CSS support in ELinks is also a bit lacking - there's a lot of cruft on the Pinboard mobile sight in ELinks (stuff that's set as `display: none`, etc) - this script also cleans that up. The Pinboard edit and delete links won't work in ELinks because of javascript again, so this script generates replacement ones: Editing is done by "saving" the bookmark again, since the add page works fine; Deleting is done via the AP, since it is immediately destructive the delete link is only visible on the individual bookmark page, not when browsing through a list of bookmarks.

##Installation

Source from your `~/.elinks/hooks.lua` file with `dofile("pinboard.lua")`