When opening a directory in a new tab, the history of the previous tab is
copied into the new one, but the newly opened directory is not stored in the
* Navigate to root ('File System')
* Navigate to the 'usr' directory
* Navigate to the 'share' directory
The top two entries should now say 'usr' and 'File System'.
* Right click the xfce4 directory and click on 'Open in New Tab'
Note that this new tab has the same history as the old one.
* Navigate to the 'applications' directory
Note that the 'share' directory has now been added to the history, but the
'xfce4' directory has not. When you use the back button at this point, you
will indeed end up in /usr/share and not in /usr/share/xfce4.
This odd behaviour does not occur when opening a directory in a new *window*.
* Opening a directory in a new tab should give the new tab a fresh history, as
in web browsers with tabs.
* The directory that is opened in the new tab should be recorded in the history
of that new tab.
I am using version 1.6.10-2 on amd64, as provided by packages of Debian
When you follow Michael's steps and, from the 'xfce4' tab, navigate one level
up, the 'xfce4' folder *should* be selected, but it isn't. Also, this is not a
problem when 'xfce4' was opened as a new window.
Digging into this revealed actually two problems here:
1) thunar_window_notebook_insert(ThunarWindow *window, ThunarFile *directory)
creates a copy of the history for the new tab to use. For newly created tabs,
these histories are exact copies, lacking a history entry for the directoy of
the original tab itself (this is what Michael already explained).