Commit graph

16 commits

Author SHA1 Message Date
2c6d18f5f1 Improve error notification for conkeror 2013-06-06 22:51:34 +02:00
9e6199a5aa Add random command
This command simply prints a random URL. A tag may be specified to limit
the search to that tag. In the Conkeror module this command immediately
loads the random bookmark in the current buffer.

- js/clark.js: If `error' is empty, return the value of `data'. This
  makes it easier for some commands to use the result of the command.
  Add `clark-random' to `clark_keymap'.
2013-06-04 01:12:13 +02:00
504949ebc6 Add site and some complementary files 2013-04-07 03:52:48 +02:00
933a51ed70 Change order of script output
The order of parameters for `--script' and without it was different,
to keep things simple these should be the same.
2013-03-28 00:52:48 +01:00
86d7908150 Make simple commands check stderr
Don't assume all operations will complete successfully, check the
error output to see if something happened.
2013-03-27 21:48:02 +01:00
2e2c401a86 Add bookmarked mode-line widget
This widget shows whether or not the current buffer has been
bookmarked using `clark_bookmarked_string' and
`clark_not_bookmarked_string'. This widget can be enabled by using,
for example:

    add_hook("mode_line_hook",
             mode_line_adder(clark_bookmarked_widget),
             true);
2013-03-24 21:24:31 +01:00
916af59314 Add clark-set-tags command
Replaces the previously added tags.
2013-03-24 16:43:32 +01:00
2b090c652e Add clark-remove command
Removes the current url from the database.
2013-03-24 16:30:52 +01:00
4ebf6ce650 Add clark-edit command 2013-03-24 15:55:36 +01:00
b6cc70b150 Fix commentary 2013-03-24 13:47:56 +01:00
589f2cca07 Add keybindings for existing commands
Add keybindings for `clark-add-link', `clark-find-url' and
`clark-find-url-new-buffer'.
2013-03-24 13:45:16 +01:00
0fbc39c2d8 Add clark-exists-p
Prints `yes' when the url is found in the database, `no' otherwise.
2013-03-24 13:42:20 +01:00
3f030d3fb3 Add keymap for conkeror
One could bind this keymap in their `.conkerorrc' to easily access all
the functions provided by CLark's conkeror module. For example:

    define_key(content_buffer_normal_keymap, "b", clark_keymap);
2013-03-24 13:04:55 +01:00
98ff909164 The command syntax has changed
This is not markam. Markam would try to figure out that you wanted to
add a url to the database by looking for either `http://' or
`https://' at the start of the first argument, but CLark uses the
`add' command so there should be no confusion.
2013-03-24 12:49:43 +01:00
0b3e5c09d3 Add GPLv3 license info 2013-03-23 00:51:31 +01:00
89adbb11b5 Add conkeror module 2013-03-23 00:20:27 +01:00