Commit graph

67 commits

Author SHA1 Message Date
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
d1eb7d4c37 Check argument numbers for each command
This should keep error conditions from being signalled when someone
enters the wrong number of arguments.
2013-03-23 18:40:54 +01:00
3b165c81d9 Add --script option
When passing in the --script option all output will be formatted in a
machine-readable way.
2013-03-23 17:58:31 +01:00
50bb0f58ea Simplify get-bookmarks 2013-03-23 17:57:35 +01:00
2a37c88b34 Fix typo 2013-03-23 16:53:08 +01:00
977627a8af Simplify the exists command 2013-03-23 16:50:18 +01:00
fdce2ed81c Hide command detail
Hide the fact that a command is just of the form NAME-command by
abstracting it away into a macro.
2013-03-23 16:37:41 +01:00
c7f9d27638 Improve help messages
The `help' command can now be used to view help about other commands.
2013-03-23 16:31:22 +01:00
cbe1830f83 Add exists command
This command shows whether or not the given url is known to CLark.
2013-03-23 13:38:19 +01:00
dd47751a43 Place the database in XDG_DATA_HOME if possible 2013-03-23 13:24:43 +01:00
9e747fde54 Add some Makefile targets 2013-03-23 01:05:05 +01:00
080bb351b8 Add some docs 2013-03-23 01:00:14 +01:00
0b3e5c09d3 Add GPLv3 license info 2013-03-23 00:51:31 +01:00