After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 562157 - Write-Protect Individual Tomboy Notes
Write-Protect Individual Tomboy Notes
Status: RESOLVED NOTGNOME
Product: tomboy
Classification: Applications
Component: General
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
gnome[moved-to-github]
Depends on:
Blocks:
 
 
Reported: 2008-11-24 18:12 UTC by charlie law
Modified: 2017-07-31 12:35 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description charlie law 2008-11-24 18:12:32 UTC
Sometimes in a Tomboy note I put valuable info -- a phone number or scrap of code -- that I want to make sure I don't want to corrupt. I've found that, in accessing that same info later, it's very easy to corrupt the info, e.g., in copying and pasting it or something.

It would be good if there were an easy way to write-protect individual Tomboy notes. I know I could locate the individual note file and change the permissions, but that's a cumbersome process that involves doing a text search through multiple files. It would be much better be able to do this on the fly, and to invididual notes.
Comment 1 Iivari Mokelainen 2008-11-26 06:22:47 UTC
I agree, this feature should be part of tomboy's core features.
Comment 2 Arief Bayu Purwanto 2008-12-05 23:28:18 UTC
Hi All,

I've create a preliminary code as tomboy addin. It work greate, I can write protect individual notes.
BUT! I can't save it's state on file, so every time I restart my tomboy, the note is writeable again (doh).

The problem is, If I want to make it permanent, I have to write <read-only>1</read-only> to note files (*.note). But I can't implement it with just addin, I have to hack NoteArchiver on Note.cs.

So my question is: is there a way to implement it without hack the Note.cs?
Comment 3 Stefan Schweizer 2008-12-13 08:52:42 UTC
(In reply to comment #2)
> So my question is: is there a way to implement it without hack the Note.cs?
> 

You could try to use a tag for this. Maybe something like 'system:read-only' would fit. 
Comment 4 Arief Bayu Purwanto 2008-12-13 12:19:10 UTC
Thank you Stefan,

I've released it here: http://bayu.freelancer.web.id/2008/12/13/tomboy-addinread-only-note/
Comment 5 Sandy Armstrong 2010-05-14 15:13:40 UTC
In Tomboy 1.2, we now have a Note.Enabled property that is used by autosync.

This could be used by add-ins.
Comment 6 Sandy Armstrong 2010-05-14 15:15:12 UTC
(In reply to comment #5)
> In Tomboy 1.2, we now have a Note.Enabled property that is used by autosync.
> 
> This could be used by add-ins.

Actually, that might not be the best thing.  It desensitizes the toolbar and a bunch of other things that you might still want in the case of a read-only note.  Maybe I'll tweak this for 1.4.
Comment 7 André Klapper 2017-07-31 12:35:19 UTC
The Tomboy team has moved from GNOME Bugzilla to GitHub for bug reports and feature requests: 
      https://github.com/tomboy-notes/tomboy/issues/
Closing this report as NOTGNOME as part of Bugzilla Housekeeping (bug 781054) to keep tasks in one place. Please feel free to transfer this task to GitHub if this task is still valid in a recent Tomboy version. 
We are sorry for the inconvenience.