[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ranger-users] Copy full path name
From: |
Jostein Berntsen |
Subject: |
Re: [Ranger-users] Copy full path name |
Date: |
Mon, 16 Aug 2010 22:04:35 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On 16.08.10,21:23, Roman Z. wrote:
> On Mon, Aug 16, 2010 at 09:11:00PM +0200, Jostein Berntsen wrote:
> > On 16.08.10,21:05, Roman Z. wrote:
> > > On Mon, Aug 16, 2010 at 08:56:00PM +0200, Jostein Berntsen wrote:
> > > > On 16.08.10,20:44, Jostein Berntsen wrote:
> > > > > On 16.08.10,19:57, Roman Z. wrote:
> > > > > > On Mon, Aug 16, 2010 at 07:44:09PM +0200, Jostein Berntsen wrote:
> > > > > > > On 16.08.10,19:10, Jostein Berntsen wrote:
> > > > > > > > On 16.08.10,18:18, Roman Z. wrote:
> > > > >
> > > > > > Looks like you've run into a bug.
> > > > > >
> > > > > > Please run ranger with "ranger --debug", reproduce the error and
> > > > > > give
> > > > > > me the detailed error message, it would make it a lot easier for me
> > > > > > to
> > > > > > find the cause.
> > > > > >
> > > > > > Also, I believe you want 'echo %d/%f | clippy', not ls (?)
> > > > > >
> > > > >
> > > > > I reinstalled ranger from the git repository, and rechecked my
> > > > > commands
> > > > > in keys.py, and now everything works perfectly. Thanks.
> > > > >
> > > > >
> > > > > Jostein
> > > > >
> > > > >
> > > >
> > > > I see now that if I load ranger with directories in tabs the execute
> > > > command hangs. If I open tabs the usual way it works, but preloaded
> > > > directories seems to conflict with the execute function.
> > > >
> > > >
> > > > Jostein
> > > >
> > >
> > > So, can you give me the traceback?
> > >
> >
> > Here it is:
> >
> >
> > Traceback (most recent call last):
> > File "/home/jostein/dw/ranger/ranger/__main__.py", line 205, in main
> > fm.ui.initialize()
> > File "/home/jostein/dw/ranger/ranger/gui/ui.py", line 71, in initialize
> > curses.cbreak()
> > error: cbreak() returned ERR
> >
>
> Uh. How did you do that?
>
> Anyway, I got this in my ~/.ranger/keys.py:
>
> map('x', fm.execute_console('echo %d/%f | xclip -in', cmode.OPEN))
>
> and it works just fine. Independent of whether I run ranger with
> preloaded directories or not.
>
I tried this command, but now Ranger crashed when I run it. Here is my
most recent traceback:
./ranger.py --debug ~/Pictures ~/dw ~/Documents
Traceback (most recent call last):
File "/home/jostein/dw/ranger/ranger/__main__.py", line 214, in main
fm.loop()
File "/home/jostein/dw/ranger/ranger/core/fm.py", line 142, in loop
ui.handle_input()
File "/home/jostein/dw/ranger/ranger/gui/ui.py", line 187, in handle_input
self.handle_keys(*keys)
File "/home/jostein/dw/ranger/ranger/gui/ui.py", line 169, in handle_keys
self.handle_key(key)
File "/home/jostein/dw/ranger/ranger/gui/ui.py", line 161, in handle_key
self.fm.notify(error)
File "/home/jostein/dw/ranger/ranger/gui/ui.py", line 159, in handle_key
cmd.function(CommandArgs.from_widget(self.fm))
File "/home/jostein/dw/ranger/ranger/api/keys.py", line 43, in function
return fnc(*args, **kws)
File "/home/jostein/dw/ranger/ranger/core/actions.py", line 81, in
execute_console
self.ui.console.execute()
File "/home/jostein/dw/ranger/ranger/gui/widgets/console.py", line 442, in
execute
command = self._substitute_metachars(command)
File "/home/jostein/dw/ranger/ranger/gui/widgets/console.py", line 501, in
_substitute_metachars
macros[i + 'f'] = shell_quote(tab_dir.pointed_obj.path)
AttributeError: 'NoneType' object has no attribute 'path'
Ranger crashed. Please report this (including the traceback) at:
http://savannah.nongnu.org/bugs/?group=ranger&func=additem
- Re: [Ranger-users] Copy full path name, (continued)
- Re: [Ranger-users] Copy full path name, Jostein Berntsen, 2010/08/16
- Re: [Ranger-users] Copy full path name, Roman Z., 2010/08/16
- Re: [Ranger-users] Copy full path name, Jostein Berntsen, 2010/08/16
- Re: [Ranger-users] Copy full path name, Jostein Berntsen, 2010/08/16
- Re: [Ranger-users] Copy full path name, Roman Z., 2010/08/16
- Re: [Ranger-users] Copy full path name, Jostein Berntsen, 2010/08/16
- Re: [Ranger-users] Copy full path name, Jostein Berntsen, 2010/08/16
- Re: [Ranger-users] Copy full path name, Roman Z., 2010/08/16
- Re: [Ranger-users] Copy full path name, Jostein Berntsen, 2010/08/16
- Re: [Ranger-users] Copy full path name, Roman Z., 2010/08/16
- Re: [Ranger-users] Copy full path name,
Jostein Berntsen <=
- Re: [Ranger-users] Copy full path name, Roman Z., 2010/08/16
- Re: [Ranger-users] Copy full path name, Jostein Berntsen, 2010/08/16