8463e3dec0
Don't fail when generating first id
2012-09-26 19:52:42 +02:00
9c683792be
Improve loading of files
2012-09-26 19:52:02 +02:00
40566cee5b
GOOPS "Proof of concept"
...
Doesn't actually do anything yet, but shows where to start.
2012-09-26 01:05:41 +02:00
c11e60df8b
Use for-each instead of map
...
Since we don't need the result of going through all the views, we can
just discard it.
2012-09-16 14:23:55 +02:00
3d7138e45a
Add delete command
...
The delete command removes an item from the todo-list, it does this by
filtering out the item wich has the given `id' value and saving the
result.
2012-09-16 14:22:44 +02:00
cae98ebdfb
Make file loading a bit more robust
...
Don't fail when a file can't be found.
2012-09-16 14:09:56 +02:00
86f48d9fa4
Leave auto-compile on
...
This way docstrings will be generated so that the `views' command can
read them.
2012-09-16 14:06:13 +02:00
f305dd0c42
Only show items with an id in default
2012-09-10 22:10:26 +02:00
c5dac997f4
Rename viewname to view-name
...
* undone/main.scm (define-view): Looks nicer
2012-09-10 21:56:42 +02:00
271b33f910
Add id to each item
...
* undone/main.scm (get-field-value): Allow specification of default
return if no key is found.
(next-id): New function.
(add): Add `id' to the todo item.
2012-09-10 21:56:16 +02:00
62cde9b1c8
Don't fail when an item doesn't have a property
...
* undone/main.scm (get-field): Only get a cons cell, don't get its
cdr.
(get-field-value): New macro.
(define-view): Add filtered list syntax, which filters items that
don't have the needed properties. Filter results before looking
through them.
2012-08-31 14:45:18 +02:00
4124f07fa9
Trim whitespace at end of entry
...
* undone/main.scm (add): Trim whitespace from the end of whatever text
gets filled in.
(default): Place newline after each item.
2012-08-17 01:56:25 +02:00
3a132e8040
Use `,' to denote list
...
* undone/main.scm (add): When encountering a value that starts with
`,', assume that it should be turned into a list.
2012-08-17 01:45:20 +02:00
206294033b
Use one big file for now
...
* undone/main.scm (todo-list-file): Check to see if we should use a
file in XDG_DATA_HOME or HOME.
(mkdirs): New function.
(save): Ensure the directory tree exists by calling `mkdirs' first.
2012-08-17 01:26:52 +02:00
88212abab3
Don't auto-compile
...
Doesn't look nice when your rc file compiles every time.
2012-08-15 00:45:05 +02:00
5769114042
Add Makefiles and others
2012-08-15 00:24:32 +02:00
50dc2da0b1
Add sorting and don't collect result
2012-08-14 23:44:27 +02:00
d1bc934f9c
Simplify macro
2012-08-14 22:53:43 +02:00
8681daf54a
Improve macro
2012-08-14 22:40:40 +02:00
17d9c17d9f
Simplify call to define-view
2012-08-14 22:24:34 +02:00
b026bf9fcc
Rename test view to raw
2012-08-14 21:41:41 +02:00
e8e7d1fcee
Prettier test-view output
2012-08-14 21:41:01 +02:00
252e766648
Oops, should have been more careful
2012-08-14 21:27:24 +02:00
7376a87f72
Load rc from appropriate location
2012-08-14 21:23:46 +02:00
a90567ae22
Properly load undonerc
2012-08-14 21:11:55 +02:00
ffbff6beb6
Initial commit.
2012-08-13 01:16:04 +02:00