Menu

Open Terminal Here

Anonymous
2021-07-13
2022-08-26
  • Anonymous

    Anonymous - 2021-07-13

    Hi,

    The only feature I miss in SpaceFM is "Open Terminal here". I Only
    succeed to open a terminal using type="Application" ans selecting a
    .desktop file but I can't pass the current folder, or to be exact I do
    not know how to do it.

    I also tried with type=command but the best I achieved is opening a
    terminal displaying:
    "[ Finished ] Press Enter to close or s + Enter for a shell:"
    but the second option also does not open in the selected folder.

     
  • thierrybo

    thierrybo - 2021-07-27

    I succeeded but I am not sure if it is the right way:

    • Install xdotool
    • Add a new Command to the right click menu
    • Context : Show / matches any rule:

      File Is Dir equals true
      Filename equals ""

    • Command: Script (change the terminal command to your needs):
    x-terminal-emulator &
    sleep 0.7
    if [ "${fm_files[0]}" != "" ]; then
        xdotool type "cd '${fm_files[0]}'"
    else
        xdotool type "cd '$fm_pwd'"
    fi
    xdotool key KP_Enter
    
     

    Last edit: thierrybo 2021-08-12
  • Anonymous

    Anonymous - 2022-08-23

    Any further discussion on this topic?
    I too would like to be able to "Open Terminal here".

     
    • Anonymous

      Anonymous - 2022-08-23

      I have a file that is an export of how I do this .. You can right click on any file in spacefm and then right click on any command like rename .. you then get another menu that has New and from that Menu there is Import ... you would choose file and then select the tar.gz file needed to create this function.. I have attached this file but if it does not work I would just need a place to put this file so you can download it

       
      ❤️
      1
      • Anonymous

        Anonymous - 2022-08-23

        If you have any questions just let me know

         
        • Anonymous

          Anonymous - 2022-08-23

          Ahhh! Awesome, it works!
          Thank you!

           
          • Anonymous

            Anonymous - 2022-08-23
            Excellent... I have others I have created like open in root terminal here, Root Window Here, Open file in Puddletag, Open Directory in Puddletag.. Once you see any of these you can see how easy it is to create them for specific needs.. I can upload those others if anyone needs them
            
             
          • Anonymous

            Anonymous - 2022-08-26

            Excellent... I have others I have created like open in root terminal here, Root Window Here, Open file in Puddletag, Open Directory in Puddletag.. Once you see any of these you can see how easy it is to create them for specific needs.. I can upload those others if anyone needs them

             

Anonymous
Anonymous

Add attachments
Cancel