Skip to content

Tab completion when moving torrents #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Erebea opened this issue Jun 29, 2018 · 14 comments
Closed

Tab completion when moving torrents #85

Erebea opened this issue Jun 29, 2018 · 14 comments

Comments

@Erebea
Copy link

Erebea commented Jun 29, 2018

This is about the only thing keeping me from switching from tremc. I find tab-completion when changing output directories to be an essential feature of TUI torrent clients.

cheers

@rndusr
Copy link
Owner

rndusr commented Jun 29, 2018 via email

@Erebea
Copy link
Author

Erebea commented Jun 30, 2018

It probably doesn't. I don't know how tremc handles it as I don't run a remote transmission-daemon; it might just disable it. A possible way to do it would be making use of a network mount and translating that path to work with the filesystem of the remote server.

@rndusr
Copy link
Owner

rndusr commented Jun 30, 2018 via email

@rndusr
Copy link
Owner

rndusr commented Jul 5, 2018

@Erebea This is not a substitution for completion in the built-in CLI, but I
just had an idea.

If you move your torrents to a small-ish set of directories, you could add some
chained keybindings like this:

bind --context torrent 'm a' move archive
bind --context torrent 'm o v' move 'old/very old'
bind --context torrent 'm o n' move 'old/not so old'

That would allow you to focus one torrent or even select a few with space and
then hit m and then a to move them to the archive directory, which would
be faster than any completion system. But you'd also be limited to a fixed set
of directories.

@rndusr
Copy link
Owner

rndusr commented Mar 20, 2019

@Erebea Tab completion isn't finished overall, but it's been working well for me with the development version. Master branch is currently not a hot mess, so if you're still waiting, you may want to try the development version now.

@Erebea
Copy link
Author

Erebea commented Mar 22, 2019

Tried the development version with pip3 install --upgrade git+https://github.com/rndusr/stig.git#egg=stig but I'm getting this whenever I try a command.

Traceback (most recent call last):
File "/home/erebea/.local/bin/stig", line 11, in
sys.exit(run())
File "/usr/local/lib/python3.6/dist-packages/stig/init.py", line 24, in run
main.run()
File "/usr/local/lib/python3.6/dist-packages/stig/main.py", line 115, in run
if not tui.run(run_commands):
File "/usr/local/lib/python3.6/dist-packages/stig/tui/main.py", line 206, in run
urwidloop.run()
File "/usr/local/lib/python3.6/dist-packages/urwid/main_loop.py", line 286, in run
self._run()
File "/usr/local/lib/python3.6/dist-packages/urwid/main_loop.py", line 384, in _run
self.event_loop.run()
File "/usr/local/lib/python3.6/dist-packages/stig/tui/urwidpatches.py", line 175, in run
raise self._exc_info
File "/usr/lib/python3.6/asyncio/events.py", line 145, in _run
self._callback(*self._args)
File "/usr/local/lib/python3.6/dist-packages/stig/tui/cli.py", line 207, in callback
task.result()
File "/usr/local/lib/python3.6/dist-packages/stig/tui/completer.py", line 100, in update
cands.reduce(r'(?i)^%s' % (re.escape(common_prefix),))
File "/usr/local/lib/python3.6/dist-packages/stig/completion/init.py", line 170, in reduce
if not isinstance(regex, re.Pattern):
AttributeError: module 're' has no attribute 'Pattern'

@rndusr
Copy link
Owner

rndusr commented Mar 22, 2019 via email

@Erebea
Copy link
Author

Erebea commented Mar 22, 2019

Everything seems to be working fine!

@BachoSeven
Copy link
Contributor

What is the current state of this?

@Erebea
Copy link
Author

Erebea commented Apr 29, 2020

Been using it ever since, works on my machine.

@BachoSeven
Copy link
Contributor

Is it only on the development version?

@rndusr
Copy link
Owner

rndusr commented Apr 29, 2020 via email

@rndusr rndusr closed this as completed Apr 29, 2020
@BachoSeven
Copy link
Contributor

It does not work for me on the latest release, installed using pipx.

@rndusr
Copy link
Owner

rndusr commented Apr 29, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants