Re: More ion-configuration
"Jurjen Middendorp" <[email protected]>
| Newsgroups | gmane.comp.window-managers.ion.general |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jan 26, 2007 at 07:11:07PM +0000, Tuomo Valkonen wrote: >On 2007-01-26, Jurjen Middendorp <[email protected]> wrote: >> No i ment WEdln.complete() (which is bind to tab). What is the old >> tab-completion model? > >The usual tab-completion model: Hit tab. If there's only one completion, >it is substituted into the query line. If there are multiple, they're >displayed, and only the common part substituted into the query line. >You can get this with mod_query.set{autoshowcompl=false}. (Well, could >-- apparently there's a segfault problem in the present release.) I thought autoshowcompl had something to do with the box that showed all the possible completions, not the kind of completion. It doesn't segfault on my computer though (i386 freebsd, ion 20061223). >> - Is there some more documention on (or in) the ion code somewhere besides >> the listing of classes in the ion manual? > >No. It should all be self-evident :). Starting to be :) >> - anyway, i think ioncore.create_ws(_,my_ws_params,true) will do what i >> want, but is _ for the first parameter the current WScreen (also known >> as the right option)? > >Depends on where the call is. In the default configruation, it IIRC is in >the WScreen bindings, so yes. I found an old thread on the mailing list about how to do this, and you said there it would be easy to export region_get_configuration(). I made a litle script with it and it works nicely i just have a few problems with how mod_query.query() works (see below). >> - Is there a way to make Ion obey the maximum window size hints (WM_SIZE_HINTS) >> throug winprops so they only work for some programs? I cannot make >> windows smaller then the application wants, but i can make the window >> bigger which sometimes is annoying because some programs stay at 1 size > >Maybe. Maybe there is already a suitable winprops. RTFM. i couldn't find one, but i haven't tried them all yet :) Here is the litle script i made to test loading and saving workspaces, i can load workspaces as much as i want but i can't seem to get the query-completer function to work. Any tips on that? tester={} local workspaces = ioncore.read_savefile('saved_workspaces') or {} -- bind this function to a button with WGroupWS context to save the current -- ws function tester.save_ws(r) ws_def = r:get_configuration(r) ws_def["switchto"] = true ws_def["bottom_last_close"] = true workspaces[ ws_def["name"] ] = ws_def ioncore.write_savefile('saved_workspaces', workspaces) end function tester.query_load_ws(mplex) mod_query.query(mplex, "Load workspace:", "", tester.get_ws, mod_query.make_completor(complete_saved_ws), "load_ws") end local function complete_saved_ws(s) ws_list = {} for i,d in pairs(workspaces) do table.insert(ws_list, i) end return mod_query.complete_name(s, ws_list) end function tester.get_ws(mplex, ws_name) WMPlex.attach_new(mplex:screen_of(), workspaces[ws_name]) end