! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
dbus interface += DisplayFolderAndSelect
Status:
CLOSED: FIXED
Severity:
enhancement

Comments

Description dannym editbugs 2006-03-06 19:52:58 CET
I wrote some full text search program...

Now in the search result window there is a button "Open Folder" that
will open the folder of the "currently selected file of the search
result window".

It would be nice if I could tell thunar to select/scroll-to a
given file name with some thunar dbus interface method.

Like:

directory_path = "/foo"
select_file_name = "bar"

xfce_file_manager.DisplayFolderAndSelect(directory_path,
select_file_name, '')
Comment 1 Benedikt Meurer editbugs 2006-03-08 21:54:05 CET
Committed with revision 20302.

2006-03-08	Benedikt Meurer <benny@xfce.org>

	* thunar/thunar-view.{c,h}: Add new methods get_visible_range() and
	  scroll_to_file().
	* thunar/thunar-standard-view.c: Implement get_visible_range() and
	  scroll_to_file(). Drop the scroll_offsets, will be handled in
	  ThunarWindow.
	* thunar/thunar-window.{c,h}: Remember the first visible file whenever
	  leaving a directory and scroll to it when entering the directory
	  again.
	* thunar/thunar-application.{c,h}: Return the created window from the
	  thunar_application_open_window() method.
	* thunar/thunar-dbus-service-infos.xml, thunar/thunar-dbus-service.c:
	  Add DisplayFolderAndSelect() to the org.xfce.FileManager interface.
	  File managers that cannot scroll and select to a given file can
	  silently ignore the filename parameter and handle it like an
	  invocation of DisplayFolder(). Bug #1553.

Comment 2 Benedikt Meurer editbugs 2006-07-27 23:30:19 CEST
*** Bug 2079 has been marked as a duplicate of this bug. ***

Bug #1553

Reported by:
dannym
Reported on: 2006-03-06
Last modified on: 2009-07-17
Duplicates (1):
  • 2079 a command line to show the location of a file could be interesting

People

Assignee:
Jannis Pohlmann
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information