gcanyon / navigator

The amazing small powerful plugin for Livecode that makes you a better, faster developer.
12 stars 4 forks source link

Change out use of value() for use of merge() #21

Open gcanyon opened 5 years ago

gcanyon commented 5 years ago

Putting this here as a heads up, I'll fill in more details as I work them out.

I think I'm going to replace the use of value() with merge() in list display. I have to work through it to see if it will actually go the way I think and still support filter by text, filter by test, etc. There are two ways to implement this.

Less ambitious The less ambitious is just to replace the current value() option with a merge() option instead. This allows for easier list display string definition -- once you get the hang of merge() It also makes it much more possible to implement conditional display options: this will succeed as long as 2=2:

put merge("<?if 2<>2 then return 3/0 else return 6/2?>")

More ambitious I may be able to build a single merge() string that will in one step generate the HTML to display in the list view. If so, then that string can be updated only when the actual list display string is updated (i.e. rarely) and thus perhaps speed up overall display in Navigator. I'm not sure how well it will work with folding and filter by test, so I'm not sure about it yet.

None of this is going to happen at least for a week.