You are not logged in.
Pages: 1
project url: https://github.com/gostrc/memoir
git url: git://github.com/gostrc/memoir.git
aur url (memoir-git): http://aur.archlinux.org/packages.php?ID=48219
Background:
I quite often wanted to have a simple way of entering small comments on the fly at any time of the day but couldn't find anything this minimal that did only what I wanted.
Taken from the README:
memoir is intended to be a minimal cli diary.
Usage:
Run memoir by typing 'm' into a terminal.
Type out your memoir, and it will write the entry to '~/.memoir' and exit as soon as an empty line is encountered.
If the first line is empty, it wont write the entry.
You can also send a SIGINT to exit the program without side effects.
Alternatively, you can run 'm' with any number of arguments.
Once you run 'm' with the arguments, it will automatically add a one line entry to '~/.memoir'.
Format of '~/.memoir':
date
entry
Entries are seperated by a line of dashes.
Dependencies:
python3
Last edited by tomd123 (2011-04-14 17:45:52)
Offline
Hi, this looks to be really useful for making notes when I'm fiddling about in the terminal.
One minor request... could you alter it so anything typed on the first line along with (after) "m" is also recorded? I can see myself logging a lot of one-liners. Nit picking I know!
Thanks.
Last edited by fabertawe (2011-04-14 13:42:22)
Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64
Offline
Cloning into memoir...
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 13 (delta 3), reused 0 (delta 0)
Receiving objects: 100% (13/13), done.
Resolving deltas: 100% (3/3), done.
-> Checkout complete!
==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat `mm': No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
The build failed.
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
@toad
in the PKGBUILD change the following line
install mm \
${pkgdir}/usr/bin
to
install m \
${pkgdir}/usr/bin
Offline
Thanks, sujoy!
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
@toad
in the PKGBUILD change the following line
install mm \ ${pkgdir}/usr/bin
to
install m \ ${pkgdir}/usr/bin
I updated the PKGBUILD for memoir-git
Offline
Hi, this looks to be really useful for making notes when I'm fiddling about in the terminal.
One minor request... could you alter it so anything typed on the first line along with (after) "m" is also recorded? I can see myself logging a lot of one-liners. Nit picking I know!
Thanks.
Do you mean record one line entries with something like:
m 'entry for today'
or do you mean something more like:
m entry for today
Offline
or do you mean something more like:
m entry for today
Yes, this would be great, then whenever I want to log a one-liner I can just <ctrl>-a and "m<space><enter><enter>"
Cheers.
Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64
Offline
tomd123 wrote:or do you mean something more like:
m entry for today
Yes, this would be great, then whenever I want to log a one-liner I can just <ctrl>-a and "m<space><enter><enter>"
Cheers.
Hm, now that I think about it, how about typing:
m 'something here'
so that whenever you gave memoir an argument, it would put the first argument into an entry and exit? so it would go something like:
add quote to end of string, <ctrl>-a "m<space><add a quote><enter>" ? Or do you think your way would be better?
Offline
actually, forget that question, I'll do it your way because the way I mentioned is a proper subset of your functionality also, I think I will just exit immediately if you give it a command line argument, so there will be no need to double <enter> at the end. thoughts?
Offline
tomd123 wrote:or do you mean something more like:
m entry for today
Yes, this would be great, then whenever I want to log a one-liner I can just <ctrl>-a and "m<space><enter><enter>"
Cheers.
Added this feature Cheers!
Offline
Thanks tomd123, this is exactly what I was looking for. Will use memoir daily.
Offline
Suggestion - make the default storage location XDG_DATA_HOME, and allow a switch (like -m $LOCATION) to store memoir(s) in a different location if desired (like Dropbox )
Scott
Last edited by firecat53 (2011-04-14 19:09:06)
Offline
Thanks tomd123, this is exactly what I was looking for. Will use memoir daily.
Yep, great idea, so easy
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
fabertawe wrote:tomd123 wrote:or do you mean something more like:
m entry for today
Yes, this would be great, then whenever I want to log a one-liner I can just <ctrl>-a and "m<space><enter><enter>"
Cheers.
Added this feature
Cheers!
Excellent!! I think it's best to leave it as a double <enter> though as then this allows for further annotation or comments if required. Pressing <enter> a second time's hardly an effort and flexibility's always a good thing!
Many thanks (either way), this'll be very useful.
Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64
Offline
Another idea. To get info out of .memoir I use
cat ~.memoir|grep X
A lot of typing and searching by date is complicated by the date layout. Therefore:
1) have an easier date layout to optimise search capability
2) not sure about this one, as a decent alias in .bashrc would probably do the trick, but a function like m -s searchterm would be cool
And totally unrelated - is there a decent CLI calendar?
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
And totally unrelated - is there a decent CLI calendar?
When I need a calendar, I use pal.
Offline
Pages: 1