ranger-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ranger-users] Writing asynchronous plugins


From: Matthias Vogelgesang
Subject: [Ranger-users] Writing asynchronous plugins
Date: Sun, 27 Apr 2014 21:49:24 +0200

Hi,

I wrote a tiny plugin to interface ranger with git-annex [1].
Unfortunately, the docs are lacking a bit, so I had to guess how to
achieve certain things. I just want to make sure I used the canonical
way of doing things, so here are some questions:

- How do I implement asynchronous calls to external programs?
Currently, I run a runner with the wait flag set to False. In another
thread I wait for the process to finish and update the affected
directory.

- Is it okay to save fm.thisdir and use it later in another thread?

- How can I notify the user that a certain action is currently going
on and taking a while?

Thanks for your patience,
Matthias

[1] https://github.com/matze/ranger-annex

-- 
Matthias Vogelgesang | bloerg.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]