Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

view in tab and focus follows mouse

Jun
770
6
VIEW in a tab (/w) doesn't get along with focus follows mouse (aka active window tracking; setting bit 0 of HKCU\Control Panel\Desktop\UserPreferencesMask to 1). Moving the mouse away from TCmd (almost always) makes the viewed file disappear. It reappears when I move the mouse back.

TCC 13.00.19 Windows Vista [Version 6.0.6002]
TCC 13.00.19 x64 Windows 7 [Version 6.1.7601]
 
> VIEW in a tab (/w) doesn't get along with focus follows mouse (aka
> active window tracking; setting bit 0 of HKCU\Control
> Panel\Desktop\UserPreferencesMask to 1). Moving the mouse away
> from TCmd (almost always) makes the viewed file disappear. It
> reappears when I move the mouse back.

There's no way that VIEW in a tab window could work with "focus follows
mouse". It's simply not possible to do in Windows.

Think about what VIEW is actually doing -- it's trying to display a separate
app (v.exe) overlaying a TCMD tab window, and shift the focus automatically
when you move the mouse outside the v.exe window (for example, to the TCMD
menus). When you're telling Windows to automatically change the focus, it's
impossible for TCMD / VIEW to manage it.
 
OK. That does sound impossible. I'll probably use LIST most of the time. I've already got a text editor that starts quickly and uses its own window, although I might find VIEW useful occasionally. Word wrap in LIST would be nice. Have you ruled out any enhancements to LIST or can I add it to the feedback?
 
LIST reads from standard input, so you can always pipe through a word-wrap filter into LIST.

Which assumes I know before I've viewed the file that I want it word-wrapped, I won't change my mind want it not word wrapped, I have a word wrap filter (do I? which one do you use?), and I tell the filter how wide the TCC window is. If I'm going to all that trouble, I can just view the file in my editor.
 
Which assumes I know before I've viewed the file that I want it word-wrapped, I won't change my mind want it not word wrapped

Well, yes. Personally if I don't like LIST's display I don't mind popping out and composing a new command line, but I guess I can't speak for everybody.
 
It is a good idea. I could create an alias. What do you use to do word wrap? Maybe sed can do it?

Or awk, or a Windows port of fold. There must be others out there -- a little googling finds source for one called 'fwrap', though it's not quite what I had in mind. Or roll your own. I'm using one of my own creation, though it's ideosyncratic and might not be to your taste; I designed it for English prose rather than program output and it makes various assumptions.
 

Similar threads

Back
Top