Opened 17 years ago
Closed 16 years ago
#7074 closed enhancement (fixed)
Source browser subdirectories unexpand when returning to the page
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | 0.12 |
Component: | version control/browser | Version: | 0.11b2 |
Severity: | normal | Keywords: | review |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
To reproduce the issue:
- Go to the source browser and expand a directory therein.
- Click on a file in the directory to view.
- After the source viewer appears, press the "Back" button on your browser.
- Observe that the previously expanded directory has returned to an unexpanded state.
Browser version: Firefox 2.0.0.13
OS: Windows XP
My version of Trac is served on ubuntu gutsy-apache2-mod_python.
Attachments (2)
Change History (8)
comment:1 by , 17 years ago
Milestone: | → 2.0 |
---|
comment:2 by , 17 years ago
I recently did a post which also complies to this featurerequest http://groups.google.de/group/trac-dev/browse_thread/thread/df6a35486e0c9c2c
comment:3 by , 17 years ago
Milestone: | 2.0 → 0.12 |
---|
Using a fragment containing the path to the last opened folder would indeed be a good compromise. Thanks for the idea!
by , 16 years ago
Attachment: | 7074-directory-expand-and-nav.patch added |
---|
Implements this feature and a bunch of other minor improvements (patch on trunk r7672)
comment:4 by , 16 years ago
Keywords: | review added |
---|---|
Milestone: | 0.13 → 0.12 |
I have a patch queue implementing several improvements for the directory expansion feature:
- make it possible to reload (error) rows
- more keybindings for the keyboard navigation:
- 'a' for annotate
- 'l' for changelog
- 'r' for reloading an already expanded folder (useful when viewing the latest version)
- fixed keyboard navigation to the upper directory
- and finally, the feature requested here (restore latest expanded folder to its expanded state when going back to a browser page)
Note that this won't restore all the expanded folders, that would probably be overkill, but only the latest expanded one.
Note: for reviewing/testing, I simply snapshotted all the changes at once with a svn diff
(attachment:7074-directory-expand-and-nav.patch). If there's anything wrong, I'll fix the corresponding patch. In case anyone would prefer to see the full patch stack, just ask.
by , 16 years ago
Attachment: | 7074-directory-expand-and-nav.2.patch added |
---|
Incredible how posting code helps you to find bugs immediately afterwards ;-) Same as before, also re-expands correctly when browsing from another place than the root and when there are query arguments (non-default sort order, fixed rev, etc.)
comment:5 by , 16 years ago
#8003 mentioned the problem with 'o'pening the ".." entry with the browser keyboard shortcut, which incidentally is also fixed in this patch.
comment:6 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Right, it would be cool if it worked like that.
If someone finds a cheap way to implement that, let me know ;-)