Re: external file manager

2011-10-28 Thread Christian Brabandt
On Do, 27 Okt 2011, Jostein Berntsen wrote: > Thanks. I tried to source the vmb file now from the updated > repository, but the same result with no ranger. I took this offlist and the problem is now solved. regards, Christian

Re: external file manager

2011-10-27 Thread Jostein Berntsen
On 27.10.11,18:59, Christian Brabandt wrote: > Hi Jostein! > > On Do, 27 Okt 2011, Jostein Berntsen wrote: > > > I get the attach file question but entering a space or a directory > > does not bring up ranger. I have filebrowser setting in .vimrc and > > install the plugin by vimball. > > The vi

Re: external file manager

2011-10-27 Thread Christian Brabandt
Hi Jostein! On Do, 27 Okt 2011, Jostein Berntsen wrote: > I get the attach file question but entering a space or a directory > does not bring up ranger. I have filebrowser setting in .vimrc and > install the plugin by vimball. The vimball hasn't been updated yet. Hm, let me update it. Okay, plea

Re: external file manager

2011-10-27 Thread Jostein Berntsen
On 27.10.11,12:28, Christian Brabandt wrote: > On Thu, October 27, 2011 12:05 pm, Jostein Berntsen wrote: > > On 26.10.11,23:32, Christian Brabandt wrote: > >> Yes that is me. Try the version from github and be sure to have > >> :let g:checkattach_filebrowser='ranger' in your .vimrc. That should >

Re: external file manager

2011-10-27 Thread Christian Brabandt
On Thu, October 27, 2011 12:05 pm, Jostein Berntsen wrote: > On 26.10.11,23:32, Christian Brabandt wrote: >> Yes that is me. Try the version from github and be sure to have >> :let g:checkattach_filebrowser='ranger' in your .vimrc. That should >> be all you need. > > That is great, I downloaded the

Re: external file manager

2011-10-27 Thread Jostein Berntsen
On 26.10.11,23:32, Christian Brabandt wrote: > Hi Sebastian! > > On Mi, 26 Okt 2011, Sebastian Tramp wrote: > > > On Wed, Oct 26, 2011 at 09:52:55AM +0200, Christian Brabandt wrote: > > > Would there be interest, to implement an interface to range in the > > > previously mentioned Vim-Plugin? > >

Re: external file manager

2011-10-27 Thread Sebastian Tramp
On Wed, Oct 26, 2011 at 11:32:45PM +0200, Christian Brabandt wrote: > > > Would there be interest, to implement an interface to range in the > > > previously mentioned Vim-Plugin? > > > > +1 :) - I already use your CheckAttach extension as a submodule from > > your repo [1] (assuming you are chris

Re: external file manager

2011-10-26 Thread Christian Brabandt
Hi Sebastian! On Mi, 26 Okt 2011, Sebastian Tramp wrote: > On Wed, Oct 26, 2011 at 09:52:55AM +0200, Christian Brabandt wrote: > > Would there be interest, to implement an interface to range in the > > previously mentioned Vim-Plugin? > > +1 :) - I already use your CheckAttach extension as a sub

Re: external file manager

2011-10-26 Thread Jostein Berntsen
On 26.10.11,09:52, Christian Brabandt wrote: > On Wed, October 26, 2011 8:43 am, Volker Bouffier wrote: > >>call append(6, map(readfile('/tmp/chosenfiles'), '"Attach: > >> ".substitute(v:val,''\s'',''\\ '',"g")')) > > > > Sorry, this wasn't correct. But I think the following line should do it.

Re: external file manager

2011-10-26 Thread Sebastian Tramp
On Wed, Oct 26, 2011 at 09:52:55AM +0200, Christian Brabandt wrote: > Would there be interest, to implement an interface to range in the > previously mentioned Vim-Plugin? +1 :) - I already use your CheckAttach extension as a submodule from your repo [1] (assuming you are chrisbra :) - and this wo

Re: external file manager

2011-10-26 Thread Christian Brabandt
On Wed, October 26, 2011 8:43 am, Volker Bouffier wrote: >>call append(6, map(readfile('/tmp/chosenfiles'), '"Attach: >> ".substitute(v:val,''\s'',''\\ '',"g")')) > > Sorry, this wasn't correct. But I think the following line should do it. > call append(6, map(readfile('/tmp/chosenfiles

