ranger_tmux
ranger_tmux copied to clipboard
Setup on Arch Linux
I set up the following and it failed.
$ pacman -Q ranger
ranger 1.9.3-9
$
$ cd ~/.config/ranger/plugins
$
$ git clone --depth 1 https://github.com/joouha/ranger_tmux
Cloning into 'ranger_tmux'...
remote: Enumerating objects: 24, done.
remote: Counting objects: 100% (24/24), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 24 (delta 1), reused 13 (delta 0), pack-reused 0
Receiving objects: 100% (24/24), 24.84 KiB | 4.14 MiB/s, done.
Resolving deltas: 100% (1/1), done.
$
$ ls -la ranger_tmux
total 68
drwxr-xr-x 1 a a 206 Jul 5 19:32 .
drwxr-xr-x 1 a a 230 Jul 5 19:32 ..
-rw-r--r-- 1 a a 320 Jul 5 19:32 .flake8
drwxr-xr-x 1 a a 152 Jul 5 19:32 .git
-rw-r--r-- 1 a a 4070 Jul 5 19:32 .gitignore
-rw-r--r-- 1 a a 789 Jul 5 19:32 .pre-commit-config.yaml
-rw-r--r-- 1 a a 1079 Jul 5 19:32 LICENSE
-rw-r--r-- 1 a a 4931 Jul 5 19:32 README.md
-rw-r--r-- 1 a a 38231 Jul 5 19:32 poetry.lock
-rw-r--r-- 1 a a 885 Jul 5 19:32 pyproject.toml
drwxr-xr-x 1 a a 246 Jul 5 19:32 ranger_tmux
drwxr-xr-x 1 a a 20 Jul 5 19:32 scripts
$
$ tail -n 7 ../rc.conf
# ranger_tmux https://github.com/joouha/ranger_tmux
set tmux_cwd_sync true
set tmux_cwd_track true
set tmux_set_title true
set tmux_open_in_window true
set tmux_dropdown_percent 60
$ ranger
The option named `tmux_cwd_sync' does not exist
The option named `tmux_cwd_track' does not exist
The option named `tmux_set_title' does not exist
The option named `tmux_open_in_window' does not exist
The option named `tmux_dropdown_percent' does not exist
$
I may be making some basic mistake, sorry. What should I do to get it to work?
enviroment:
- OS: Arch Linux x86_64
- Kernel: 6.3.8-arch1-1
- WM: sway
Hi,
Installing the plugin using this method is not currently supported - you need to install the plugin using pip, then link (or copy) the plugin.py
script to your ranger plugin folder.
The installation instructions in the readme explain how to do this: https://github.com/joouha/ranger_tmux/tree/master#install
I hope that helps!
Sorry for the late reply. Perhaps the key is how to manage pip packages in arch linux. I guess I need to understand this part, but it's too difficult for me and I don't quite understand it yet. https://wiki.archlinux.org/title/Python#Package_management
I think I probably could have. Maybe now I can get it to work in the Arch Linux environment. Thanks kindly. You can close it as you like.
$ pacman -Q ranger ranger-git
error: package 'ranger' was not found
error: package 'ranger-git' was not found
$
$ pipx install ranger-tmux --include-deps
$ python -m ranger_tmux --tmux install
$ tmux new-session ranger
Nothing is added to ~/.local/bin
when installing with pipx, though using pyenv works.
Yes, it seems relatively reliable to do it this way.
$ pacman -Q python-pipx python-pip ranger ranger-git
python-pipx 1.5.0-2
python-pip 24.0-2
error: package 'ranger' was not found
error: package 'ranger-git' was not found
$ pipx install ranger-tmux --include-deps
$ $HOME/.local/pipx/venvs/ranger-tmux/bin/python -m ranger_tmux --tmux install
$ tmux new-session ranger
@joouha could you please update README to reflect that simply dropping a clone of the repository in the plugins directory would not just simply do ?