Commit graph

79 commits

Author SHA1 Message Date
b4769c70c4 Move command definitions to separate file
Hoping to keep the clark source file clean.
2013-10-06 02:29:23 +02:00
e4dc1824b2 Remove js/
The conkeror interface has been moved to its own repository:
[http://code.ryuslash.org/clark-conkeror/]
2013-08-26 23:58:50 +02:00
a947b17f67 Ignore Emacs desktop files 2013-07-02 22:41:13 +02:00
a6e2d9b620 Add more space between nodes
Since texinfo files can start to look like a big jumble of letters these
control characters help in keeping visual distinction between nodes and
make navigating the file in Emacs easier by splitting it up in pages.
2013-07-02 22:39:47 +02:00
df47a68535 Add remove-tags command
This command removes the given tags (or all if none are specified) from
a bookmark's tag list.
2013-07-02 22:30:46 +02:00
6121891396 Check bookmark doesn't exist before inserting
The `add' command checks if the given url has been registered before and
if so will print a message about this.
2013-06-12 23:22:22 +02:00
6f5171c1ca Allow LISP to be specified on the outside
I don't think it's wise to force everyone to use system-wide lisp
libraries by specifying `--no-userinit' here, but my pkgbuilds need it.
2013-06-06 22:57:05 +02:00
2c6d18f5f1 Improve error notification for conkeror 2013-06-06 22:51:34 +02:00
2ddf0ce51c Use parameter instead of constant for version
The `defconstant' form generates an error when compiling, that the value
is not `eq' to the previous value.
2013-06-04 01:16:30 +02:00
7fd20d720d Move most queries to queries.lisp 2013-06-04 01:12:38 +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
9badf67e27 Remove false statement from NEWS 2013-04-07 03:54:58 +02:00
0ab12f6f71 Bump version to v0.1.1 2013-04-07 03:53:07 +02:00
504949ebc6 Add site and some complementary files 2013-04-07 03:52:48 +02:00
ff09103c05 Remove McCLIM dependency from run-clark 2013-04-07 03:28:09 +02:00
54baffa58e Rename *version* to version
Since `*version*' is a constant, it should not be named as a special
variable.
2013-04-07 03:24:08 +02:00
86aa545775 Remove McCLIM as dependency and properly require
The McCLIM dependency will come back, but for v0.1.* it is not a
requirement.

Also properly require `cl-sqlite' by adding it in the `asdf:defsystem'
call.
2013-04-07 03:23:19 +02:00
c1cbf7d59a Exit with status 1 on error
Add macros `with-error-status' and `with-error-and-help' that help to
easily report errors to the user. The latter also calls the `help'
command.

All commands, when done, exit with `*exit-status*' being the status
code used. The `with-error-status' macro let-binds this variable so
that the command function exits with the given status code.
2013-04-06 17:24:05 +02:00
ce8cfd58f4 Fix usage without XDG_*_HOME
`concatenate' does not work as I thought, cannot handle list
arguments, except `nil'.
2013-04-06 15:39:47 +02:00
5ca43f20ca Fix typo 2013-04-06 15:10:36 +02:00
b40bf0ed06 Add run-clark
This should help with debugging.
2013-04-06 15:07:24 +02:00
8cad2d8582 Eval make-command-name during execute
So that it also works when loaded from some other place.
2013-04-06 14:58:58 +02:00
85868d6dcf Move the export to package definition
That's where it belongs.
2013-04-06 14:43:31 +02:00
220174641a Change switches table to @deffn 2013-04-03 02:39:14 +02:00
e03954c79f Fix texinfo warning 2013-04-03 02:33:45 +02:00
9b2f4b4369 Add notes about conkeror in tenxinfo
Explains what it does and how to use it.
2013-04-03 02:33:36 +02:00
c442bbfe95 Add sql macro
This gives SQL queries a little more Lisp-y feel and allows for better
formatting of the code written.
2013-03-30 15:46:54 +01:00
c7b0e8b951 Update documentation
Add a node about customizing CLark through its init file.
2013-03-28 20:31:33 +01: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
dfd6f71c4d Clarify defcommand
Writing a command like with a normal labmda-list to indicate
parameters is much clearer than using an `args' parameter that
semmingly comes out of nowhere.
2013-03-28 00:39:29 +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
703f8f7782 Bump version in system, 0.0.1 is very low... 2013-03-27 21:39:35 +01:00
ac7d882292 Print to *error-output* when an error occurs 2013-03-27 21:38:15 +01:00
30acc48afd Load an init file at startup
With this init file one can change certain defaults, and define their
own commands.
2013-03-24 21:57:59 +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
418f7c9d2a Update README.org 2013-03-23 21:36:30 +01:00
aa3f4a26cc Update texi documentation to include new commands 2013-03-23 21:32:39 +01:00
eabe0f3978 Update the help messages to include the option
The `--script' option was not yet documented in the help message.
2013-03-23 20:58:00 +01:00
9d5973a022 Simplify usage of call-command 2013-03-23 20:57:13 +01:00
e41bb3a930 Add remove command
Removes a bookmark from the database.
2013-03-23 20:52:49 +01:00
280769a222 Add set-tags command
The set-tags command clears any tags for the bookmark, and then adds
the ones given.
2013-03-23 20:46:19 +01:00
e94a9ac013 Add edit command
Allows one to edit the name and description of a bookmark.
2013-03-23 19:25:28 +01:00