-
Notifications
You must be signed in to change notification settings - Fork 1
Storing your tasks
iKog-js is able to work in two ways; either your tasks are stored locally in your browser's storage, or they can be stored up there in the cloud using Dropbox. When you first launch iKog, you will be asked which storage you want to use. Let's look at local storage first.
This is the easiest way to work. All of your tasks are stored in your browser's web storage; nothing leaves the safety of your PC. This may be important if you are in a work context and you are worried about storing sensitive information out there in cyberspace. If your browser doesn't support this, then sorry, you're not going to be able to use iKog-js. By default tasks are not automatically saved when you create them. To save your tasks, enter the SAVE command. E.g.
SAVE
You can also save the tasks to another file by following the command with the new name. Note that this does not switch to the new file; you will still be working in the original task list.
SAVE my_new_file_name
If you want the tasks saved automatically you can switch on autosave by using the AUTOSAVE or AS command. I.e
AUTOSAVE ON
AS ON
Now every time you add or modify a task, the list will automatically be saved. To switch it off, use AUTOSAVE OFF.
To switch to a new file, you need to open it with the OPEN or O command.
OPEN my_new_file_name
If you put any fancy characters in the file name they will automatically be replaced by underscores.
To get a list of all the local files, use the DIR or LS command.
DIR
To delete a file use the DEL command followed by the name of the file. Note that when you list the files, they will be displayed with the file's name followed by its size and then the full pathname. When using the DEL command, only use the short name. So for example, if your file shows as:
tasks 670 ikog.anon.tasks
you would enter:
DEL tasks
If you select Dropbox as your store, you will be asked to allow iKog-js to connect to your account. If you don't authorise it, then you will not be able to use iKog-js and Dropbox together. Your authorisation will remembered on the PC so you won't need to keep accepting the connection. However, if you don't want your authorisation retained, you can remove it by using the SIGNOUT or LOGOFF command.
When you select Dropbox, your tasks are stored in your Dropbox in the Apps/ikog-js folder. When you open a file, it will be download and moved to local storage. As with local storage, tasks are not automatically saved. So again, to save your tasks, enter the SAVE command. E.g.
SAVE
And like with local storage, you can save your tasks to a new file in Dropbox.
SAVE my_new_file_name
So far this is pretty much the same as local storage. The difference occurs when you switch autosave on. If you switch autosave on using AUTOSAVE ON or the short version, AS ON, tasks are automatically saved. However, they are only stored to the local cache. To store them back to Dropbox, you will still need to use the SAVE command. So what's the point of autosave when you're using Dropbox? It protects you from crashes or if you close your browser without saving. If that happens, when you next try to open your tasks, rather than fetching them from Dropbox, iKog-js will detect the cache and use that instead.
If the old cache is used when you next launch iKog-js but you want to force a download from Dropbox, you will need to remove the cache. To do this, enter the KILL CACHE command. You might want to do this if you have made changes from another PC. If you want to remove all of the caches, including those for tasks you are not working with, just enter KILL ALL CACHES.
To switch to a new file, you need to open it with the OPEN or O command.
OPEN my_new_file_name
If you want to change between local storage and Dropbox, use the USE command. I.e.
USE dropbox
USE local
Note that you can't move tasks around from one store to another. Local storage and Dropbox storage are completely independent operation modes. In general you would pick one and stick with it.