Modify

Ticket #206 (new enhancement)

Opened 6 years ago

Last modified 4 years ago

In "Search files", display directory path in reverse to match slsk 156c client?

Reported by: Mr. Gil Owned by: quinox
Priority: minor Milestone: Release 1.3.0
Component: nicotine Version: SVN
Keywords: Cc:

Description

Hi! I'm loving Nicotine 1.2.9! (Not available as a choice in the Version dropdown for this ticket...)

In the Windoze slsk client 156c, directory paths are shown reversed in the search window as album\artist\music\Desktop\username\Users rather than \Users\username\Desktop\music\artist\album

This has a couple of advantages. The directory column can be kept much shorter in the search window, allowing more real estate for other info on the screen. It also helps to prevent downloading a user's entire share by mistake if they have all their files in one large directory named (for instance) "mp3z". Seeing the album name first is reassuring that this is indeed just a single album.

Thanks for an awesome app!

Attachments

Change History

comment:1 Changed 5 years ago by anonymous

Yeah, this would be nice! I agree.

comment:2 Changed 5 years ago by offhand

  • Owner changed from daelstorm to quinox

comment:3 Changed 5 years ago by offhand

  • Version changed from 1.2.8 to SVN (checked out today)
  • Milestone set to Release 1.3.0

comment:4 Changed 4 years ago by Mr. Gil

If anyone wants to see this in action, here's the code:

In the function AddResult?() in file .../pynicotine/gtkgui/search.py

delete or comment out this line:

dir = result[1][:-len(name)]

and replace it with this line:

dir = "
".join(result[1].split('
')[::-1])[len(name)+1:]

Gotta love Python. :-)

(Sorting by directory still works, maybe not quite as expected, but still in a useful way.)

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.