chaat
Sophomore Member
Posts: 59
|
Post by chaat on Oct 22, 2014 16:06:22 GMT -5
George / Robert,
I frequently have the same file open in two instances of SPFLITE, one in EDIT mode and the other in BROWSE mode. I do this to basically see two sections of code at one time with a quick toggle back and forth.
The confusion is that there is nothing visible which differentiates between them. On the other editor I've used, there is a setting for the default FG/BG colors for BROWSE mode and EDIT mode. This would be very useful.
The problem I encounter is that I end up making changes to either both of them or the wrong one and it is painful to merge the changes or to create another file when i try to save the changes i've made in browse mode.
is this something which could be implemented without too much work ?
another option which would be nice is to immediately show an error when attempting to make changes to a file opened in BROWSE mode.
thanks
|
|
|
Post by George on Oct 23, 2014 11:19:11 GMT -5
chaat: Robert: Alternate colors for Browse would be a significant change. The Options -> Screen -> colors are global and there is just one 'set'. To create another set would then require another Options tab for Browse and all the associated saving/loading of the INI settings. Also, what is to be done with AUTO colors? Would it mean another parallel set of colors there as well?
I think perhaps an easier route (still a lot of scattered code changes throughout, but simpler) would be to create a 'True Browse' option which, when activated, would simply prevent all changes to the browsed file. You'd get a beep or something to alert you.
George
|
|
chaat
Sophomore Member
Posts: 59
|
Post by chaat on Oct 24, 2014 0:19:45 GMT -5
George, I think that just allowing a different FG/BG color for normal text would be sufficient. That is what I'm used to doing in SPFSE. It's one of the few things that I've not be able to accomplish yet with SPFLite.
|
|
|
Post by George on Oct 24, 2014 11:58:16 GMT -5
chaat: just different FG/BG is not that simple. There's the Hi/Lo values for FG, the 2nd background color if alternate BG colors are used (banding), there's all the highlight colors which are specified as FB/BG pairs, the line humber Hi/Lo FG etc. If a whole alternate set is not allowed for, there'd be some really weird combinations and exceedingly ugly looking screens. I'm pretty certain I won't go the different color route, believe it or not, with AUTO color support, changes to the basic color support gets very tricky during tab switching and get/lose focus activity. My preference is to leave that alone, it's taken umpteen releases to get it right.
Robert: I know you've asked for View/Browse before and I've said no. Adding a new mode like that is probably the best solution, but uugh! adding a new Edit mode, along with the 'you can't modify it' support makes for the ugliest kind of change, it affects stuff everywhere. I don't think there's a better way though.
George
|
|
|
Post by George on Oct 25, 2014 11:02:09 GMT -5
Robert: I started on this. I'm going to use the separate VIEW and BROWSE approach, even if ISPF has dropped it. First stage is to convert current Browse into true-Browse. i.e. you can't make changes - period. I have the Primary and Line commands done since it's mostly just expanding the command tables a bit. The KB Primitives are next, I'm trying to see if I can do something similar there, but they're not quite so table oriented in how they're dispatched.
Once all that's done, I'll go back and add in the VIEW command.
George
|
|
|
Post by George on Oct 25, 2014 13:03:51 GMT -5
Robert: I'm making BROWSE into a true Browse (i.e. you can't change anything - isn't that correct?) Then I add back a new VIEW which is what our old BROWSE was (i.e. you can change stuff, you just can't save it. And yes the keyboard is locked, but selectively based on where you are. i.e. Unlocked in the Cmd line, locked in the data area - well - that's the intention.
George
P.S. Check your DropBox folder. A new EXE is there. Has the ' ' ' ' ' ' changes, and the new BROWSE. No VIEW yet. Haven't checked email for a while I guess.
|
|
|
Post by nicc on Oct 31, 2014 15:07:41 GMT -5
May I just point out that Browse is still available in ISPF but you have to de-select View on the dataset name entry panel to use it.
|
|
|
Post by George on Nov 1, 2014 12:41:17 GMT -5
Robert: as to the task bar 'shifting' - I guess it depends on whether you have the text displayed in the task bar. I don't, so I didn't notice this effect. I usually have so many windows open the text would get truncated anyway. What's your vote? Should I remove it back to what it was?
|
|