Hi,
With the valuable help of the community and the GLMBasicExamples I have been able to build basic outlining interface and functionality. Here is a screenshot: http://www.enlightenment.org/ss/e-53f4243a4dc127.49773492.jpg There are some issues: 1. Now I would like to make the nodes in the tree persistent in the sense that if I wrote something in the node body (left upper part of the browser) and I select another node, when I visit the previous node, the text in the body still is there. How can I do this? 2. I would like to make the current node always selected by this blue highlighting. With some operations like moving nodes to the left or to the right, the current node gets out of focus, despite of the operations being done over it. There is any way to say Moose browsers where to put the selections, besides of explicit selection with the mouse. 3. Some time ago I asked about how to make tree labels (headers), at the left of the browsers editable. There is any way to make this? Thanks a lot, Offray |
Hi,
On Wed, Aug 20, 2014 at 5:38 AM, Offray Vladimir Luna Cárdenas <[hidden email]> wrote: Hi, I believe you refer to some sort of automatic saving. This is not possible at the moment, but it would certainly cool to get added :( 2. I would like to make the current node always selected by this blue highlighting. With some operations like moving nodes to the left or to the right, the current node gets out of focus, despite of the operations being done over it. There is any way to say Moose browsers where to put the selections, besides of explicit selection with the mouse. You can just set the #selection or the #selectionPath ports. 3. Some time ago I asked about how to make tree labels (headers), at the left of the browsers editable. There is any way to make this? No :(. But, again, it would be cool to get this support.
Cheers, Doru Thanks a lot, "Every thing has its own flow"
|
Hi Doru, Sven and community,
I have made a small experiment to get persistence on browsers by using STON. I really like the readability of STON. At [1] you can see a screen shoot of a moose browser tree and attached to this mail is equivalent STON file. [1] http://www.enlightenment.org/ss/e-53febbe8656192.95414052.jpg I have some questions, nothing with code because they're kind of general and not referred to any particular code written at the moment. Any way if someone want to see the code and load the browser, here is what needs to be done: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Gofer new smalltalkhubUser: 'Offray' project: 'Ubakye'; package: 'Ubakye'; load. UbakyeBrowser open. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Here are the questions: I would like to capture some events that happens in panels. For example, suppose I write a text in the "Cuerpo | Body" panel and I would like to get the body of my node updated with what has been wrote on the panel. I have seen "Populate port action" example, but it works on selection and I would like to update the tree anytime a body panel is wrote, without any particular selection and also the "updateOn" message, but I don't know if this is the proper message to use when the user is just writing in a text panel of a moose browser. How can I updating on writing in a text panel can be done? Also, how can I create an emergent window (similar to the inspector example that Doru gave to me) but just with the current name of the header of the node, and also made that the node header updates on clicking "Ok" button of that emergent Window? The last question its related with Sven's STON: Suppose that I would like to store light markup languages in STON which have the single quote character (') on them, without creating any escape sequence, is this possible on STON and if not, what is needed to be changed for that? Thanks, Offray On 08/20/2014 03:08 AM, Tudor Girba wrote: > Hi, > > > On Wed, Aug 20, 2014 at 5:38 AM, Offray Vladimir Luna Cárdenas > <[hidden email] <mailto:[hidden email]>> wrote: > > Hi, > > With the valuable help of the community and the GLMBasicExamples I have been > able to build basic outlining interface and functionality. Here is a screenshot: > > http://www.enlightenment.org/__ss/e-53f4243a4dc127.49773492.__jpg > <http://www.enlightenment.org/ss/e-53f4243a4dc127.49773492.jpg> > > There are some issues: > > 1. Now I would like to make the nodes in the tree persistent in the sense > that if I wrote something in the node body (left upper part of the browser) > and I select another node, when I visit the previous node, the text in the > body still is there. How can I do this? > > > I believe you refer to some sort of automatic saving. This is not possible at > the moment, but it would certainly cool to get added :( > > 2. I would like to make the current node always selected by this blue > highlighting. With some operations like moving nodes to the left or to the > right, the current node gets out of focus, despite of the operations being > done over it. There is any way to say Moose browsers where to put the > selections, besides of explicit selection with the mouse. > > > You can just set the #selection or the #selectionPath ports. > > 3. Some time ago I asked about how to make tree labels (headers), at the > left of the browsers editable. There is any way to make this? > > > No :(. But, again, it would be cool to get this support. > > Cheers, > Doru > > Thanks a lot, > > Offray > > > > > -- > www.tudorgirba.com <http://www.tudorgirba.com> > > "Every thing has its own flow" > test.ston (1K) Download Attachment |
Hi,
On 28 Aug 2014, at 07:49, Offray Vladimir Luna Cárdenas <[hidden email]> wrote: > The last question its related with Sven's STON: Suppose that I would like to store light markup languages in STON which have the single quote character (') on them, without creating any escape sequence, is this possible on STON and if not, what is needed to be changed for that? I am not sure I understand, but I assume you want to be able to write another language inside a String constant. STON uses the same escape sequences as JSON. So that means you have to use either the general \uFFFF or a couple of shortcuts, like \' and \". Note however that you can use both single and double quote as string delimiters. So you do: 'x:="foo"' or "x:='foo'" as well as 'x:=\'foo\'' and "x:=\"foo\"" Does that help ? Sven |
Hi Sven,
On 08/28/2014 04:47 PM, Sven Van Caekenberghe wrote: > Hi, > > On 28 Aug 2014, at 07:49, Offray Vladimir Luna Cárdenas <[hidden email]> wrote: > >> The last question its related with Sven's STON: Suppose that I would like to store light markup languages in STON which have the single quote character (') on them, without creating any escape sequence, is this possible on STON and if not, what is needed to be changed for that? > > I am not sure I understand, but I assume you want to be able to write another language inside a String constant. STON uses the same escape sequences as JSON. So that means you have to use either the general \uFFFF or a couple of shortcuts, like \' and \". Note however that you can use both single and double quote as string delimiters. > > So you do: > > 'x:="foo"' or "x:='foo'" as well as 'x:=\'foo\'' and "x:=\"foo\"" > > Does that help ? > > Sven > Yes I imagine myself writing long structured documents in light markup languages (specifically pandoc's markdown [1]) in my outliner and storing it in STON. Because single and double quotes are fairly common in writing I would like to write my documents with out worrying about escape characters or the sequence of single quotes and double ones. Being STON a young language would be nice to provide a way inside it to store arbitrary long sequences of text that can contain single and double quotes. YAML[2] (another nice serializing language) has solved the issue with indentation blocks and some minor marks which help a lot to human readability (similar to the pretty printing of STON) and python has their triple quotes which are pretty uncommon on casual writing. Both of the has proven to me being very useful ways to store light markup language inside yaml or python and I would like to know if there is a similar option for STON or if this can be easily implemented. [1] http://johnmacfarlane.net/pandoc/ [2] https://en.wikipedia.org/wiki/YAML Thanks, Offray |
Free forum by Nabble | Edit this page |