Menu

Edit attributes as nodes

Alexandre
2016-03-09
2021-01-02
<< < 1 2 (Page 2 of 2)
  • Alexandre

    Alexandre - 2016-03-24

    2016-03-24_13.41.01
    Fixed: If a new value is added to the comma-separated picklist and then it is checked, it is added to the comma-separated list and its node values but is not sorted. This is fixed.

     
  • Alexandre

    Alexandre - 2016-04-01

    I fixed several bugs and added the possibility to remove attributes from the picklist and these will be removed globally on all the map for each nodes that have this attribute. I will add this too for attribute values and comma-separated values next. Here is a list of things fixed, the code above in this thread is updated.

    2016-03-31_08.12.55
    Fixed: When showing attributes, there were no check boxes (introduced while fixing and improving)
    Done: Feature request: FR20160329105156 Delete the picklist values would remove the attributes globally at the map level
    Fixed: the deletion of all the attributes in the map for the attributes deleted in the picklist (it is in the attributesdeactivate function)
    Fixed: After deleting or adding items to the attributes node list, if I activate the picklist it should add the items to the inner attributes
    Fixed: If the attributes are closed from the rootNode with the picklist closed, then the attributes are not added to the innerAttributes, but if it is opened then they are added.
    Fixed: If a item is added to the nodes attributes and after the attributes picklist is opened, the new item(s) where not added to the picklist,,.it is fixed now.
    Fixed: If I check a new item in the attributes picklist and then press the hotkey from the rootNode, the new item is not added to the rootNodes inner attributes, moreover the <picklist> item is added to the root nodes attributes.
    Fixed: Closing the attributes (from the <attributes> nodes) doesn't add to the rootNode the newly checked attributes from the picklist
    Fixed: Closing the rootNode deletes the attributes...
    2016-03-30_08.05.53
    Fixed: Closing the root node doesn't update the inner attributes (it was new bug introduced with changes)
    Fixed: Closing the nodes attributes dosen't update the inner attributes
    2016-03-29_11.01.44
    Fixed: (Bug20160329122350) There seems to be a new bug, if the picklist is opened for the attributes, and the rootnode is deactivated, then picklist is added as an inner attribute.... it doesn't do that for the commaseparated pick list and the value picklist. If the attributes picklist is closed before the rootnode then it is fine. I should deactivate the attributes before. See this reference Bug20160329122350 in the code

     
    • zipizap

      zipizap - 2016-04-01

      Alexander have a quick look at git and github - it can be very usefull to
      organize code changes.

       
  • Volker Börchers

    Yes putting stuff on github would be most useful. It would make the code more accessible and it would allow for collaboration.

     
  • Alexandre

    Alexandre - 2016-04-02

    Hi Zipzap, Volker,

    As you suggested, I uploaded the script on github:
    https://github.com/viaa/FreeplaneScripts
    (EditAttributesAsNodes.groovy)

    Thanks.

    Best regards,

    Alexandre

     

    Last edit: Alexandre 2016-04-03
  • Volker Börchers

    Hi Alexandre,

    great that you have uploaded your script. In order to create an add-on of it let me suggest that you move the script to a new folder named "EditAttributesAsNodes", create a folder "scripts" in it with your script, perhaps like this

    \EditAttributesAsNodes
       \scripts
          \EditAttributesAsNodes.groovy
    

    EditAttributeAsNodes could either be a separate repository (https://github.com/viaa/EditAttributesAsNodes) or you could have a repo for add-ons (https://github.com/viaa/FreeplaneAddOns/EditAttributesAsNodes).

    I can help you with the add-on then.

    Regards
    Volker

     
  • Alexandre

    Alexandre - 2016-04-03

    Hi Volker,

    I created the new git repository as you suggested:
    https://github.com/viaa/FreeplaneAddOns

    With the subdirectory for the EditAttributeAsNode script but git created automatically a folder structure like this:

    https://github.com/viaa/FreeplaneAddOns/tree/master/EditAttributesAsNodes

    adding /tree/master

    Please let me know if it fine and what are the next steps.

    Thanks,

    Alexandre

     
  • sfpcom

    sfpcom - 2016-04-16

    Alexandre I found your script really useful, and because of my continuous usage I ask you if it is possible make that the script keeps the format of the original attributes in every case.
    I mean the date format normally has been changed in the move from attribute to sibling and therefore has been changed when you go back to the attribute (e.g: if date format in attribute is yyyy-mm-dd, in the sibling it becomes mm/dd/yy and after that running again the script in the attribute the format is the last one, that I have to change manually).
    Basically I utilize this script in the attachment, because i try to utilize that in the addon but it wasn't working on my system.

     
  • sfpcom

    sfpcom - 2016-04-17

    Alexandre I discovered the issue, it was my FP date settings on SHORT instead on the other format, in this case everything is running, so therefore I don't need any change.
    Thanks in any case.

     
  • Volker Börchers

    Alexandre, have you seen my pull request for your github repository? It creates a working add-on which just needs a bit of polish: Addition of a description, possibly introduction of translation keys, screenshot and logo. All of that is optional.

    Regards
    Volker

     
  • Alexandre

    Alexandre - 2016-04-19

    Hi sfpcom, Volker,

    sfpcom: What is the date setting that you switch to from SHORT, because it seems I had the same issue with dates, the month was sometimes at the position of the day and vice-versa.

    Volker: Yes I saw the pull request, but I have been in vacation these days so I didn't do much with the script. If all is optional do I need absolutely to do anything at this point? I need to catch-up with work things so I don't have much time these days, but I will do when I get some time. I did one update to the script, should you do another pull-request for the add-on from this new version (I don't know how it works).

    The update is that I added the possibility to delete values from the single value picklist. So if one delete a value from the picklist, it will set to blank all values for that attribute for all occurances of that attribute in the map. I still need to do something similar for the comma-separated list values. That version is on github now.

    Thanks,

    Alexandre

     
  • Volker Börchers

    Hi Alexandre,

    please visit https://github.com/viaa/FreeplaneAddOns/pull/1 and accept my Pull request. Then you have to do a "git pull" locally and you will have everything for the add-on. You just have to fill the gaps described in my pull request.

    You should definitely remove the redundant copy of the script in FreeplaneScripts as duplication leeds to trouble.

    Volker

     
  • sfpcom

    sfpcom - 2016-04-23

    Hi Alexandre go in Preferences-Beahviour - and check the syandard date format: default value = SHORT and change it in your preferred format.
    See attacment

     
  • j-lon

    j-lon - 2016-09-09

    Just tried to use this script and I got "error executing scrit: null" I'm running FP version 1.5.16.

    Any thoughts on that?

     
  • bepolymathe

    bepolymathe - 2021-01-02

    Hi,

    Is there is a addon or not now ?
    Thanks and happy new year !

     
<< < 1 2 (Page 2 of 2)