You are not logged in.

#2051 2016-10-24 11:13:29

ryzion
Member
Registered: 2012-03-20
Posts: 95

Re: Ranger, a textbased filemanager

Does anyone know how to open a new konsole (kde) tab with the current directory? With i3 and xterm I've used "map T console terminal", which worked fine. Can't get it to work with konsole

Offline

#2052 2016-11-02 10:01:16

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

Re: Ranger, a textbased filemanager

using ranger with tmux question.
I am in ranger within tmux, how do I set a keybinding so that I can from within ranger open a new tmux pane and be in the same dir I was in within ranger?


You can like linux without becoming a fanatic!

Offline

#2053 2016-11-02 10:10:28

ryzion
Member
Registered: 2012-03-20
Posts: 95

Re: Ranger, a textbased filemanager

map <key> console terminal

Set TERMCMD accordingly (tmux)

Offline

#2054 2016-11-02 10:10:54

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: Ranger, a textbased filemanager

Also a tmux user, and a very longtime ranger user. I just came across tmux-resurrect and vim-obsession, and find them awesome. However vim sessions opened from ranger aren't reloaded (tbf that does sound really complicated) nor are ranger tabs. Does anyone have hacks to improve this?

@chickenPie4tea you could just define a function for ranger which runs it with --choosedir and then does a 'cd' when you quit ranger. bash already has this (called ranger-cd).


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#2055 2016-11-02 15:35:10

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

Re: Ranger, a textbased filemanager

ryzion wrote:

map <key> console terminal

Set TERMCMD accordingly (tmux)

That opened a new terminal, not quite what I wanted but a bit of trail and error and I got there.

map ew eval fm.run("tmux split-window -h ")


You can like linux without becoming a fanatic!

Offline

#2056 2016-12-17 10:51:53

ryzion
Member
Registered: 2012-03-20
Posts: 95

Re: Ranger, a textbased filemanager

I'm wondering if it's possible to show my terminal without exiting ranger. Like C-o in mc

Offline

#2057 2016-12-17 11:54:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Ranger, a textbased filemanager

You mean like pressing 'S' (with the default configuration)?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#2058 2016-12-17 11:58:28

ryzion
Member
Registered: 2012-03-20
Posts: 95

Re: Ranger, a textbased filemanager

Not really, S opens a shell. C-o in mc toggles between shell and mc which is very convenient.

Offline

#2059 2016-12-17 13:57:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Ranger, a textbased filemanager

I'm still not sure what the difference is.  S opens a shell, but ranger is still running, to get back to ranger, just exit the shell (Ctrl-D).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#2060 2016-12-17 14:05:44

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,437

Re: Ranger, a textbased filemanager

practically both are same, in mc, it actually opens subshell, from which one can get back with the same <C-O>, in ranger it opens true shell where one exits with "exit" or <C-D> to get back to the ranger

EDIT: after few trials and errors finally I am now comfortable with ranger, and ready to move away from mc. I have found ranger to be a great software which is lightweight, fast and fully functional.

Last edited by Docbroke (2016-12-17 14:10:26)

Offline

#2061 2016-12-17 14:10:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Ranger, a textbased filemanager

A subshell is a true shell as surely as I'm a true Scotsman.

Is there an option or feature there that is missing that is desired?  Or is it just a difference of semantics?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#2062 2016-12-17 14:17:35

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,437

Re: Ranger, a textbased filemanager

Trilby wrote:

A subshell is a true shell as surely as I'm a true Scotsman.

subshell is part of mc, so it accepts <C-o>, and one can use it to toggle, otherwise no difference.

Offline

#2063 2016-12-17 14:25:53

ryzion
Member
Registered: 2012-03-20
Posts: 95

Re: Ranger, a textbased filemanager

I was going for the toggle part, I guess remapping S to C-d works for me

Last edited by ryzion (2016-12-17 14:26:06)

Offline

#2064 2016-12-17 14:31:20

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,437

Re: Ranger, a textbased filemanager

sorry for back to back post

Regarding something I miss from mc, is archieve management. MC can open archieves just like any other folder and allow adding/removing/deleting files to an fro using normal cut/copy/paste commands. In ranger one needs to extract the archieve to some other folder and do editing and repacking it. (or I still need to find out proper commands here)

Offline

#2065 2016-12-17 18:47:57

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Ranger, a textbased filemanager

Trilby wrote:

A subshell is a true shell as surely as I'm a true Scotsman.

Is there an option or feature there that is missing that is desired?  Or is it just a difference of semantics?

mc's subshell maintains backgrounded jobs, scrollback buffer etc. I don't know if it's possible with ranger.

Offline

#2066 2016-12-24 12:47:59

axs
Member
Registered: 2009-01-23
Posts: 71
Website

Re: Ranger, a textbased filemanager

Trilby wrote:

I'm still not sure what the difference is.

