pazz / alot

Terminal-based Mail User Agent
GNU General Public License v3.0
696 stars 164 forks source link

pipeto using many messages at once #1555

Closed atrent closed 3 years ago

atrent commented 3 years ago

I have tried to pipe many messages (i.e., an entire thread) at once into a "viewer" using the following binding:

            'ctrl D' = pipeto --background --all --format=decoded ~/bin/stdinGeany.sh

(where stdinGeany.sh is a script that opens the piped content in geany editor) But alot pipes only the "current" message into the pipe. I'm in thread mode.

What am I doing wrong? Thank you

pazz commented 3 years ago

This looks like a bug.

atrent commented 3 years ago

while 'print --all --add_tags' works as expected, it generates one single stream

atrent commented 3 years ago

SOLVED, it was my fault, I'm closing this "bug", the real problem was caused by my config, I did:

    'ctrl r' = pipeto --background ~/bin/stdinGeany.sh
    'ctrl R' = pipeto --background --all ~/bin/stdinGeany.sh

    'ctrl d' = pipeto --background --format=decoded ~/bin/stdinGeany.sh
    'ctrl D' = pipeto --background --all --format=decoded ~/bin/stdinGeany.sh

Believing in differentiation between lowercase and uppercase, but that's not the case, maybe you should warn in the doc. Thank you

pazz commented 3 years ago

Oh right: for upper case you'd need "shift d" or similar I believe..

Quoting atrent (2020-11-17 07:23:15)

SOLVED, it was my fault, I'm closing this "bug", the real problem was caused by my config, I did:

    'ctrl r' = pipeto --background ~/bin/stdinGeany.sh
    'ctrl R' = pipeto --background --all ~/bin/stdinGeany.sh

    'ctrl d' = pipeto --background --format=decoded ~/bin/stdinGeany.sh
    'ctrl D' = pipeto --background --all --format=decoded ~/bin/stdinGeany.sh

Believing in differentiation between lowercase and uppercase, but that's not the case, maybe you should warn in the doc. Thank you

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.*

atrent commented 3 years ago

1) 'ctrl shift d' does not work, as a workaround I chose a different key

2) '--background' does not work, the UI is blocked

pazz commented 3 years ago

Quoting atrent (2020-11-17 11:26:57)

  1. 'shift d' does not work, as a workaround I chose a different key

sorry, you are right: urwid distinguishes D from d: http://urwid.org/manual/userinput.html#keyboard-input

  1. '--background' dose not work, the UI is blocked

so this is a bug in alot then?

atrent commented 3 years ago
  1. '--background' does not work, the UI is blocked so this is a bug in alot then?

if you can reproduce it, yes

atrent commented 3 years ago
  1. 'ctrl shift d' does not work, as a workaround I chose a different key sorry, you are right: urwid distinguishes D from d: http://urwid.org/manual/userinput.html#keyboard-input

I'll try 'shift ctrl d' instead of 'ctrl shift d', thank you