From the author of the ‘variable editor’ here comes the binding dictionary yay!

From the author of the ‘variable editor’ here comes the binding dictionary yay!

The idea behind this script was a simple one: allow to organize a bit the bindings and have them stored for multiple use. Then I started adding features, tweaking menus… ~600 lines of code at the end (almost half of them are empty, but impressive nonetheless).

How to use it:

– simply run it and choose what you want to do. Check the features for more information.

Features:

– Add bindings directly from text, writing/pasteing them.

– Add binding from the current item (you need to run the script from an item)

– Add all bindings on the launcher: this will search all bindings from all items from the launcher to save them (will ask one by one without duplicates)

– Rename a saved binding

– See/Edit/Delete a saved binding

– Set a saved binding to the current item (you need to run the script from an item) at a chosen property.

Configuration:

– You can change the folder where the data (the bindings) are saved.

Notes:

– When choosing a property, VOID means DUMMY

– Editing the bindings folder from outside will only take effect after restarting the script (and is recommended to not do it while the script is running)

– You can remove/add/edit manually the files without problem (if you don’t do strange things). You can make a copy, delete all at once, add some, etc

Important:

– Due to the complexity of the script, it may contain bugs. If you find one don’t be afraid of tell me in the comments.

]]>

5 Commentsto From the author of the ‘variable editor’ here comes the binding dictionary yay!

  1. Anonymous says:

    < ![CDATA[

    Due to the length of the script I won’t post it here.


    You have it in the repository: http://www.lightninglauncher.com/wiki/doku.php?id=script_bindings_dictionary

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Great!


    On the code style, you should give more verbose name to your functions : someone else should be able to know exactly what the function do without reading it’s code.. Especially the first ones


    Btw, that’s an awesome work 🙂

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Thanks


    I know I know, but I don’t know why it was difficult to choose a right name for them (And at the beginning it was, and I’m not lying, toItem1() toItem2() toItem3() toItem4() )


    Then I renamed them, except the main2() which I couldn’t find a good name.



    At least I wrote what each function does…

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Ahah this is a weird truth : the most difficult task a developer can do is to find correct names for everything 🙂

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *