Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup on Arch Linux #10

Open
tkna91 opened this issue Jul 5, 2023 · 6 comments
Open

Setup on Arch Linux #10

tkna91 opened this issue Jul 5, 2023 · 6 comments

Comments

@tkna91
Copy link

tkna91 commented Jul 5, 2023

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
@joouha
Copy link
Owner

joouha commented Jul 6, 2023

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!

@tkna91
Copy link
Author

tkna91 commented Nov 17, 2023

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

@tkna91
Copy link
Author

tkna91 commented Nov 17, 2023

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

@tkna91 tkna91 changed the title Setup with git clone does not work Setup on Arch Linux Nov 17, 2023
@Qwerty-Space
Copy link

Nothing is added to ~/.local/bin when installing with pipx, though using pyenv works.

@tkna91
Copy link
Author

tkna91 commented May 23, 2024

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

@elig0n
Copy link

elig0n commented Jul 30, 2024

@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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants