Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 1337  / 2 Years ago, sat, october 15, 2022, 12:10:45

If I use F3 in Nautilus, I right-click on the file and select "move to other pane". How do I move a file from one tab to the other in PCManFM?


More From » lubuntu

 Answers
4

To move a file between folders open in two adjacent tabs:



Press Ctrl, and without releasing it, press one after the other: X, Tab, V (then release Ctrl).




  • This is just Ctrl+X to cut, Ctrl+Tab to switch tabs and Ctrl+V to paste, thus accomplishing a move to the next tab.



Do the same using a single shortcut (but still two or three key presses)




  1. xdotool allows automation of keyboard and mouse clicks/movements; install it with sudo apt-get install xdotool


  2. Copy and paste the below to an sh file, say pcmanmove.sh in your home directory:




    #!/bin/bash

    xdotool key --clearmodifiers ctrl+x
    sleep 0.125
    xdotool key --clearmodifiers Ctrl+Tab
    sleep 0.125
    xdotool key --clearmodifiers ctrl+v


    Make it executable with chmod +x ~/pcmanmove.sh


  3. Open Settings...Keyboard, and go to the Shortcuts tab. Create a custom shortcut, naming it whatever you want, and setting the "Command" path to /home/username/pcmanmove.sh. Click Apply. The right-column will say "Disable", click on it and you'll see "New Accelerator": press your shortcut key combo. I chose Ctrl+Alt+X, for example.



    enter image description here


  4. Now, with two tabs open in PCmanFM, press the custom shortcut to accomplish the move in one-quarter of a second! ;)



[#38863] Sunday, October 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tusmuumu

Total Points: 195
Total Questions: 122
Total Answers: 104

Location: Oman
Member since Tue, Feb 7, 2023
1 Year ago
;