You are not logged in.
Try the "silent" flag, like:
c.flags += "s"
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
YES!! Great! Thanks a lot dude
Offline
Do you use ranger-stable or not? Any objections with making 1.3.1 the new stable version?
(1.3.1 is the one thats currently on ranger-git)
Go for it!
ᶘ ᵒᴥᵒᶅ
Offline
been using 1.3.1 for quite a long time now & yeah.. it's stable ( no problems for me ).
"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette
Offline
Heys guys. Please recommend ranger to community repo by this link:
https://bbs.archlinux.org/viewtopic.php?id=109897
Offline
Hut, thank you for the updated bulkrename script!
I also use 1.3.1 & it's very good
Offline
Alright, I'll go clean up 1.3.1 and make it the new stable version.
EDIT: And here you go:
2010-12-22: Version 1.4.0
* Added option to use any external scripts for previews (type 19?)
* Added key: zv to toggle the use of the external script
* Added indicator for the used filter (type "zf")
* Added option padding_right to remove whitespace if theres no preview
* Added command :search_inc for incremental search
* Added commands :save_copy_buffer and :load_copy_buffer to share the copied files between ranger instances
* Added mimeopen as a fallback if no useful application can be found
* Added natural sort, sorts 1foo before 10foo. (type "on")
* Added keys: yp, yd and yb to copy path, dirname or basename to seleciton
* Let open_with use the selection, not just one file
* Run files with right mouse click
* Implemented copying via coreutils rather than internal python code
* Improved handling of unicode
* Some restructuration of the source code
The AUR packages "ranger-git" and "ranger" are now the same (1.4.0).
Choose your package: "ranger-git" will get config-breaking updates but also new features while "ranger" will only get bugfixes.
Last edited by hut (2010-12-22 04:19:00)
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Very nice, hut! By the way, is there a way to get a list of applications to open a file with?
Offline
Very nice, hut! By the way, is there a way to get a list of applications to open a file with?
Not directly.
But you can define multiple applications for one file type, see "24<F1>"
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Try the "silent" flag, like:
c.flags += "s"
It doesn't work anymore... I don't understand why, hope you can help me. Right now all I get with c.flags += 's' is an empty shell, which goes back to ranger as soon as the program of the opened file is closed. Killing the terminal ranger runs in kills the program as well. I don't get it!
Here's the top of my apps.py to show you how I do that.
from ranger.api.apps import *
from ranger.ext.get_executables import get_executables
class CustomApplications(Applications):
def app_default(self, c):
"""How to determine the default application?"""
f = c.file
if f.basename.lower() == 'makefile':
return self.either(c, 'make')
if f.extension is not None:
if f.extension in ('pdf'):
c.flags += 's'
return tup('nohup', 'mupdf', *c)
...
Is there anything wrong there? I tried stable versions (1.2.2 and 1.2.3) but it's the same problem there, so I'm sure I did something wrong, but I can't find it.
Any idea is very appreciated!
Offline
I think you forgot the detach flag. Use c.flags = "sd"
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Ok, damn, right Somehow I thought detach is included in silence, but of course that's nonsense. Thanks again hut, amazingly fast answer, just like always
Offline
@hut: Will ranger support something similar to vfs as in lfm? That feature is really great.
Offline
@hut: Will ranger support something similar to vfs as in lfm? That feature is really great.
see
zeltak wrote:Hi hut
i dunno if its to late but id vote to move ranger-git to ranger-old, merge the new code into ranger-git (master)
Btw is archive/VFS support coming in the near future (pretty please with sugar on top :))
i using apack, peazip etc but its just not well integrated
thx alot again
Zeltak
Thats a lot of work... And my deep-hack-mode doesn't work these days
I'm just too distracted with university atm
But it's good to know what kind of features people want, so thanks^^
Last edited by hut (2010-12-23 13:07:24)
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
wow. very fast reply. anyway I like ranger very much.Thanks
Offline
Not directly.
But you can define multiple applications for one file type, see "24<F1>"
Maybe this would be a cool feature to implement. Using numbers to identify applications can become hard.
Today I ran into a problem. I had to copy files to a location that was owned by root. Ranger was started as a regular user. What is the quickest way to use root rights? If this involves shutting ranger down, it may also be very handy to make a sudo switch, so that spp for example means pasting with root rights.
Offline
ranger is in now in community. Thanks to hut and TUs.
Offline
Hi Hut !
Thanks for your commit that attempted to fix some utf issues. With the .srt files I sent you and preview mode on, I get the following error :
"Ranger version: 1.4.0, executed with python 3.1.3
Locale: fr_FR.UTF8
Traceback (most recent call last):
File "/usr/lib/python3.1/site-packages/ranger/core/main.py", line 85, in main
fm.loop()
File "/usr/lib/python3.1/site-packages/ranger/core/fm.py", line 191, in loop
loader.work()
File "/usr/lib/python3.1/site-packages/ranger/core/loader.py", line 234, in work
self.fm.notify(err)
File "/usr/lib/python3.1/site-packages/ranger/core/loader.py", line 229, in work
next(item.load_generator)
File "/usr/lib/python3.1/site-packages/ranger/core/loader.py", line 114, in generate
self.signal_emit('after', process=process, loader=self)
File "/usr/lib/python3.1/site-packages/ranger/ext/signals.py", line 110, in signal_emit
fnc(signal)
File "/usr/lib/python3.1/site-packages/ranger/core/actions.py", line 619, in on_after
data[(-1, -1)] = open(path, 'r').read(1024 * 32)
File "/usr/lib/python3.1/codecs.py", line 300, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 119: invalid continuation byte"
Offline
Don't know whether this is intended:
In the status bar I see the current position of the selected file in the list. Like the third of seven files is "3/7". But if i navigate to a file with <number>gg, then the counting starts with zero. So "3gg" brings me to file "4/7" and not to "3/7". A bit irritating, I think.
arch64 | awesome | screen | ranger | vim | cmus | weechat | bitlbee
Offline
Not directly.
But you can define multiple applications for one file type, see "24<F1>"Maybe this would be a cool feature to implement. Using numbers to identify applications can become hard.
I'll figure out something
Today I ran into a problem. I had to copy files to a location that was owned by root. Ranger was started as a regular user. What is the quickest way to use root rights? If this involves shutting ranger down, it may also be very handy to make a sudo switch, so that spp for example means pasting with root rights.
I usually do
!sudo ranger
or
!sudo cp %c .
A sudo switch for the pasting function would probably be nice though.
Hi Hut !
Thanks for your commit that attempted to fix some utf issues. With the .srt files I sent you and preview mode on, I get the following error :
[...]
I don't quite know what to do. I can't even reproduce the crash. Let me take a closer look when I have more time.
Don't know whether this is intended:
In the status bar I see the current position of the selected file in the list. Like the third of seven files is "3/7". But if i navigate to a file with <number>gg, then the counting starts with zero. So "3gg" brings me to file "4/7" and not to "3/7". A bit irritating, I think.
You're the second person to tell me that (or you just told me twice), so maybe its time to actually fix that.
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Hi Hut !
Thanks for your commit that attempted to fix some utf issues. With the .srt files I sent you and preview mode on, I get the following error :
...
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 119: invalid continuation byte"
I have the same problem, but it's not a big deal for me. Just open it and save it with utf-8 coding.
Ask, and it shall be given you.
Seek, and ye shall find.
Knock, and it shall be opened unto you.
Offline
Hi Hut,
If I do the same than igndenok then it's also working for me. It seems that the problem is that ranger thinks it's utf-8 encoding but in my case it was encoded with iso-8859-1. I would say that the issue is related to the recognition of the encoding format.
Offline
Hey,
I posted here some time ago a "rough" modification of ranger to make it able to tag files with use of user_xattr. I would like to werwite, to be less "rough" and experimental. Back then there was no "official" plugin interface. Has anything changed in that matter?
Also it is possible to make the ranger's layout similar to that of midnight-commander? - two separate columns
Groundnuty
Offline
Hey,
I posted here some time ago a "rough" modification of ranger to make it able to tag files with use of user_xattr. I would like to werwite, to be less "rough" and experimental. Back then there was no "official" plugin interface. Has anything changed in that matter?Also it is possible to make the ranger's layout similar to that of midnight-commander? - two separate columns
Groundnuty
There's an experimental plugin interface on the devel branch but it needs better integration so you can modify many parts of ranger without breaking the plugin on ranger updates. Let's see when this interface is ready for deployment, I can't guarantee anything since I don't have much time atm.
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Today I ran into a problem. I had to copy files to a location that was owned by root. Ranger was started as a regular user. What is the quickest way to use root rights? If this involves shutting ranger down, it may also be very handy to make a sudo switch, so that spp for example means pasting with root rights.
i would also really like that option alot, having the option to run file operation commands (cp,mkdir.delete,move etc..) in root mode like sudo cp XXX
also groundnuty if you could write a plugin to make ranger use two columns you would make not my day but my year..it would be incredible i dont know any programming but am willing to help in any other areas needed (testing, documentation etc..)
thx
zeltak
Last edited by zeltak (2010-12-30 19:47:47)
Offline