I took a look in the /etc/bash_completion code. I found my answer, partly. I wanted to complete with the possible list of existing screens, when reattaching one (-r|-R): only problem was that everyone has to remember the number screen assigned to the screen wanted, since when the screen is created it gets a name like 424234.name_that_i_chose . So I wanted autocomplete to work even with name_that_i_chose and to fill the command like: 'screen -R 424234.name_that_i_chose'
So I managed to fix the sed commands, I noticed too that -r and -R switches where associated with $prev not with $preprev, so if -r|-R was not the latest switch on the commandline it would not get completed. Fixed that too. On Debian squeeze it works as expected. See the attached patch . See also http://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311540&group_id=100114 Package devs could you please close this bug? 2009/3/11 [email protected] > I would like to know if existsted any trick for the GNU screen program. > > I do not know any: it would be nice to complete screen command line with > both a list of names of the started screens and their full identifier (eg. > 23442.abcde) > > The list afaik is gotten through '/bin/screen -l' > > The completion would result in 'screen 23442.abcde' in case user writes > 'screen abc[TAB]' or 'screen 234[TAB]' > > Any hints? > > Would it be interesting to integrate it in? > > > Thank you, > > Regards. >
patch_screen
Description: Binary data
_______________________________________________ Bash-completion-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