Re: external file manager

2011-10-25 Thread Volker Bouffier
>    call append(6, map(readfile('/tmp/chosenfiles'), '"Attach: >".substitute(v:val,''\s'',''\\ '',"g")')) Sorry, this wasn't correct. But I think the following line should do it.         call append(6, map(readfile('/tmp/chosenfiles'), '"Attach: ".substitute(v:val,''\(\s\)'',''\\\1'',"g")')) B

Re: external file manager

2011-10-25 Thread Volker Bouffier
> I expect it to break with tabs etc in the filename too.     call append(6, map(readfile('/tmp/chosenfiles'), '"Attach: ".substitute(v:val,''\s'',''\\ '',"g")')) This should handle even tabs. I also replaced the insert line with 6. Here is the whole thing: |  " mutt: insert attachment with r

Re: external file manager

2011-10-24 Thread Cameron Simpson
On 24Oct2011 17:04, Volker Bouffier wrote: | > You can even do it in one step ;) | > | > :call append('.', map(readfile('/tmp/foobar'), '"Attach: | > ".substitute(v:val," ",''\\ '',"g")')) | This seems to be perfect. So here is my final .vimrc script: I expect it to break with tabs etc in the fi

Re: external file manager

2011-10-24 Thread Volker Bouffier
> You can even do it in one step ;) > > :call append('.', map(readfile('/tmp/foobar'), '"Attach: > ".substitute(v:val," ",''\\ '',"g")')) This seems to be perfect. So here is my final .vimrc script: |  " mutt: insert attachment with ranger |  fun! RangerMuttAttach() |      if filereadable('/tmp/c

Re: external file manager

2011-10-24 Thread Christian Brabandt
On Mon, October 24, 2011 11:44 am, Volker Bouffier wrote: >>  Even better, avoid sed altogether: >> call append('.', map(readfile('/tmp/chosenfiles'), '"Attach: ".v:val')) > Sed is the better choice in this case. The above command does not work > with whitespaces. Of course it works with whitespac

Re: external file manager

2011-10-24 Thread Volker Bouffier
>  Even better, avoid sed altogether: > call append('.', map(readfile('/tmp/chosenfiles'), '"Attach: ".v:val')) Sed is the better choice in this case. The above command does not work with whitespaces. There must be a backslash in front of a whitespace character.

Re: external file manager

2011-10-23 Thread Jostein Berntsen
On 21.10.11,12:37, Volker Bouffier wrote: > > " mutt: insert attachment                                                    > >                                                                             > >                                 > > > Do you have a way to empty the registry as well fr

Re: external file manager

2011-10-21 Thread Christian Brabandt
Hi Volker! On Fr, 21 Okt 2011, Volker Bouffier wrote: > |  " mutt: insert attachment with ranger > |  fun! RangerMuttAttach() > |      if filereadable('/tmp/chosendir') > |          silent !ranger --choosefiles=/tmp/chosenfiles > --choosedir=/tmp/chosendir "$(cat /tmp/chosendir)" > |      else

Re: external file manager

2011-10-21 Thread Volker Bouffier
|  " mutt: insert attachment with ranger |  fun! RangerMuttAttach() |      if filereadable('/tmp/chosendir') |          silent !ranger --choosefiles=/tmp/chosenfiles --choosedir=/tmp/chosendir "$(cat /tmp/chosendir)" |      else |          silent !ranger --choosefiles=/tmp/chosenfiles --choosedi

Re: external file manager

2011-10-21 Thread Volker Bouffier
> " mutt: insert attachment                                                      >                                                                               >                             > fun! RangerMuttAttach()                                                        >                    

Re: external file manager

2011-10-21 Thread Jostein Berntsen
On 20.10.11,15:36, Volker Bouffier wrote: > > > > > - Ursprüngliche Message - > Von: du yang > An: mutt-users@mutt.org > Cc: > Gesendet: 15:22 Donnerstag, 20.Oktober 2011 > Betreff: Re: external file manager > > On Thursday 10/20/11 20:09:26 C

Re: external file manager

2011-10-21 Thread Volker Bouffier
- Ursprüngliche Message - Von: Volker Bouffier An: "mutt-users@mutt.org" Cc: Gesendet: 14:09 Donnerstag, 20.Oktober 2011 Betreff: Re: external file manager For completeness here is the vi script I'm using now:   fun! RangerMuttAttach()     silent !ranger --

