Closed
Bug 211538
Opened 22 years ago
Closed 21 years ago
Cmd-B should hide bookmarks manager if it's visible (and history too)
Categories
(Camino Graveyard :: Bookmarks, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
Camino0.8
People
(Reporter: sbwoodside, Assigned: mikepinkerton)
References
Details
(Keywords: access)
Attachments
(1 file, 2 obsolete files)
3.00 KB,
patch
|
Usul
:
review+
|
Details | Diff | Splinter Review |
Cmd-B hides the bookmarks manager if it's already visible, and Cmd-Y hides the
manager if the History is visible.
Reporter | ||
Comment 1•22 years ago
|
||
* added - (int) selectedContainer method to BookmarksController
* changed manageBookmarks and manageHistory in BrowserWindowController
Reporter | ||
Updated•22 years ago
|
Attachment #126981 -
Flags: review?(pinkerton)
Comment 2•22 years ago
|
||
dupe of 203493?
(or the other way around given things like patches)
Assignee | ||
Comment 3•22 years ago
|
||
i think i'm in agreement with this. the problem is i'm not sure how to extend
this as we move to more than 1 bookmark container (which dhaas is close to
having ready. Soon there will be more than just bookmarks and history and i
don't think this solution quite scales to that.
it is something i agree we need to solve. i only didn't do it because again i'm
not sure even if the manager is gonna stay in this window.
Target Milestone: --- → Camino0.8
Reporter | ||
Comment 4•22 years ago
|
||
When you have multiple bookmarks containers, would Cmd-B take you back to the
main one?
Assignee | ||
Comment 5•22 years ago
|
||
that's the question, and the danger. the whole point of this bug is to allow a
cmd-key to quickly hide the bm manager. once you have it press it some unknown
number of times to make it go away (sometimes once, sometimes twice), it becomes
a crap shoot and the user learns this wonky behavior of pressing it repeatedly
and sometimes toggling too many times and cursing camino.
note that safari disables cmd-opt-b entirely when the manager is enabled. i'm
not sure there is a key equiv to toggle it (besides maybe cmd-[ for back)
Comment 6•22 years ago
|
||
Comment on attachment 126981 [details] [diff] [review]
patch
We have a new Camino request flag which can be set multiple times for a patch.
Moving old review requests to the new flag. Sorry for the spam.
Attachment #126981 -
Flags: review?(pinkerton) → review?
Comment 7•21 years ago
|
||
David's bookmarks patch has landed. Should we close this one or is cmd-B still
supose to hide the bmmanager ?(pink)
Comment 8•21 years ago
|
||
this bug's description, as stated, has been fixed. command-b does not hide the
bookmarks manager if it's visible.
re: comment 5, safari (v85.5) now lets you toggle the manager with command-option-b.
re: comment 7, if command-b should hide the bookmark manager, that'd be bug 203493.
Reporter | ||
Comment 9•21 years ago
|
||
Uses the enter key instead of the return key.
Attachment #126981 -
Attachment is obsolete: true
Reporter | ||
Comment 10•21 years ago
|
||
Comment on attachment 135592 [details] [diff] [review]
enter key
Wrong bug, sorry.
Attachment #135592 -
Attachment is obsolete: true
Reporter | ||
Comment 11•21 years ago
|
||
fixing title
Summary: Cmd-B hides bookmarks manager if it's visible (and history too) → Cmd-B should hide bookmarks manager if it's visible (and history too)
Reporter | ||
Comment 12•21 years ago
|
||
updated patch, to work with david's new bookmark manager.
Reporter | ||
Updated•21 years ago
|
Attachment #126981 -
Flags: review?
Reporter | ||
Updated•21 years ago
|
Attachment #135607 -
Flags: review?
Comment 13•21 years ago
|
||
*** Bug 203493 has been marked as a duplicate of this bug. ***
Comment 14•21 years ago
|
||
Comment on attachment 135607 [details] [diff] [review]
updated patch
> -(IBAction)manageHistory: (id)aSender
> {
>- if ( ![mContentView isBookmarkManagerVisible] )
>+ if ( [mContentView isBookmarkManagerVisible] == NO
>+ || [mBookmarkViewController selectedContainer] == kHistoryContainerIndex ) {
> [self toggleBookmarkManager: self];
>-
>- [mBookmarkViewController selectContainer:kHistoryContainerIndex];
>+ }
>+ if( [mContentView isBookmarkManagerVisible] )
>+ [mBookmarkViewController selectContainer:kHistoryContainerIndex];
> }
This is unecessary. When viewing History, pressing cmd-B pops up the bookmark
manager and does not Hide the history manager.
cmd-Y does not hide historyn when history is shown.
Also it would be great if the menu title would change to Hide bookmark when
bookmark are enabled so that the shortcut reflects something in the menu.
I do think bookmark and history should be 2 different bugs.
Attachment #135607 -
Flags: review? → review-
Reporter | ||
Comment 15•21 years ago
|
||
> This is unecessary. When viewing History, pressing cmd-B pops up the bookmark
> manager and does not Hide the history manager.
> cmd-Y does not hide historyn when history is shown.
I don't understand.
What I implemented does this:
- when you are in bm manager, viewing history collection, Cmd-Y closes the bm
manager. Cmd-B switches to "Menu Bookmarks" collection.
- when you are in BM Manager, viewing ANY OTHER collection, Cmd-Y switches to
the "History" collection. Cmd-B closes the BM manager.
That's the intended behaviour.
> Also it would be great if the menu title would change to Hide bookmark when
> bookmark are enabled so that the shortcut reflects something in the menu.
File another bug :-)
> I do think bookmark and history should be 2 different bugs.
No, I don't think so. In the code, the "Bookmarks manager" is also the history
manager. That's the way the code is designed. I don't think trying to change
that is either wise or necesary... so for now anyway, "History Manager" is
programmatically, merely a "collection" in the "Bookmarks Manager".
Comment 16•21 years ago
|
||
Comment on attachment 135607 [details] [diff] [review]
updated patch
Sorry simon, I missed something yesterday When I wrote my review; I've just
cleanly reapplyied the patch and does what you describe and what I think is the
correct behaviour.
From the summary I was dumbly trying to switch from History to normal with
cmd-B.
Attachment #135607 -
Flags: review?
Attachment #135607 -
Flags: review-
Attachment #135607 -
Flags: review+
Reporter | ||
Updated•21 years ago
|
Attachment #135607 -
Flags: review? → review?(josha)
Reporter | ||
Updated•21 years ago
|
Attachment #135607 -
Flags: review?(josha) → review?
Comment 17•21 years ago
|
||
Ludo is right - the menu should change based on what's visible. It might be
tricky. Have fun ;)
Also - rather than add a "-(int) selectedContainer" method, use the
already-existing "-(BookmarkFolder *)activeCollection" method & check to see if
what's returned is the history folder.
Assignee | ||
Comment 18•21 years ago
|
||
fixed not using above patch.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 19•21 years ago
|
||
>comment #18
Do you forget to add some lines to Locarizable.strings?
"Hide All Bookmarks" = "Hide All Bookmarks";
"Show All Bookmarks" = "Show All Bookmarks";
"Manage Bookmarks" = "Manage Bookmarks";
"Bookmarks" = "Bookmarks";
Assignee | ||
Comment 20•21 years ago
|
||
i was under the impression that a localization could add it themselves. It uses
the key you give it if the string isn't in a l10n string file.
is that incorrect?
Comment 21•21 years ago
|
||
That is correct, but these lines are necessary to localize.
for example, French localizer change localizable.strings:
"Hide All Bookmarks" = "Hide All Bookmarks";
to
"Hide All Bookmarks" = "cachez tout signet";
and copy it French.lproj folder.
Assignee | ||
Comment 22•21 years ago
|
||
but i thought the french localization could just add that line to their version
of that file, it doesn't need to be in the english version, or am I mistaken on
how NSLocalizedString works?
Comment 23•21 years ago
|
||
mike this means the french guy has to read the code in order to find what
strings to localize. It's faster and easier for the localisers to have all the
strings in the strings.plist and translkate them there. hence they do not need
to read all the code.
The pitty for use is that the strings.plist is not diffeable.
Assignee | ||
Comment 24•21 years ago
|
||
makes sense. added:
"Hide All Bookmarks" = "Hide All Bookmarks";
"Show All Bookmarks" = "Show All Bookmarks";
to the localized plist. i think that's all we need for this case. removed the
sidebar strings since they're now unused. thanks for the reminder!
Reporter | ||
Comment 25•21 years ago
|
||
check out the genstrings command line tool, it might be useful.
Also "AppleGlot" although I think it's more a tool for using later for
generating localized versions (as opposed to now, when we are internationalizing).
Updated•21 years ago
|
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•21 years ago
|
Attachment #135607 -
Flags: review?
You need to log in
before you can comment on or make changes to this bug.
Description
•