Re: [viewglob-general] Feature request
Brought to you by:
sjbach
From: Stephen B. <9s...@ql...> - 2005-09-11 21:54:05
|
Hi David, > I stumbled upon viewglob by accident, but I this is one those rear aps > that perfectly extends all the modern xterms giving you the full power > of the regular shell and providing just that extra bit that makes it > users go : "Wow, I've been waiting for this extention for ages!!" > The auto 'raise-and-relocate' of the globbing window, the onto-the-fly > updating, ... Thanks for the kind words! > But here are the 3 features I would like to have before I make this a > default first program to run in all my xterms :-) > > 1) A new display: > -------------- > > Instead of the vgmini and vgclassic, I would really appreciate a > 'vgmatchesonly' > for instance if I now do a "ls ~/msx-e*/*/C*/R*" in the shell > I get this : > /home/david/msx-emu/Catapult/CVS/Repository > /home/david/msx-emu/Catapult/CVS/Root > /home/david/msx-emu/msxtar/CVS/Repository > /home/david/msx-emu/msxtar/CVS/Root > /home/david/msx-emu/openMSX/Contrib/README > /home/david/msx-emu/openMSX/Contrib/README.cbios > /home/david/msx-emu/openMSX/Contrib/README.msxdos_bootsectors > /home/david/msx-emu/openMSX/Contrib/README.openmsx-control > /home/david/msx-emu/openMSX/CVS/Repository > /home/david/msx-emu/openMSX/CVS/Root > /home/david/msx-emu/openmsx-debugger/CVS/Repository > /home/david/msx-emu/openmsx-debugger/CVS/Root > The 'vgmatchesonly' display would simply show these lines instead of > the current 6 dirs that I have to expand myself to look what I've > selected. > > Since a keep most of my stuff in my home directory (yes unsorted and > all, I'm lazy :-) , it would also help for things like "ls *.mp3". > Since now in the +200 files I have in my homedir there are maybe 10 > mp3 files, but some songs start with the letter 'a' others with a > 'k','s',... and I still not see them all selected in a glance using > the currently available displays. I can see how this could be useful. It probably wouldn't be too difficult to make a simple display for this. > 2) Cursor place dependancy > ----------------------- > If I type 'ls *.mp3 *.avi' And the cursor is on the '*.mp3' part I > would like to see only the matching mp3 files, having my cursor in > the *.avi part would only show those files (or dirs ending in .avi, > ofcourse) I've considered adding a similar feature. The problem is that Viewglob doesn't always know perfectly where the cursor is on the command line (it can only guess using heuristics based on terminal input). Still, it's usually pretty good. I can at least try it to see how useable it is. > 3) auto '*'-affix when globbing > ---------------------------- > I'm a frequent user of the <TAB><TAB> feature of bash if you know wat > I mean. for instance 'ls .b'+<TAB> gives me a bell signal, pressing > <TAB> a second time prints this nice list > .bash_history .bash_logout .bash_profile .bashrc > .blackboxrc > If I then type an 'a'+tab my entry line is 'ls .bash' > pressing <TAB> will give a bell again, since bash can not complete > without me specifying an extra letter, and so on. > > If the 'vgmatchesonly' display would (as an option?) automatically ad > an * to the search term I wouldn't need to press <TAB> twice to get a > list, since the list would appear in the display immediately after I > typed the 'ls .b' > > In the current displays this ofcourse works as I would like it (if > hidden files would all be visible :-\ ), but it doesn't fit in a pure > 'vgmatchesonly' logic :-) FYI, you can make hidden files visible by adding them to the display mask. By default the displays use a mask of "*", thus listing all non-hidden files. To also list hidden files, change the mask to ".* *" by typing: <Ctrl>-<G> <.> <*> <SPACE> <*> <ENTER> > Anyway, this is a great app, but to make it a killer-bash-extention it > needs the vgmatchesonly display and the auto '*'-affix (IMHO that is ;-) > Anyway, keep up the good work on this beauty. Thank you for the input, David! When I get a little time I'll see if I can put your ideas into action. Regards, Stephen |