view in tab and focus follows mouse

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
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]
 

rconn

Administrator
Staff member
May 14, 2008
10,157
86
#2
> 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.
 
#3
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?
 
#6
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.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,410
40
Albuquerque, NM
prospero.unm.edu
#10
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.