Hi.
In menu>edit>move sort there is the option "sort children", which seems to sort just alphabetically.
Is it possible to sort children by icon "priority" or "progress"?
Maybe through script?
Thanks for info!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can get the names of the icons that a node has, with
node.icons.icons
In the attached screenshot, you can see all the names of these icons
Then you can reorder a node be the upper-most (0) or second-node (1) or ... or last-one (-1) with:
node.moveTo(node.parent, 0)
With these bare-pieces, you could try to make a simple script, to search if a node has a certain icon, and reorg it to be the first node or second, or ...
Hope it helps
Many thanks for directions for the script zipizap!
I've started learning scripts, but my knowledge is still limited.
I'd appreciate a further help to achieve the script syntax.
Taking as references the icons full-1, full-2 and full-3, what would be the script to sort the children nodes in the following order:
full-1
full-2
full-3
any other icon
no icon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To be honest I'm not too skilled with groovy, my best language is Ruby
(which is similar enough for simple scripts)
Someday I intend to finish an addon - FreeplaneJrubyInstaller - that will
let Ruby scripts run also in freeplane (just like groovy scripts) and then
I could make your script in Ruby. The thing is that for this icons-script,
to code the remaining logic in groovy would take me too much efforth/time
as I am not very used to use groovy with arrays/lists and other things that
I think would be necessary.
If nobody else makes this groovy script for you, remind me when I get
that FreeplaneJrubyInstaller
finished
Br
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems to be not so easy to implement sorting by priority through scripting, so I created a formal feature request since many users that deals with project/task management could benifit from this feature: https://sourceforge.net/p/freeplane/featurerequests/2408/
In the feature request I also mentioned the possibility implement sort by "Modified time". It is possible to see/sort "modified time" through Freeplane "search and replace" tool, but a native sorting direct on the nodes would be handier.
That screenshot comparison of Xmind and Freeplane has another sort method that I'd really like: by modified. Is it possible to make such an option with something similar to your addon?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That screenshot comparison of Xmind and Freeplane has another sort method
that I'd really like: by modified. Is it possible to make such an option
with something similar to your addon?
Apologies for being unclear. I was wondering if there was a way to sort children by modified or created times, the way the above script allows you to sort by progress.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
In menu>edit>move sort there is the option "sort children", which seems to sort just alphabetically.
Is it possible to sort children by icon "priority" or "progress"?
Maybe through script?
Thanks for info!
You can get the names of the icons that a node has, with
In the attached screenshot, you can see all the names of these icons
Then you can reorder a node be the upper-most (0) or second-node (1) or ... or last-one (-1) with:
With these bare-pieces, you could try to make a simple script, to search if a node has a certain icon, and reorg it to be the first node or second, or ...
Hope it helps
Share back your progress :)
BR
Many thanks for directions for the script zipizap!
I've started learning scripts, but my knowledge is still limited.
I'd appreciate a further help to achieve the script syntax.
Taking as references the icons full-1, full-2 and full-3, what would be the script to sort the children nodes in the following order:
full-1
full-2
full-3
any other icon
no icon
To be honest I'm not too skilled with groovy, my best language is Ruby
(which is similar enough for simple scripts)
Someday I intend to finish an addon - FreeplaneJrubyInstaller - that will
let Ruby scripts run also in freeplane (just like groovy scripts) and then
I could make your script in Ruby. The thing is that for this icons-script,
to code the remaining logic in groovy would take me too much efforth/time
as I am not very used to use groovy with arrays/lists and other things that
I think would be necessary.
If nobody else makes this groovy script for you, remind me when I get
that FreeplaneJrubyInstaller
finished
Br
Thanks for feedback zipizap. Looking forward to using FreeplaneJrubyInstaller! All the best with the development!
If anyone can help with a groovy script for sorting children by priority it is very welcomed.
Hey guys,
Any idea about a script syntax to sort children by priority?
Desirable sorting based on icon name:
full-0
full-1
full-2
full-3
...
full-9
any other icon
no icon
Many thanks!
Last edit: Cadux 2017-09-16
Hi,
It seems to be not so easy to implement sorting by priority through scripting, so I created a formal feature request since many users that deals with project/task management could benifit from this feature:
https://sourceforge.net/p/freeplane/featurerequests/2408/
In the feature request I also mentioned the possibility implement sort by "Modified time". It is possible to see/sort "modified time" through Freeplane "search and replace" tool, but a native sorting direct on the nodes would be handier.
I've attached a screenshot about the suggestion.
Cheers,
Carlos
Cadux, I've finally finished/published the addon, and made a ruby script to sort children by icons
You will need to:
download the .rb script from https://www.freeplane.org/wiki/index.php/FreeplaneJrubyInstaller_-_developers#Sort_children_by_icon
install the addon FreeplaneJrubyInstaller, and then run that ruby script : all explained here
Last edit: zipizap 2017-10-10
That screenshot comparison of Xmind and Freeplane has another sort method that I'd really like: by modified. Is it possible to make such an option with something similar to your addon?
Leo
Its probably posible to make a ruby (and Groovy) script to filter as you
indicated. However its not possible to add a new method to the Groovy API
Give a concrete example to more clearly what is intended
On 25 Jan 2018 03:34, "Leo Staley" leostaley@users.sf.net wrote:
Apologies for being unclear. I was wondering if there was a way to sort children by modified or created times, the way the above script allows you to sort by progress.