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 588807 - Feature request: protect notes
Feature request: protect notes
Status: RESOLVED FIXED
Product: gnote
Classification: Applications
Component: main
0.5.x
Other Linux
: Normal enhancement
: ---
Assigned To: gnote-maint
gnote-maint
Depends on:
Blocks:
 
 
Reported: 2009-07-16 18:24 UTC by charlie law
Modified: 2013-08-22 21:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Added ReadOnly addin (6.52 KB, patch)
2010-09-26 19:21 UTC, Debarshi Ray
needs-work Details | Review
Added ReadOnly addin. (6.58 KB, patch)
2011-07-31 12:25 UTC, Aurimas Černius
none Details | Review

Description charlie law 2009-07-16 18:24:46 UTC
Tomboy has a nifty feature which I use all the time. It let you protect a designated note from being inadvertently changed. Many of my notes include phone numbers, urls, scraps of code, etc., that are, in effect, critical strings of data. I found that I would often accidentally corrupt a note by searching or editing. 

With a Lock/Unlock feature, I can know for sure that no note will be changed unless I intentionally change it.

Thanks very much.
Comment 1 Hubert Figuiere (:hub) 2009-07-19 03:04:35 UTC
I have never seen that feature in Tomboy. Are you sure it has it?
Comment 2 charlie law 2009-07-19 05:01:46 UTC
Yes. The Lock/Unlock Note feature is found under the Tools icon on the menu bar. This feature has been in Tomboy for some time now. I'm the one who requested it. You can look at the bug/feature request here:

http://bugzilla.gnome.org/show_bug.cgi?id=562157

As I read over the Tomboy bug description and comments, I'm wondering now if it was released as an add-in for Tomboy rather than as a regular feature.

Regardless, I find it invaluable, and I can use Tomboy with much more confidence. It's the only feature that is keeping me from switching over to GNote!
Comment 3 Hubert Figuiere (:hub) 2009-07-19 05:15:31 UTC
That's why I couldn't find it. It is a third-party addin.
Comment 4 charlie law 2009-07-19 05:19:56 UTC
O.K. I regret that I don't have the skills to port or recode the add-in so that gnote could use it. What you've done with gnote is excellent, by the way.
Comment 5 charlie law 2009-07-19 05:28:29 UTC
This link has pretty good info about how the add-in was done for Tomboy.

http://bayu.freelancer.web.id/2008/12/13/tomboy-addinread-only-note/
Comment 6 Debarshi Ray 2010-09-26 19:21:34 UTC
Created attachment 171141 [details] [review]
Added ReadOnly addin

Here is a first attempt.

The code is not ready because of a few bugs that I have not had the time to debug:
+ Even after marking a note as read-only, one can click in the middle of a sentence and hit enter.
+ Gnote sometimes crashes when the "Read Only" check button is toggled.
Comment 7 Aurimas Černius 2010-10-18 20:21:29 UTC
Review of attachment 171141 [details] [review]:

I have committed a a patch to git. Addin categories changed from string to integer constants. This patch need to be updated accordingly.
Also see Bug 620013. Should we really use `lib' prefix for addins?
Comment 8 Aurimas Černius 2011-07-31 12:25:11 UTC
Created attachment 192943 [details] [review]
Added ReadOnly addin.

Edited the patch for current Gnote.

The are several issues present, when marking note as readonly:
1. Pressing Enter in bulleted list works
2. Tab/Shift+Tab works in bulleted list
3. All text manipulation commands (bold and others) work

So, to make this add-in work well, we need to somehow rethink, how all these actions are implemented.
Comment 9 Aurimas Černius 2013-08-22 21:32:05 UTC
I've decided to include this addin in the next release. The problems mentioned above are still present, will try to get them fixed until the final release.