You are not logged in.

#1 2005-07-12 06:22:49

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Sidenote - small note taking program (updated)

Sidenote is some ridiculously simple note taking program. I made to fit in with my ion setup as I couldnt find one that would resize nicely to a narrow form factor. It'll probably resize to a wide or just about any form you could want. Since then it has been improved substantially.

As you can see in the screen shot here:
http://iphitus.loudas.com/arch/sidenote/sidenote.png

And new improved version.
http://iphitus.loudas.com/designs/scree … 260107.png

You can make multiple notes, add notes, remove notes, and of course, it saves them so they are there next time.

Also added now are basic formatting, a tray icon, spelling support and various window management options such as stickyness and geometry.

And its only 37kb.

You can download it, ere:
http://iphitus.loudas.com/arch/sidenote/sidenote.py

home page here, with PKGBUILD
http://iphitus.loudas.com/sidenote.php

It's one file, just chmod +x,
mkdir -p ~/.config/sidenote/
Configure any options in the commented variables in the top of the file, all bar one are True/False.

Depends on python and pygtk.

OPTIONAL depends for spelling is gtkspell
OPTIONAL depends for trayicon is gnome-python-extras.
-- if you dont want gnome depends, try using alltray for a tray icon.

iphitus

nb: post edited to reflect latest version.

Offline

#2 2005-07-12 06:42:07

wickedlester
Member
From: Texas, USA
Registered: 2004-07-22
Posts: 144

Re: Sidenote - small note taking program (updated)

Nice app. will see much use on my desktop. had to edit out all references to /home/archie
A feature request would be to have it re-open the saved notes to further edit. Unless it is already there and I am blind.

Offline

#3 2005-07-12 06:47:05

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sidenote - small note taking program (updated)

oh, oops!!! i forgot to take out that, ill fix that now.

i suck at releasing things.

if you quit it properly or hit save, it should load up the notes you had open last time.

Offline

#4 2005-07-12 06:54:44

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sidenote - small note taking program (updated)

ok, fixed htat glaring omission, now takes the users home directory instead of mine tongue

linked to a homepage with a PKGBUILD on it too.

iphitus

Offline

#5 2005-07-13 16:23:40

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sidenote - small note taking program (updated)

Nobody has any suggestions? sad

Offline

#6 2005-07-13 19:05:53

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Sidenote - small note taking program (updated)

iphitus wrote:

Nobody has any suggestions? sad

a calculator button would be usefull to me.  smile
The trash icon and the piece of paper do the same thing. A desription under each when you hover the mouse over them would be nice too, but not a big deal.

Where is it saving to?

Offline

#7 2005-07-13 19:09:47

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Sidenote - small note taking program (updated)

looks nice. I might try it. That's ion3? It looks a little... sexier than ion2... too bad I couldn't figure out how to build it. ;-)

Dusty

Offline

#8 2005-07-13 22:46:21

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Sidenote - small note taking program (updated)

Dusty wrote:

looks nice. I might try it. That's ion3? It looks a little... sexier than ion2... too bad I couldn't figure out how to build it. ;-)

Dusty

I've been meaning to try this too
And I bet wmii will look just a sexy given the right font+colors

Offline

#9 2005-07-13 23:31:37

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Sidenote - small note taking program (updated)

plus wmii is easy to install. That's important!

Offline

#10 2005-07-14 01:41:44

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sidenote - small note taking program (updated)

Dusty wrote:

looks nice. I might try it. That's ion3? It looks a little... sexier than ion2... too bad I couldn't figure out how to build it. ;-)

Dusty

There's a pkgbuild in AUR tongue You should know better tongue

Its not a hard install, the prefix and path to lua in system.mk and make, make install.

The trash button should delete the current note, the paper button should create a new note. It saves to ~/.sidenotes

iphitus

Offline

#11 2005-07-14 02:18:59

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Sidenote - small note taking program (updated)

There's two PKGBUILDs for ion3 in AUR and I had issues (can't remember what they were) with both of them. The PKGBUILD for wmii, on the other hand, worked flawlessly for me. ;-)

I'm about to try sidenote.

Dusty

Dusty

Offline

#12 2005-07-14 02:28:43

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sidenote - small note taking program (updated)

Dusty wrote:

There's two PKGBUILDs for ion3 in AUR and I had issues (can't remember what they were) with both of them. The PKGBUILD for wmii, on the other hand, worked flawlessly for me. ;-)