Re: external file manager

2011-10-20 Thread Cameron Simpson
On 20Oct2011 21:22, du yang wrote: | On Thursday 10/20/11 20:09:26 CST, Volker Bouffier wrote: | > On 13Oct2011 22:08, stardiviner wrote: | > > I usually attach files to a message by putting "Attach:" header lines in | > > during the edit mode. Now, I have a vi macro bound to ^A to do this with |

Re: external file manager

2011-10-20 Thread Volker Bouffier
- Ursprüngliche Message - Von: Christian Brabandt An: "mutt-users@mutt.org" Cc: Gesendet: 17:13 Donnerstag, 20.Oktober 2011 Betreff: Re: external file manager On Thu, October 20, 2011 4:36 pm, Volker Bouffier wrote: > What exactly are you using ranger for? Ranger is a

Re: external file manager

2011-10-20 Thread Christian Brabandt
On Thu, October 20, 2011 4:36 pm, Volker Bouffier wrote: > I've inserted a small vim macro in my .vimrc, which does what I want: > " mutt: insert attachment > fun! RangerMuttAttach() > silent !ranger --choosefile=/tmp/chosenfile > if filereadable('/tmp/chosenfile') > exec 'rea

Re: external file manager

2011-10-20 Thread Volker Bouffier
- Ursprüngliche Message - Von: du yang An: mutt-users@mutt.org Cc: Gesendet: 15:22 Donnerstag, 20.Oktober 2011 Betreff: Re: external file manager On Thursday 10/20/11 20:09:26 CST, Volker Bouffier wrote: > There have had solutions for file attaching like so. > For emacs, pos

Re: external file manager

2011-10-20 Thread du yang
On Thursday 10/20/11 20:09:26 CST, Volker Bouffier wrote: > On 13Oct2011 22:08, stardiviner wrote: > > I usually attach files to a message by putting "Attach:" header lines in > > during the edit mode. Now, I have a vi macro bound to ^A to do this with > > file completion easily, which makes me ha

Re: external file manager

2011-10-20 Thread Volker Bouffier
- Ursprüngliche Message - Von: Cameron Simpson An: mutt-users@mutt.org Cc: Gesendet: 1:59 Donnerstag, 20.Oktober 2011 Betreff: Re: external file manager On 13Oct2011 22:08, stardiviner wrote: > I usually attach files to a message by putting "Attach:" header lines in

Re: external file manager

2011-10-19 Thread Cameron Simpson
On 13Oct2011 22:08, stardiviner wrote: | => On [2011-10-11 19:16:13 +0100]: | Volker Bouffier Said: | > is it possible to use an external file manager, for instance to select an | > attachment. I like ranger much more than the integrated file manager. | > | cool idea, I like rang

Re: external file manager

2011-10-13 Thread stardiviner
=> On [2011-10-11 19:16:13 +0100]: Volker Bouffier Said: > > > Dear all, > > is it possible to use an external file manager, for instance to select an > attachment. I like ranger much more than the integrated file manager. > cool idea, I like ranger too. hope someo

Re: external file manager

2011-10-12 Thread Volker Bouffier
Sorry for this kind of formatting. I use a web interface at work and don't know how to switch to plain text.

Re: external file manager

2011-10-12 Thread Volker Bouffier
: Sebastian Tramp <m...@sebastian.tramp.name> An: Volker Bouffier <volkerbouff...@yahoo.de>; "mutt-users@mutt.org" <mutt-users@mutt.org> Cc: Gesendet: 13:44 Mittwoch, 12.Oktober 2011 Betreff: Re: external file manager On Tue, Oct 11, 2011 at 07:16:13PM +0100, Volker Bouf

Re: external file manager

2011-10-12 Thread Sebastian Tramp
On Tue, Oct 11, 2011 at 07:16:13PM +0100, Volker Bouffier wrote: > is it possible to use an external file manager, for instance to select > an attachment. I like ranger much more than the integrated file > manager. This would be a really great feature and I really hope that i

external file manager

2011-10-11 Thread Volker Bouffier
Dear all, is it possible to use an external file manager, for instance to select an attachment. I like ranger much more than the integrated file manager. Best regards Volker