MC has a kind of built-in two-window tmux, with C-o switching between window #1 (file manager) and window #2 (subshell).
It's a convenient feature for the same reason tmux is, and it keeps the shell cwd synced with the file manager, which tmux generally can't.

The way it's implemented in mc, the whole thing sounds really wrong.
But it is convenient, and I have no idea how to do it right.

Maybe detecting enclosing tmux and using it for window switching is the right approach.
Maybe messing with ptys in the file manager is indeed the only way.

Offline

#2067 2016-12-24 17:12:22

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: Ranger, a textbased filemanager

Happy Holidays!

The new ranger version 1.8 is out now, will take a while till its in the AL package repositories though.

* scope.sh is now needed for the now fully scriptable image previews
* Overhaul of version control system integration, now with threads
* Fixed ranger not finding the location of w3mimgdisplay in most cases
* Fixed many minor bugs
* Added midnight-commander like multipane view, toggleable with `~` key.  It displays the current directory of all the open tabs next to each other.
* Added autodetect for 256 color support in scope.sh source code preview
* Added macro `%confdir` that expands to `~/.config/ranger` by default
* Added possibility to toggle/cycle through options with `set <option_name>!`
* Added `Mm`/`Ms` key to enable the linemode showing modification time
* Added `yt`/`dt` keys to toggle whether file is in copy/cut buffer
* Added `line_numbers` setting showing absolute/relative line numbers
* Added `Alt-Left` and `Alt-Right` key bindings to move by words in console
* Added previews for libreoffice files with `odt2txt`
* Added `preview_images_method=urxvt` option for previewing images by changing the urxvt background (requires urxvt compiled with pixbuf support)
* Added `clear_filters_on_dir_change` option
* Added Travis-CI integration
* Changed `zi` key to toggle `preview_images` option
* Improved PEP8 compliance
* Improved documentation
* Improved UI by separating file path in title bar with a space from the username/hostname for quick copy&pasting by shift+double-clicking on it.

"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#2068 2016-12-25 20:14:38

sekret
Member
Registered: 2013-07-22
Posts: 289

Re: Ranger, a textbased filemanager

Amazing christmas gift, thanks a lot hut!!!

Offline

#2069 2016-12-25 22:04:32

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Ranger, a textbased filemanager

My problem with ranger is this:

# pacman -S ranger
resolving dependencies...
looking for conflicting packages...

Packages (2) python-3.5.2-3  ranger-1.7.2-1

Total Download Size:     0.28 MiB
Total Installed Size:  104.33 MiB

:: Proceed with installation? [Y/n] n

Has anyone tried to rebuild Python with the minimum feature set to allow ranger/rifle to run?

Last edited by adamlau (2016-12-26 06:57:17)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#2070 2016-12-25 22:10:46

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,418
Website

Re: Ranger, a textbased filemanager

Not sure how this is relevant unless you're on some embedded device... if you are, hut wrote some ranger clone in sh.

https://github.com/hut/lscd

Last edited by Alad (2016-12-25 22:11:15)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#2071 2016-12-26 16:40:32

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Ranger, a textbased filemanager

Relevant. Thanks for the pointer.


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#2072 2017-01-05 01:53:54

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: Ranger, a textbased filemanager

Anyone having problems with ranger with the latest python update in [testing]? https://github.com/ranger/ranger/issues/752


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#2073 2017-01-05 04:26:21

Chocopuff
Member
Registered: 2016-10-02
Posts: 26

Re: Ranger, a textbased filemanager

Have a question about the size counter in the bottom right corner. I don't know what to call it. When in a directory, it shows the size of all the items in the directory, but not the sud directories. Is there a way to get it to sum the sub-directories as well? For example under directory, direc1 has size 5GB, direc2 has 10GB and there is a picture of size 2.8MB. In the corner, it only shows 2.8MB sum.

I don't know what this is called.

Offline

#2074 2017-01-07 23:41:28

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: Ranger, a textbased filemanager

ngoonee wrote:

Anyone having problems with ranger with the latest python update in [testing]? https://github.com/ranger/ranger/issues/752

Fixed in the new ranger version, 1.8.1, which was pushed on github just now. Thanks to nfnty for fixing the bug.


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#2075 2017-01-09 17:53:00

monodromy
Member
Registered: 2014-02-08
Posts: 62

Re: Ranger, a textbased filemanager

With the new version, image preview with w3m no longer works for me; instead, I get the img2txt preview. I use urxvt. I tried it with the default rc.conf, with the only change being

set preview_images true

I also have

export RANGER_LOAD_DEFAULT_RC=FALSE

in my .bashrc. With the previous version, previews worked fine.

Edit:

Never mind, updated scope.sh and all is good. I like the update!

Last edited by monodromy (2017-01-11 19:29:10)

Offline

Board footer

Powered by FluxBB