Search code examples
client-servervifm

Change directory of inactive pane of a remote instance of Vifm


Is there a way to change the directory of inactive pane using --remote argument in an existing instance of Vifm?


Solution

  • This can be done via :winrun command or two argument form of :cd alone. Example:

    # terminal #1
    vifm --server-name test
    
    # terminal #2
    vifm --server-name test --remote +'winrun , cd /etc'
    vifm --server-name test --remote +'cd . /etc'
    

    Using :cd is simpler, but it will exit tree and custom views, so :winrun is preferable in general case, but :cd is more convenient for one off cases.