Announcement

Collapse
No announcement yet.

Feature Request: Customize Toolbars with Custom Commands

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Feature Request: Customize Toolbars with Custom Commands

    first of all, BC2 is a great, BC3 is even better!

    One thing I'm still missing is the ability to add Custom Links or Commands to the Toolbar for the Folder Compare and File Compare views. I would suggest that the "Customize Commands..." dialog enables you to add "Command line" actions which can be called with a bunch of placeholders depending on which the view/toolbar where it is used.

    e.g.
    I would like to be able to add Toolbar Icons for "SVN Log" using TortoiseSVN.

    The Command for the "Show SVN Log for Left Directory" would be..
    Code:
     X:\path\to\tortoiseproc.exe /command:log /path:%left%
    The Command for the "Show SVN Log for Right Directory" would be..
    Code:
     X:\path\to\tortoiseproc.exe /command:log /path:%right%
    A list of nice placeholders would be...
    for Folder Compare:
    Code:
    %left%            full path of the Directory on the left
    %right%           full path of the Directory on the right
    %sel%             full path Selected File/Directory (left one if selection is on both sides)
    %sel_left%        full path selected File/Directory on the left
    %sel_right%       full path selected File/Directory on the right
    %sel_name%        just the Name/Filename of the selected File/Directory (left one if selection is on both sides)
    %sel_left_name%   just the Name/Filename of the selected File/Directory on the left
    %sel_right_name%  just the Name/Filename of the selected File/Directory on the right
    for File Compare:
    Code:
    %left%        full path of the File on the left
    %middle%      full path of the File in the middle (3-way merge)
    %right%       full path of the File on the right
    %out%         full path of the File in the output-pane (3-way merge)
    %left_name%   just the Filename of the File on the left
    %middle_name% just the Filename of the File in the middle (3-way merge)
    %right_name%  just the Filename of the File on the right
    %out_name%    just the Filename of the File in the output-pane (3-way merge)
    Further, an Toolbar Icons could be customizable and grayed out if the Command includes parameters that are not available. e.g. The Icon for a command which uses %sel% as a parameter could be grayed out if there is nothing selected...

    What do You Think?

  • #2
    Thank you for the suggestion. You can't make a custom command a toolbar button, but you can add them for use with the Actions > Open With command. To configure commands, go to the Open With section of the Tools > Options dialog.

    Also, if you have TortoiseSVN installed on your computer, you can access it through the Actions > Explorer menu when you right click on a file or folder associated with Subversion.
    Chris K Scooter Software

    Comment


    • #3
      Chris, I know about the "Open With" and the integrated Explorer Context Menu, which is tremendous!

      E.g. when I want to commit all my changes to a release branch (Subversion), I compare my development branch with the release branch, 2 local directories under SVN control. The "Commit" command is in the Explorer Context Menu of the root directory. But in BC there is no root node to click on for the context menu. The root node is shown as a combo box (textfield with dropdown) on each side. A right-click on this just opens a generic textfield context menu.

      As this combo box represents the path of the root node for each side, it would be nice to have there also an Explorer Context Menu. I know it might not always be applicable because this is a free form textfield and the entered path doesn't need to exist. But Anyway, for 99% of (my) use cases the path in this combo box exists, so I want that Expl. Context Menu!

      The customizable toolbar thingy would be very high value for experienced users who use BC for their daily work. It really helps to integrate BC with user/environment specific needs such as.... starting a Build/Batch/Deployment Process after/before comparing stuff in BC.

      Any chance to get this (little) feature?

      Comment


      • #4
        You can do this with "Open With" in the current version.

        The open with gives the current path without the filename in the %p variable.

        To do a svn command on the base folder, add commit as an Open With command and pass it "%p" as the command line argument. Then use the open with command on a file in the root of the base folder to check in the entire folder.
        Chris K Scooter Software

        Comment


        • #5
          Nice Tip!

          But admittedly, there are no files in the root folders that appear, due to some filters...

          Anyway, I love toolbars more than context menus...

          Comment

          Working...
          X