On Wed, Jul 30, 2014 at 5:18 AM, Fedor Belov <fedor.be...@mail.ru> wrote: > Hi > > I wanna implement shell program with very specific autocompletition logic: > > user can type: 'myApp f.s<tab>' and shell should display him following > suggestions > > fish-shell > fish.shell.config > ... > > After that user can select which argument he wants to use. Enter -> program > receives appropriate argument > > General idea - instead of typing whole argument, type only its part and > chose argument from suggestions (based on some rules - split > request/suggestions into words (fish.shell.config splits into [fish, shell, > config], f.s - [f,s]), match words) > > One more example to explain you idea: > > I've got folder /home/fbelov/docs/ > I wanna type `cd h.f.d` (or my custom_cd) and get suggestion > /home/fbelov/docs/ . Select suggestion, enter -> folder is changed to > /home/fbelov/docs/ > > Is it possible to implement? Can you suggest me docs to read?
Wouldn't 'aliases' suffice for this? h.f.d could potentially expand to hundreds of things on a system but looks like you want only a specific expansion of the custom acronym (or can it be anything with 'h' 'f' & 'd' as a prefix?) Have you looked here for hints: http://fishshell.com/docs/current/index.html HTH, -mandeep > > Thank you! > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > _______________________________________________ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users > ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users