Giter Site home page Giter Site logo

Comments (9)

flatcap avatar flatcap commented on June 30, 2024

@257 Hmm... I'm sorry, I don't see a problem.
Plus, I don't think I've changed any code that might have affected the Query function.

I've just tested mutt-1.5.24, mutt-tip (latest dev) and neomutt-20160320.
I created a small address file 'animals.txt', then

set query_command="grep '%s' ~/animals.txt"

Pressing 'm' (start mail), then 'hor' lists some animals containing 'hor'.
As expected.

Back in the index, pressing 'Q' (start query), 'hor' lists some animals containing 'hor'.
As expected.

What else can you tell me about your problem?

from neomutt.

257 avatar 257 commented on June 30, 2024

hmm, Query: interface is used for both 'query external program for addr'
and vfolder-from-query. vfolder-from-query is what i was referring to.
'Q' (query external...) works fine here.

from neomutt.

karelzak avatar karelzak commented on June 30, 2024

I can confirm it does not work, need more investigation.

from neomutt.

karelzak avatar karelzak commented on June 30, 2024
 static int main_change_folder(MUTTMENU *menu, int op, char *buf, size_t bufsz,
                          int *oldcount, int *index_hint)
 {
   mutt_expand_path (buf, bufsz);
-  set_curbuffy(buf);
+#ifdef USE_SIDEBAR
+  if (sb_set_open_buffy (buf) == NULL)
+    return -1;
+#endif

The code assumes that sidebar has clue about all folders, but this is not true because notmuch folders may be generated on-the-fly. In this case sidebar should be out of game...

from neomutt.

257 avatar 257 commented on June 30, 2024

@karelzak what do you think of changing the prompt to qaddr (or whatever) so user can see it's querying for addr or perfoming vfolder-from-query?

from neomutt.

karelzak avatar karelzak commented on June 30, 2024

All you need is:

diff --git a/curs_main.c b/curs_main.c
index 6fcdcd6..c2ff15c 100644
--- a/curs_main.c
+++ b/curs_main.c
@@ -598,8 +598,7 @@ static int main_change_folder(MUTTMENU *menu, int op, char *buf, size_t bufsz,
 {
   mutt_expand_path (buf, bufsz);
 #ifdef USE_SIDEBAR
-  if (sb_set_open_buffy (buf) == NULL)
-    return -1;
+  sb_set_open_buffy (buf);
 #endif
   if (mx_get_magic (buf) <= 0)
   {

from neomutt.

karelzak avatar karelzak commented on June 30, 2024

@flatcap see karelzak/mutt-kz@8c824f5

.. not sure how to force github to accept pull requests from another repository if the repository is not directly based on fork. I use "git remote" for neo stuff and it works as expected, unfortunately github is not smart enough for this work flow :-(

from neomutt.

flatcap avatar flatcap commented on June 30, 2024

@karelzak Thanks.
I've pushed the change up to NeoMutt.

@257 Please can you try the new version:
git or source zip

Thanks, Rich.

from neomutt.

257 avatar 257 commented on June 30, 2024

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.