[haiku-bugs] Re: [Haiku] #3171: Better prompting in Tracker file operations

  • From: "humdinger" <trac@xxxxxxxxxxxx>
  • Date: Thu, 02 Dec 2010 13:47:26 -0000

#3171: Better prompting in Tracker file operations
-----------------------------------+-----------------------------
  Reporter:  anevilyak             |        Owner:  anevilyak
      Type:  enhancement           |       Status:  new
  Priority:  high                  |    Milestone:  R1/alpha3
 Component:  Applications/Tracker  |      Version:  R1/pre-alpha1
Resolution:                        |     Keywords:
Blocked By:  1420                  |  Has a Patch:  0
  Platform:  All                   |     Blocking:  3296
-----------------------------------+-----------------------------

Comment (by humdinger):

 OK. The following is a possibility I came up with to start the discussion.
 Basically it's in a  worst case a 3 step process.


 1. Copy/move a folder, but there's already a folder with that name present

 Alert:
 {{{
 A folder with that name already exists at $ParentDestFolder(link-to-show-
 in-Tracker).

  [Button: Replace existing folder]              [Button: Merge files]
 }}}

 ----

 If "Merge files" or when copying/moving some files:
 2. Some of filenames to be copied/moved already exist at the destination

 Window:
 {{{
 There [is|are] [a|$NumberOfClashingFiles] file[s] with [an] identical
 name[s]
 in $ParentDestFolder(link-to-show-in-Tracker).

 [Expander-view: List of clashing files in $ParentDestFolder.]
 {You can open/rename/getinfo/move/copy files directly in this list and
 display any attribute column.}

  * Prompt for every file [default]
  * Skip clashing file[s]
  * Overwrite older file[s]
  * Overwrite [all] file[s]

  [Button: Cancel]               [Button: OK, [prompt|skip|overwrite
 older|overwrite all]]
 }}}

 ----

  If "Prompt for every file":
 3. When encountering the clashing file

 Window:
 {{{
 There's already a file with the name $ClashingFileName in
 $ParentDestFolder(link-to-show-in-Tracker).

 Select the file to keep.

                         Clashing file                   Existing file

 Last modified:          $date                           $date
 Size:                   $size                           $size
 Checksum:               $md5sum                         $md5sum
   [if image|video:]
 Dimensions:             $dimensions                     $dimensions
   [if video|audio:]
 Runtime:                $runtime                        $runtime
   [if image|video|audio:]
                         Thumbnail|MediaPlayer
 Thumbnail|MediaPlayer

 [ ] Use this choice for all clashing files in this operation.
     [only needed when there is more than one file]

 [Button: Abort]   [Button: Skip this file]   [Button: Keep
 [clashing|exisiting file]]
 }}}

 The "Clashing file vs. Existing file" columns are selectable, click
 anywhere and the the whole thing is marked for keeping. As long as there
 is no file selected, the "Keep" button is inactive.

 ----

 This is my first jab at it. Too much? Not enough?[[BR]]
 I'm not sure about what attributes should all be available in the
 clashing/existing file columns in 3), but I do like to have a visual
 comparison side by side.[[BR]]
 Maybe an option to rename the clashing/existing file in a certain pattern
 (e.g. adding a suffix like "(2)" or "new"/"old" etc.) would also be nice.

 Just brain-storming...

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/3171#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: