Giter Club home page Giter Club logo

Comments (11)

thriveth avatar thriveth commented on May 11, 2024 5

@binaryplease That works for me! Specifically, I have set:

set query_command = "echo && notmuch address %s | fzf --height=10 --query=%s"

...But it mangles Neomutt's window layout once it's finished - is there a way to force Neomutt to run <redraw-window> once fzf has exited?

from neomutt.

pinpox avatar pinpox commented on May 11, 2024 2

to get something close what i'm trying to explain here please try the following.

set query_command = "notmuch-addrlookup --mutt %s |fzf"

you will need: notmuch-addrlookup and fzf of course.

Try:

 set query_command = "echo && notmuch-addrlookup --mutt %s |fzf"

mutt gets rid of the first line

from neomutt.

flatcap avatar flatcap commented on May 11, 2024

@257
That sounds useful, but I don't understand what you want from NeoMutt.
If query_command works, then there's nothing to do.

For now, NeoMutt is just going to be sets of patches for Mutt. I'm not going to make binary releases and I'm not going to bundle other software (however good it is).

from neomutt.

257 avatar 257 commented on May 11, 2024

query_command in this case doesn't quite work actually. i get a list hits but there is not way to feed that into mutt... fzf also is written in go but i would like to implement this in C and ncurses; not sure if such a thing exist in ncurses actually. any pointers?

from neomutt.

257 avatar 257 commented on May 11, 2024

@flatcap: on the second read of your post i think i didn't explain myself properly. using fzf is just for illustration. i didn't mean to ask to have something external bundled and released.

from neomutt.

flatcap avatar flatcap commented on May 11, 2024

This issue has been closed -- Sorry, but there isn't enough interest in it at the moment.

The idea's now listed on the Blue Sky Ideas page.

If, in the future, someone wants to add this feature we will re-open this issue.

from neomutt.

pinpox avatar pinpox commented on May 11, 2024

@binaryplease That works for me! Specifically, I have set:

set query_command = "echo && notmuch address %s | fzf --height=10 --query=%s"

...But it mangles Neomutt's window layout once it's finished - is there a way to force Neomutt to run <redraw-window> once fzf has exited?

Did you ever find a solution?

from neomutt.

benmaddison avatar benmaddison commented on May 11, 2024

@thriveth, @pinpox I was also trying to get the same thing to work. As you have discovered, there is no <refresh> or equivalent available in the "Editor" mode, so you can't get the screen to redraw (even with a separate binding) until you're back in a different mode.
I have worked around this by opening fzf in a new terminal by way of a wrapper, and getting the results back from it via a named pipe.
See https://github.com/benmaddison/fzf-complete-query for details if you're still looking for a solution...

from neomutt.

thriveth avatar thriveth commented on May 11, 2024

Thanks @benmaddison!
I have since moved on to use My4e as my mail client so this is not relevant for me anymore, but it looks like a good solution!

from neomutt.

pinpox avatar pinpox commented on May 11, 2024

My4e

Can't find that on google, do you have a link?

from neomutt.

thriveth avatar thriveth commented on May 11, 2024

@pinpox Ooops, my bad, typo. Mu4e. A mail-utils client running in Emacs.

https://www.djcbsoftware.nl/code/mu/mu4e.html

from neomutt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.