|
|
|
09-04-2018, 06:34 AM
|
#1
|
Human being with feelings
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 813
|
Script: ToDoList for Reaper
tompad_ToDoList
tompad_ToDOList is a reascript to save notes on what to do in a Reaperproject.
You can create new, edit, mark done, delete and set priority of the different ToDo-items.
The settings and ToDos is saved in the project folder as a file - todolist.txt.
The way to set priority on ToDos is by rightclicking the item and choose from dropdown menu.
|H| = High priority
|M| = Medium priority
|L| = Low priority
The ToDos in list is sorted in order High - Medium - Low - Done
To mark a ToDo done click button Done and priority changes to |X| (= Done).
Find script here:
https://bitbucket.org/TompaD/tompad_...d_ToDoList.lua
(I am trying to learn how to put it in ReaPack - but I am not there yet.)
If you like it, please consider making a donation ;-)
Any comments on coding, requests, bugs etc is welcome!
PM me (tompad) on Reaper Forum ( https://forum.cockos.com/member.php?u=19103) or post something in this thread.
This script wouldn't exist without the help
from the Reaper community:
Lokasenna
XRayM
cfillion
mespotine
... and many more, thanks to you all!
Last edited by tompad; 11-12-2019 at 12:00 PM.
|
|
|
09-04-2018, 07:21 AM
|
#2
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
You're welcome and nice work
Some suggestions regarding priority,
I love using the so called Eisenhower-diagram, which categorizes tasks with:
urgent and not important
important and not urgent
urgent and important
not urgent and not important
This helps me deciding what to do immediately(urgent and important)and what can wait.
Just look at examples of the Eisenhower-diagram, maybe it's a cool additional view for your script.
|
|
|
09-04-2018, 07:29 AM
|
#3
|
Human being with feelings
Join Date: Mar 2007
Posts: 4,018
|
Quote:
Originally Posted by tompad
...
The settings and ToDos is saved in the project folder as a file - todolist.txt.
...
|
Hi, tompad, it could be very useful script, but as above quoted - I think that it does mean, that if you have two RPP projects in the same folder, then their "ToDo" data will be replaced by each other on resaves. Could it be saved with some more project-specific/unique filename? (Maybe the same name as the RPP?)
Last edited by akademie; 09-04-2018 at 07:40 AM.
|
|
|
09-04-2018, 08:06 AM
|
#4
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
Or saved using projextstates with the option to export them into the current projectdir as todo.txt
That way, the todolist is always part of the project and never gets lost...
|
|
|
09-04-2018, 08:10 AM
|
#5
|
Human being with feelings
Join Date: Mar 2007
Posts: 4,018
|
Also, I cannot get it to work right now. It seems like the script uses some new version of "Lokasenna_GUI v2" - in my installation I don't have a Modules/Window - GetUserInputs.lua which is required in the script, so I will have to look at it later.
|
|
|
09-04-2018, 08:14 AM
|
#6
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Quote:
Originally Posted by akademie
Also, I cannot get it to work right now. It seems like the script uses some new version of "Lokasenna_GUI v2" - in my installation I don't have a Modules/Window - GetUserInputs.lua which is required in the script, so I will have to look at it later.
|
Synchronize your ReaPack and it should update automatically.
|
|
|
09-04-2018, 08:20 AM
|
#7
|
Human being with feelings
Join Date: Mar 2007
Posts: 4,018
|
Quote:
Originally Posted by Lokasenna
Synchronize your ReaPack and it should update automatically.
|
Sure, but I am on Win XP right now, at work, so I cannot use ReaPack. I have offline installed set of scripts that I use on this XP machine. That's why "I'll have to look at it later" on my Win7 machine and synchronize :-)
|
|
|
09-04-2018, 08:34 AM
|
#8
|
Human being with feelings
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 813
|
Quote:
Originally Posted by mespotine
You're welcome and nice work
Some suggestions regarding priority,
I love using the so called Eisenhower-diagram, which categorizes tasks with:
urgent and not important
important and not urgent
urgent and important
not urgent and not important
This helps me deciding what to do immediately(urgent and important)and what can wait.
Just look at examples of the Eisenhower-diagram, maybe it's a cool additional view for your script.
|
Thanks!
Looked at Eisenhower-diagrams, but I am not sure how to
implement it, my GUI-knowledge is shallow for the moment. :-)
|
|
|
09-04-2018, 08:38 AM
|
#9
|
Human being with feelings
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 813
|
Quote:
Originally Posted by akademie
Hi, tompad, it could be very useful script, but as above quoted - I think that it does mean, that if you have two RPP projects in the same folder, then their "ToDo" data will be replaced by each other on resaves. Could it be saved with some more project-specific/unique filename? (Maybe the same name as the RPP?)
|
Ooops, havn't thought in that direction. I usually use one folder for
every RPP....but I will look at it. Putting it in ToDo ;-)
|
|
|
09-04-2018, 08:41 AM
|
#10
|
Human being with feelings
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 813
|
Quote:
Originally Posted by mespotine
Or saved using projextstates with the option to export them into the current projectdir as todo.txt
That way, the todolist is always part of the project and never gets lost...
|
I have had my thoughts on projextstates but went for txt-files, was not
sure how much I could save in projextstates.
|
|
|
09-04-2018, 08:42 AM
|
#11
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Quote:
Originally Posted by tompad
was not
sure how much I could save in projextstates.
|
Basically whatever you want.
|
|
|
09-04-2018, 09:08 AM
|
#12
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 4,967
|
Quote:
Originally Posted by tompad
was not sure how much I could save in projextstates.
|
Up to 2^12-(key length)-2 bytes per project extstate. https://forum.cockos.com/showthread.php?p=1945880
|
|
|
09-04-2018, 10:30 AM
|
#13
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,900
|
Haha! Thanks for the screenshot TODO list :P
But I'm curious, how did I help make this script ?
|
|
|
09-04-2018, 12:19 PM
|
#14
|
Human being with feelings
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 813
|
@Lokasenna and @cfillion - ok, maybe this is enough ;-),
will look into it again.
@XRayM - it all started after watching your Youtube-clips!
I think it was a link/article from ReaperBlog...
All in French and with English subtitles! Loved it! :-)
|
|
|
09-06-2018, 05:10 AM
|
#15
|
Human being with feelings
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 813
|
Regarding ProjExtState - hehehe now I know why I went to using
save to textfile instead :-) I found it easier to work with
because I cant see what is stored in ProjExtState, with the textfile
I just open and watch.
But I will give it a chance.....however I have some questions:
I am using 2 dimensional tables - do I have to "serialize"(?) them
before getting them in ProjExtState? And how the heck do I get table back?
|
|
|
09-06-2018, 07:08 AM
|
#16
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
1. Yes, you have to serialize them.
2. Short answer: Turn them into a CSV or something. Or: http://lua-users.org/wiki/PickleTable
|
|
|
09-06-2018, 01:57 PM
|
#17
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
Or you use
Keyname_arrayidx
Todonote_001="who you gonna call"
Todonote_002="lokasenna"
|
|
|
09-06-2018, 10:15 PM
|
#18
|
Human being with feelings
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 813
|
Quote:
Originally Posted by Lokasenna
|
Are looking at PickleTable and see "VersionNotice: table.getn is deprecated in Lua 5.1.". What Lua version is used in Reaper/Reascripts?
Last edited by tompad; 09-07-2018 at 08:51 AM.
|
|
|
09-06-2018, 11:44 PM
|
#19
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 4,967
|
|
|
|
09-07-2018, 08:51 AM
|
#20
|
Human being with feelings
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 813
|
Quote:
Originally Posted by cfillion
|
After reading link I feel like Manuel in Faulty Tower ....QUE?
...or....do you mean that table.getn is replaced by #table?
If so, can I use the PickleTable if I replace the code table.getn
in PickleTable with #table.....is it so simple easy?
Why isn't PickleTable updated with this?
|
|
|
09-07-2018, 09:09 AM
|
#21
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 4,967
|
Quote:
Originally Posted by tompad
do you mean that table.getn is replaced by #table?
|
Yes. As stated in the Lua 5.1 manual under "Incompatibilities with the Previous Version":
Quote:
Function table.setn was deprecated. Function table.getn corresponds to the new length operator (#); use the operator instead of the function.
|
|
|
|
09-07-2018, 09:24 AM
|
#22
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Be aware that # only works for contiguous indexed tables, like:
Code:
local t = {5, 8, 9, 10}
Msg(#t)
--> 4
You'll get weird and inconsistent values here:
Code:
local t = {a = 4, b = 8, [6] = 8, flag = true}
Msg(#t}
--> 0
To get a length for the latter, you have to loop through pairs(t) yourself and count them up.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 08:30 PM.
|