Skip navigation.

bpm's Operations Room

understanding & extending Opera

Note-friendly, stretchable bookmarks

(last edited 2008-7-29)

On offer, at the cost of a copy-and-paste operation into your profile: bookmarks which
  • give immediate access to all fields (no need for a "details" click)
  • use space efficiently to maximize the size of the Description field
  • are stretchable in two dimensions, without limit.

Why bother? Well - although the conventional use of bookmarks is very limited, the tool is in several ways well-suited to use for serious note-taking (being, for example, naturally source-linked, and in Opera searchable through the use of tags, and even plural tags now, through the address dropdown). Freed from constraints imposed by an unambitious implementation, it can comfortably hold and display large amounts of text you type in, or copy from source documents. Whether its destiny is to grow into a new role remains to be seen; but it could.

To make the point, here's one stretched to full-page size, and holding a 100-KB file:

Of course you don't need to go that far, but there's no benefit to having tools which force you into cramped little boxes. It's bad design - constraining your freedom, limiting you to the designer's narrow conception of possible use. Stretchability is a binary variable; a decision has to be made - freedom, or constraint? Want freedom? Click below.

My interest in bookmarks started in January, when I made a project of a macro to optimize them for use as real note-taking tools (which they're quite capable of being) - but within the constraints of the existing dialog panel. More recently, I saw Tamil's tweak which eliminated the toggled Details panel by a small edit of the dialog.ini file - elegantly solving a problem I had been wrestling with in clumsy ways. Taking it further, this is a substantially perfected text-capable bookmark: controls refined for space efficiency, freed to stretch in height as well as width.

Here's the default bookmark:



and here it is after you've clicked the details button to get access to its fields:



By simply commenting out two lines in the code for the dialog, Tamil eliminated the hiding feature and the button which triggers it:



I didn't like the wasted space there, so I moved and resized a few controls. The nickname would never need all that space, and I don't need to see "show on" for the panel chceckbox... result was text box up to about eight lines from three:

But... like stock bookmarks, it only stretched in width. Why put up with that? No reason this thing shouldn't be able to stretch to full-screen size (and be almost all description field). So I stuck with it, and found the tweaks to liberate it.

I don't think there's any limit to how much you can put in a bookmark. You can stash whole articles in them, if you want - and then use the Save-selected and Merge features to move them in and out of your system, if need be.

Here's the code for it, along with the header for a dialog.ini file. If you don't have a custom dialog ini, you can make one by copying the blue text below, creating a text file called My Dialog.ini or whatever in your Opera folder (check Help / About Opera for path), and pasting. Finally, go to the Dialog Configuration preference where you can use the choose button to select your new file and get it registered.

I've thrown in a Find dialog that omits the line "Find what?" It's commented out at the moment - disabled by a semi-colon in front of its label. If you'd like to use it, remove the semicolon.

And on this page of Tamil's blog you can get a few other dialogs shorn of their Details equipment, including Delete Private Data (a good one to fix, so you can see what's about to be destroyed).

Opera Preferences version 2.0
; Dialog modification file for Opera. To reload after modification, restart Opera.
; This file is stored in UTF-8 encoding

[Add Bookmark Dialog]
Title = 70495
Group0, 67000, , 10, 10, 330, 323, Center, End
Label1, 25103, Name_label, 0, 0, 90, 23, Fixed
Edit2, 0, Name_edit, 100, 0, 270, 23, Size right
Label13, 70496, Parent_label, 0, 30, 90, 23,fixed
Dropdown, , Parent_dropdown, 200, 30, 170, 23, Size right
Button, 70497, New_folder_button,100,30,80,23, = New folder
Label5, 10944, URL_label, 0, 60, 150, 23, Fixed
Edit6, 0, URL_edit, 100, 60, 270, 23, Size right
Label3, 10943, Nick_label, 0, 90, 90, 23, Fixed
Edit4, 0, Nick_edit, 100, 90, 130, 23, fixed
Checkbox15, "PB", ShowOnPersonalbar_check, 260, 90, 50, 23,fixed
Checkbox16, "panel", ViewInPanel_check, 320, 90, 60, 23, fixed
Label7, 10945, Description_label, 0, 120, 90, 23, Fixed
MultilineEdit8, 0, Description_edit, 100, 120, 270, 120, Size

[;Find Text Dialog]
Title = 67198
;Group, , , 0, 0, 300, 150, Size, End
Group, , , 0, 0, 300, 127, Size, End
;Label, 68054, Find_what_label, 0, 0, 300, 23, Fixed
Edit, 0, Find_what_edit, 0, 23, 260, 23, Size right
Button, 68055, Find_next_button, 270, 23, 70, 23, Move right
Checkbox, 68056, Match_whole_word_only_checkbox, 0, 50, 200, 23, Fixed
Checkbox, 68057, Match_case_checkbox, 0, 73, 200, 23, Fixed
Group, , , 200, 50, 140, 46, Size right, End
Radiobutton, 68058, Search_up_radio, 0, 0, 140, 23, Fixed
Radiobutton, 68059, Search_down_radio, 0, 23, 140, 23, Fixed

A slight brush with tyrannyprivacy button: profile rewind via fileswap (obviously)

Comments

dapxin 29. August 2008, 10:20

I will never know why this is not by default on Opera.

Thx !

dapxin 26. September 2008, 06:41

Hi, the find dialog mod here, has it been implemented in 9.5 ?

Or, can you be more xplicit, what it does? thx

Bruce Middleton 27. September 2008, 21:42

Dapxin - the two lines with semicolons are the orginals. Changing150 to 127 in the first shortens the dialog; commenting out the second eliminates the "find what" line. So the change is just the elimination of that line (which to me is redundant and a little goofy).

dapxin 27. September 2008, 23:13

bpm, thx I got it now. nice.

btw, the link blog on here doesnt resolve to your blogpage. It returns a blank page..

Bruce Middleton 28. September 2008, 05:28

Thanks for pointing that out, dapxin. The link's OK - it's the page that isn't working. Neither is my archive page. Darn.

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.