Edgewall Software
Modify

Opened 16 years ago

Closed 15 years ago

#7074 closed enhancement (fixed)

Source browser subdirectories unexpand when returning to the page

Reported by: Peter_Schwer@… 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:

  1. Go to the source browser and expand a directory therein.
  1. Click on a file in the directory to view.
  1. After the source viewer appears, press the "Back" button on your browser.
  1. 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)

7074-directory-expand-and-nav.patch (9.4 KB ) - added by Christian Boos 15 years ago.
Implements this feature and a bunch of other minor improvements (patch on trunk r7672)
7074-directory-expand-and-nav.2.patch (9.4 KB ) - added by Christian Boos 15 years ago.
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.)

Download all attachments as: .zip

Change History (8)

comment:1 by Christian Boos, 16 years ago

Milestone: 2.0

Right, it would be cool if it worked like that.

If someone finds a cheap way to implement that, let me know ;-)

comment:2 by gunnar_thielebein@…, 16 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 Christian Boos, 16 years ago

Milestone: 2.00.12

Using a fragment containing the path to the last opened folder would indeed be a good compromise. Thanks for the idea!

by Christian Boos, 15 years ago

Implements this feature and a bunch of other minor improvements (patch on trunk r7672)

comment:4 by Christian Boos, 15 years ago

Keywords: review added
Milestone: 0.130.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 Christian Boos, 15 years ago

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 Christian Boos, 15 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 Christian Boos, 15 years ago

Resolution: fixed
Status: newclosed

Finally committed that patch stack.

Relevant changesets for this specific feature are [7979] and [7980].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.