Replies: 6 comments 19 replies
-
The problem is that select requires a path of file/dir to select. So if you want to select all files in a new dir after copy, you would need to pass valid paths of all files. Something like:
|
Beta Was this translation helpful? Give feedback.
-
Yes, but I want use the built-in copy and move, because the progress bar. advcp, advmv, rsync not alternative, doesnt work fine with progress bar. |
Beta Was this translation helpful? Give feedback.
-
Makes sense. How about modifying that code a little to suit your requirements. Like this:
|
Beta Was this translation helpful? Give feedback.
-
The problem with this solution is that, while it works well, the selection flashes every time you select it, and it slows things down a bit. However, writing the selection to a file is fast enough and does not affect the UI. |
Beta Was this translation helpful? Give feedback.
-
DusanLesan and joelim-work thank u for your hard work and best wishis for christmas event! :) |
Beta Was this translation helpful? Give feedback.
-
Meanwhile, I realized that it is even more complicated. I still had to solve it so that the invert command also works with this method, pay attention to the space so that if you delete the selection, you also delete the link from selected_files, and even there the problem is the push :glob-select*. |
Beta Was this translation helpful? Give feedback.
-
I want to implement the copy and move command in reverse. In other words, we do not select with space what we want to perform an operation with, then decide with a button whether to copy (y) or cut (d), and then paste with a (p) button, but we select with space what we want to perform an operation with, then copy and paste with a button (p), and cut and paste with a button (P) (like vifm does). I think this would be a simpler and faster solution. I ran into a problem, because it prints an error on the select command because an argument is missing. I wrote the following code:
I get error message: "select: requires an argument"
What is the problem? The goal would be for the code to work even if only one lf window is open, and for it to work even if I copy it from one lf window to another lf window.
Beta Was this translation helpful? Give feedback.
All reactions