I'm about to try sidenote.

Dusty

Dusty

I never use pkgbuilds anyway for ion tongue

but wierd, im compiling one now, and this one seems to work fine:
http://aur.archlinux.org/packages.php?d … Packages=0
http://aur.archlinux.org/packages/ion3/ion3/PKGBUILD

edit: oh i can see the problem in the pkgbuild now, make install doesnt acknowledge destdir.

iphitus

Offline

#13 2005-07-14 02:29:31

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Sidenote - small note taking program (updated)

works flawlessly here...

out of curiosity - how did you make this  I've seen/heard you mention glade before... but this is just a python file... not a glade file... *shrug*

Offline

#14 2005-07-14 02:32:04

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sidenote - small note taking program (updated)

it's got the glade there too, take a look inside.

if I had kept the glade seperate i would have had to have gone to the trouble of making a setup script so that the py file knew where it was. So instead of doing that, I put the glade file *inside* the py file, so you can just drop the py file anywhere and run it.

Offline

#15 2005-07-14 02:32:55

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Sidenote - small note taking program (updated)

The glade file is a string inside the python file.

mixing XML and Python though, how sad. Next thing you know he'll be programming in Java.

Dusty

Offline

#16 2005-07-15 19:53:32

Kitsunebi
Member
Registered: 2004-12-31
Posts: 31

Re: Sidenote - small note taking program (updated)

Very nice smile

I'd probably use it if I didn't love xpad so much.

screenie7fh.th.png

Sidenote would probably be the better option if I had a more notes to keep track of (because of that nifty menu you included at the bottom).



As for feature requests and suggestions, since you asked, here are some ideas:

I like being able to get rid of the icons, and having those actions available in the context menu.

Also, really long words break it -- perhaps a horizontal scrollbar?

If you can, have the scrollbars be visible only when necessary.

Offline

#17 2005-07-15 22:06:31

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Sidenote - small note taking program (updated)

Time for my revolutionary suggestions (TM):

* make it work from a console too...
i.e. "sidenote.py --textmode" or something... you can just have it run "$EDITOR" on the file it stores crap in if you want...

* networked!! have it open a tcp port so that I can add/view it from a remote location... (this would be a nice chunk of work, but a fun feature, regardless)

* and a long shot - add the ability to throw checkboxes in there... so I can make a nice little TODO list

Offline

#18 2005-07-16 01:43:50

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sidenote - small note taking program (updated)

phrakture wrote:

Time for my revolutionary suggestions (TM):

* make it work from a console too...
i.e. "sidenote.py --textmode" or something... you can just have it run "$EDITOR" on the file it stores crap in if you want...

Might try something like that....

* networked!! have it open a tcp port so that I can add/view it from a remote location... (this would be a nice chunk of work, but a fun feature, regardless)

wow. I might try that too

* and a long shot - add the ability to throw checkboxes in there... so I can make a nice little TODO list

i was considering something like this too. And having it parse out dates from the text, and it it's before a date, render the date in green, after a date, render in red.

I'll make an option to turn off the buttons too.

Offline

#19 2005-07-16 17:48:08

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Sidenote - small note taking program (updated)

The input box that comes up when you add a new note... would it be possible to have an <enter> keypress on the textbox confirm the input?

Dusty

Offline

#20 2005-07-16 17:57:24

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sidenote - small note taking program (updated)

Dusty wrote:

The input box that comes up when you add a new note... would it be possible to have an <enter> keypress on the textbox confirm the input?

Dusty

Yeah, sure I'll work out how to add it to the next release.

I'm adding toggle'able toolbar and menu to next release as well.

And the text based interface.

Offline

#21 2006-01-25 19:08:16

FoPref
Member
From: Erlangen / Germany
Registered: 2004-03-24
Posts: 96
Website

Re: Sidenote - small note taking program (updated)

Hi,


why does it depend on aspell?
First startup didn't work until I ran makedir ~/.config/sidenote

wonder about this output:
/usr/bin/sidenote:808: GtkWarning: Invalid icon size 16

  self.trayicon.show_all()


On rightclick I got:
Traceback (most recent call last):
  File "/usr/bin/sidenote", line 820, in bold
    (start, end) = self.bufNote.get_selection_bounds()
ValueError: need more than 0 values to unpack
Segmentation fault

