From: Arnout E. <no...@bz...> - 2015-04-29 21:44:39
|
Hello Daniel, Thanks for your interest! As for navigating the notion codebase, "grep -r "META..\"A" ." would show you that this key is generally bound to "mod_query.query_attachclient". "grep -r query_attachclient ." would reveal this is implemented in mod_query/mod_query.lua. Diving in there, you'll see the completor is created based on mod_query.complete_clientwin, which looks at the names of the elements in the collection of client windows (as iterated through by ioncore.clientwin_i) You could look into implementing support for 'rebased queries' there. An alternative approach might be to add support for _NET_MOVERESIZE_WINDOW and write a separate (not necessarily notion-specific) utility to query for a window and request it to be moved to the current frame. Kind regards, Arnout On Tue, Apr 28, 2015 at 8:12 PM, Daniel Radetsky <dra...@gm...> wrote: > I started using notion again (awesomewm is awesome, but not awesome > enough), and became interested again in impementing a feature I've wanted > in notion and other incremental searches for a long time, which I call > "rebasing queries." An incremental search query is "rebased" when the input > is cleared, but the set of incremental results is retained. The user may > now input more chars, searching among remaining results. > > Ideally would work something like this: I have shit tons of windows open, > I want to attach a the chrome window with gmail. I enter `M-a chro` and > completion window shows only browser windows. I now enter `M-a` again, > which rebases the attach-query (since one is in progress), and then `gmai` > and now only the gmail window is selected. > > I'd implement it myself, but I don't know the notion codebase or lua very > well. I might be able to manage it if a more experienced notion developer > could give me some pointers. For example, I don't understand how the query > set is populated and modified in the first place (I think it's done in the > C code, but not even sure about that). > > Peace Homies, > --Daniel > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Notion-devel mailing list > Not...@li... > https://lists.sourceforge.net/lists/listinfo/notion-devel > > |