In Krusader ActionMan how do I add a command to open Kdiff3 in merge mode with selected…
- User
In Krusader ActionMan how do I add a command to open Kdiff3 in merge mode with selected files from both Krusader panels?
Assistant
To add a command in Krusader's ActionMan to open Kdiff3 in merge mode with selected files from both panels:
-
Open ActionMan by going to Tools → ActionMan (or press Alt+Shift+A)
-
Click New Action to create a new user action
-
Configure the action with these settings:
Basic tab:
- Identifier: Give it a unique name like
kdiff3_merge - Title: "Merge with Kdiff3"
- Icon: Choose an appropriate icon (optional)
- Category: Choose or create a category like "Diff Tools"
Command tab:
- Command:
kdiff3 --merge %aList("Selected")% %iList("Selected")% - Execution mode: "Run in terminal" (unchecked, unless you want console output)
- Accept: Set to "Local files only" (or as needed)
Advanced tab:
- Enable "Separate standard error" if you want to see error messages
- Identifier: Give it a unique name like
-
The key placeholders used:
%aList("Selected")%- Gets selected files from the active panel%iList("Selected")%- Gets selected files from the inactive panel
-
Click OK to save the action
For a 3-way merge (with base file), you might want to create a variant that uses:
kdiff3 --merge %aPath%%aFile% %iPath%%iFile% -o %aPath%%aFile%You can then access this action through:
- The User Menu (if you assigned it there)
- Right-click context menu
- Assign a keyboard shortcut in Settings → Configure Shortcuts
Note: Make sure you have exactly one file selected in each panel when using this action, as Kdiff3's merge mode typically expects 2-3 input files.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.