(my font doesn't support bold in the way the app wants it, btw how to select another font?)


Restarting it and right-clicking:
/usr/bin/sidenote:758: GtkWarning: gtk_text_buffer_move_mark: assertion `GTK_IS_TEXT_MARK (mark)' failed
  gtk.main()
/usr/bin/sidenote:758: GtkWarning: gtk_text_buffer_get_iter_at_mark: assertion `GTK_IS_TEXT_MARK (mark)' failed
  gtk.main()
/usr/bin/sidenote:758: GtkWarning: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have been modified since the iterator was created.
You must use marks, character numbers, or line numbers to preserve a position across buffer modifications.
You can apply tags and insert marks without invalidating your iterators,
but any mutation that affects 'indexable' buffer contents (contents that can be referred to by character offset)
will invalidate all outstanding iterators
  gtk.main()
/usr/bin/sidenote:758: GtkWarning: _gtk_text_buffer_get_line_log_attrs: assertion `GTK_IS_TEXT_BUFFER (buffer)' failed
  gtk.main()
Segmentation fault


Ah, now bold works! what a miracle?

Does it autosave on exit?


Nice tool, hope my message can help you improving smile


Ford

Offline

#22 2006-01-26 00:38:17

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sidenote - small note taking program (updated)

FoPref wrote:

Hi,


why does it depend on aspell?

if you want to use the optional addon gtkspell, it needs aspell.

First startup didn't work until I ran makedir ~/.config/sidenote

Yeah, I know about it, I may fix that. Sidenote was created to work for me, I am sharing it simply because it may be useful for others, so theres lots of small things like that that I could refine, but dont feel the need to.

wonder about this output:
/usr/bin/sidenote:808: GtkWarning: Invalid icon size 16

  self.trayicon.show_all()

its a warning its safe. The documentation doesnt have clear information on what parameter to pass for size. It seems if i pass it just any number, it works fine, despite the warning.

On rightclick I got:
Traceback (most recent call last):
  File "/usr/bin/sidenote", line 820, in bold
    (start, end) = self.bufNote.get_selection_bounds()
ValueError: need more than 0 values to unpack
Segmentation fault

The bold error happens when you hit bold/italic/underline without having text selected.

I have no idea whats causing the right click error. I need to look into that, but its difficult without a traceback.

(my font doesn't support bold in the way the app wants it, btw how to select another font?)

Change your gtk font wink

Restarting it and right-clicking:
/usr/bin/sidenote:758: GtkWarning: gtk_text_buffer_move_mark: assertion `GTK_IS_TEXT_MARK (mark)' failed
  gtk.main()
/usr/bin/sidenote:758: GtkWarning: gtk_text_buffer_get_iter_at_mark: assertion `GTK_IS_TEXT_MARK (mark)' failed
  gtk.main()
/usr/bin/sidenote:758: GtkWarning: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have been modified since the iterator was created.
You must use marks, character numbers, or line numbers to preserve a position across buffer modifications.
You can apply tags and insert marks without invalidating your iterators,
but any mutation that affects 'indexable' buffer contents (contents that can be referred to by character offset)
will invalidate all outstanding iterators
  gtk.main()
/usr/bin/sidenote:758: GtkWarning: _gtk_text_buffer_get_line_log_attrs: assertion `GTK_IS_TEXT_BUFFER (buffer)' failed
  gtk.main()
Segmentation fault

Havnt seen this one before.

Ah, now bold works! what a miracle?

Does it autosave on exit?

Yes, it should.

Nice tool, hope my message can help you improving smile
Ford

Thanks, and thanks for reminding me about the rightclick - i had totally forgotten about it.

Offline

#23 2006-01-26 01:06:24

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sidenote - small note taking program (updated)

Ok, looked into the right click error, and its a fault in arch's packages. On other distros it works fine, and shows the standard gtk menu.
Rebuilding pygtk from abs hasnt fixed it, I'm rebuilding gtk now.

I've also set the dialogs so enter hits OK for you, will upload later.

iphitus

Offline

#24 2006-01-26 01:33:06

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sidenote - small note taking program (updated)

Ok, fixed by updating gtk2 to 2.8.9, and rebuilding pygtk 2.8.4 from ABS.

So the bugs upstream, I might file a bug tonight.

iphitus

Offline

#25 2006-01-26 13:44:01

postlogic
Member
Registered: 2005-02-24
Posts: 410
Website

Re: Sidenote - small note taking program (updated)

What's wrong with that? Means he can easily port it to Windows!

Oh my god, I didn't just say that...

Offline

Board footer

Powered by FluxBB