I'm still trying to figure out how to move a file deeper into a folder in single-window mode so I don't have to open anything else. Is there a way to navigate to it in the folder tree without having to open the folder itself?
How else can I drag a folder or file into a subfolder? Dragging it with the cursor only works in the folder tree, where they expand. But if there are 50 of them, it's hard to find it there. That's why I have these problems: drag a file or folder into the one in front of you, but still be able to see its contents and drag it into subfolders.
Don't suggest presets or templates. I need that quite often, but not in ten pre-defined folders. I've already done that.
Maybe some script could show and activate this folder in the folder tree? Like when you go into it, but not by going into it, but by highlighting it with the cursor.
In short, the task is to drag the file in front of me into the folder in front of me. For example, not into Games, but Games\Doom\patches. Without updating or touching other folders, just drag it directly into the patches folder.
the file is immediately moved there without changing the current folder.
Or, even better, if at all possible, during Drag&Drop, simply move along with the held file deeper and deeper into the folder tree to the desired final directory.
Is there a way to implement this behavior using Directory Opus? Particularly interested in:
how to get the path of the exact folder that Drag&Drop is currently running on;
Is it possible to force the menu, when selecting the destination folder, to complete the move operation, and not just perform the transition;
is there a way to implement full folder navigation (not in the folder tree) directly while dragging a file.
Thanks for the button! This is not exactly what was needed, but a little closer to the goal. This essentially shows another folder tree.
But now there are two options. In the folder tree, sort it as in a lister, but here it will be sorted alphabetically, and it will be easier to find the folder you need.
Another thing would be to make a button so that when the cursor selects a folder, such a tree is built for it, and not for the entire root folder.
If you select files and then, on the toolbars near the top-left of the window, click Copy Files or Move from a single-display window, you'll get a dialog asking you to select a folder to put them into. That seems like exactly what you're looking for.
No, I can/want to interact. Select with the cursor, for example. The goal is to drop the file into a subfolder without going into the folder. I would be happy with a script to click on a folder and go to it in the folder tree.
As when entering it. Only when I entered, I can no longer grab the required file, which is left outside.
I would be completely satisfied with the option “select a folder and go to it in the tree”, and I won’t have to look for it in the tree, it will simply go to the desired selected folder, then I’ll collapse it and drag it into it where I need it.
The Go FOLDERCONENT method mentioned in your other thread is probably the easiest way to get that.
If that doesn't do exactly what you want, you'll probably need to write a script with a custom UI (which wouldn't be too difficult if you know some scripting already; the building blocks are all there already at least; but will require some scripting knowledge or someone to help).
Let's pick a thread and close the other one. Having two threads about the same question just makes the answers harder to find.
Let's pick a thread and close the other one. Having two threads about the same question just makes the answers harder to find.
There they simply solved the first part and, in general, I realized that point 1 is no longer relevant, because There are too many folders in menu and it is better to make specific links. It’s better to close that one then, leave this one
I have now made a button that shows the contents of the selected folder, finally. Both by button and by RMB.
But now how can I right-click a file, the drop menu on the folder> shows its contents> you can drag it there.
I wrote the script in AI, but it doesn’t work either:
function OnInit(initData) {
initData.name = "Tree Follow Selection";
initData.version = "1.0";
initData.desc = "Expands the tree when you click/select a folder";
initData.Default_enable = true;
}
function OnSelectionChange(selectionInfo) {
// Check that the window is selected and there are selected elements
if (!SelectionInfo.lister || selectionInfo.lister.activetab.Selected_dirs.count == 0) return;
function OnInit(initData) {
initData.name = "Tree Follow Selection";
initData.version = "1.0";
initData.desc = "Expands the tree when clicking/selecting a folder";
initData.Default_enable = true;
}
function OnSelectionChange(selectionInfo) {
// Check that the window is selected and there are selected elements
if (!SelectionInfo.lister || selectionInfo.lister.activetab.Selected_dirs.count == 0) return;
// Take the first selected folder
var selectedDir = selectionInfo.lister.activetab.Selected_dirs(0);
// Creating a team for Opus
var cmd = DOpus.Create.Command();
cmd.SetSourceTab(selectionInfo.lister.Activetab);
// Run the tree synchronization command on the selected path
cmd.RunCommand("Go PATH=\"" + selectedDir + "\" TREE=expand,focus");
}
var selectedDir = selectionInfo.lister.activetab.Selected_dirs(0);
// Creating a team for Opus
var cmd = DOpus.Create.Command();
cmd.SetSourceTab(selectionInfo.lister.Activetab);
// Run the tree synchronization command on the selected path
cmd.RunCommand("Go PATH=\"" + selectedDir + "\" TREE=expand,focus");
}
And
Option Explicit
Function OnInit(initData)
initData.name = "Tree Follow Selection"
initData.version = "1.1"
initData.desc = "Expands the folder tree when you single-click (select) a folder in the list"
initData.default_enable = True
End Function
' This event is triggered every time the file/folder allocation changes
Function OnSelectionChange(selInfo)
' If you clicked in an empty space or selected a file and not a folder, exit
If selInfo.tab.selected_dirs.count = 0 Then Exit Function
Dim cmd, selectedDir
' Take the very first selected folder from the list
Set selectedDir = selInfo.tab.selected_dirs(0)
' Creating an internal team Opus
Set cmd = DOpus.Create.Command
cmd.SetSourceTab(selInfo.tab)
' We send the command to the tree to expand to this folder and highlight it
cmd.RunCommand "Go PATH=""" & selectedDir & """ TREE=expand,focus"
End Function
Sorry, that language is not supported by Opus
More seriously, I strongly advise not to do that unless you're already quite familiar with Opus scripting.
AI will consistently invent methods that do not exist, use existing ones backwards, and so on ...
And even when you correct them about the proper way to do things, they come back with new inventions.
In other words, it can be of some help when you have a large algorithmic part, where it will do the heavy lifting for you, but for anything closely related to the inner workings of Opus, AI just don't have enough code base to be able to help.
This was just a joke. As you said you wrote this script in AI just like if it were a language (as you could have said "I wrote this script in JScript").
Yes: JScript and VBScript are the two options you get out of the box.
In the folder tree, you can navigate using the arrows:
up/down: will let you navigate the folders of the same level,
right/left: will let you go down/up in the directory levels