diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-12-15 16:04:16 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-12-15 16:04:16 +0100 |
| commit | 95d4b768819171d0115bded82b30977dfbe26bfc (patch) | |
| tree | 5393267bf6ace1ee10263a77b274eab85dd66cca /res | |
| parent | 9a395719047950fa33ec1699d8f14597e0f4c35d (diff) | |
| download | chawan-95d4b768819171d0115bded82b30977dfbe26bfc.tar.gz | |
chabookmark fixes & improvements
* correct action on M-b
* add external.bookmark option
* move openFileExpand functionality into unquote
* add menu items
* update docs
Diffstat (limited to 'res')
| -rw-r--r-- | res/chawan.html | 6 | ||||
| -rw-r--r-- | res/config.toml | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/res/chawan.html b/res/chawan.html index 2bc95f06..5cfb00de 100644 --- a/res/chawan.html +++ b/res/chawan.html @@ -24,8 +24,8 @@ lCHCHCHCHCHCHCHCHCHCHCHCHCp <p> This is the default visual home page. You can change it in your configuration file using the <code>start.visual-mode</code> option. (e.g. -<code>~/.chawan/bookmark.md</code> or <code>~/.config/chawan/bookmark.md</code> -are good options.) +<a href='cgi-bin:chabookmark?action=view'>cgi-bin:chabookmark?action=view'</a> to +automatically show bookmarks.) <p> Following is a list of default keybindings to get you started. (Note: <kbd>C-{key}</kbd> means <kbd>Control</kbd> + <kbd>key</kbd>, @@ -59,6 +59,8 @@ xsel) <li><kbd>yI</kbd>: copy the image link currently under the cursor to clipboard (needs xsel) <li><kbd>M-p</kbd>: go to the URL currently on the clipboard (needs xsel) +<li><kbd>M-b</kbd>: open bookmark file +<li><kbd>M-a</kbd>: add current page to bookmarks <li><kbd>[</kbd>, <kbd>]</kbd>: move cursor to the previous/next hyperlink <li><kbd>C-d</kbd>, <kbd>C-u</kbd>: scroll up/down by half a page <li><kbd>C-f</kbd>, <kbd>C-b</kbd> (or <kbd>PgDn</kbd>, <kbd>PgUp</kbd>)</kbd>: diff --git a/res/config.toml b/res/config.toml index a383145c..9aa82550 100644 --- a/res/config.toml +++ b/res/config.toml @@ -49,6 +49,7 @@ urimethodmap = [ "/etc/urimethodmap", "/usr/local/etc/w3m/urimethodmap" ] +bookmark = "bookmark.md" tmpdir = "${TMPDIR:-/tmp}/cha-tmp-$LOGNAME" sockdir = "${TMPDIR:-/tmp}/cha-sock-$LOGNAME" editor = "${EDITOR:-vi}" @@ -322,7 +323,7 @@ dupeBuffer = '() => pager.dupeBuffer()' load = '() => pager.load()' webSearch = '() => pager.load("go:")' addBookmark = '() => pager.gotoURL(`cgi-bin:chabookmark?url=${encodeURIComponent(pager.url)}&title=${encodeURIComponent(pager.title)}`)' -openBookmarks = '() => pager.gotoURL(`cgi-bin:chabookmark?view`)' +openBookmarks = '() => pager.gotoURL(`cgi-bin:chabookmark?action=view`)' reloadBuffer = '() => pager.reload()' lineInfo = '() => pager.lineInfo()' toggleSource = '() => pager.toggleSource()' |