You are not logged in.

#1 2011-04-14 02:52:44

tomd123
Developer
Registered: 2008-08-12
Posts: 565

memoir - a minimal cli diary

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

#2 2011-04-14 13:38:04

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 281

Re: memoir - a minimal cli diary

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

#3 2011-04-14 14:03:19

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: memoir - a minimal cli diary

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.

sad


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#4 2011-04-14 14:08:17

sujoy
Member
From: Finland
Registered: 2008-02-08
Posts: 95

Re: memoir - a minimal cli diary

@toad

in the PKGBUILD  change the following line

  install mm \
    ${pkgdir}/usr/bin

to

  install m \
    ${pkgdir}/usr/bin

Offline

#5 2011-04-14 14:09:41

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: memoir - a minimal cli diary

Thanks, sujoy!


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#6 2011-04-14 14:50:06

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: memoir - a minimal cli diary

sujoy wrote:

@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

#7 2011-04-14 14:54:29

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: memoir - a minimal cli diary

fabertawe wrote:

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

#8 2011-04-14 16:21:07

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 281

Re: memoir - a minimal cli diary

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>" smile

Cheers.


Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64

Offline

#9 2011-04-14 17:20:30

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: memoir - a minimal cli diary

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>" smile

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

#10 2011-04-14 17:22:50

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: memoir - a minimal cli diary

actually, forget that question, I'll do it your way because the way I mentioned is a proper subset of your functionality smile 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

#11 2011-04-14 17:46:22

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: memoir - a minimal cli diary

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>" smile

Cheers.

Added this feature smile Cheers!

Offline

#12 2011-04-14 18:28:33

completist
Member
From: /media/knock_knock
Registered: 2009-02-21
Posts: 62

Re: memoir - a minimal cli diary

Thanks tomd123, this is exactly what I was looking for.  Will use memoir daily.

Offline

#13 2011-04-14 19:05:06

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: memoir - a minimal cli diary

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 smile )

Scott

Last edited by firecat53 (2011-04-14 19:09:06)

Offline

#14 2011-04-14 19:26:29

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: memoir - a minimal cli diary

completist wrote:

Thanks tomd123, this is exactly what I was looking for.  Will use memoir daily.

Yep, great idea, so easy smile


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#15 2011-04-14 19:39:00

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 281

Re: memoir - a minimal cli diary

tomd123 wrote:
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>" smile

Cheers.

Added this feature smile 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

#16 2011-04-15 18:19:30

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: memoir - a minimal cli diary

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

#17 2011-04-15 23:30:37

nsb
Member
From: Switzerland
Registered: 2008-03-26
Posts: 57

Re: memoir - a minimal cli diary

toad wrote:

And totally unrelated - is there a decent CLI calendar?

When I need a calendar, I use pal.

Offline

Board footer

Powered by FluxBB