Download
(3 Kb)
Download
Updated: 08/29/22 02:53 PM
Pictures
File Info
Compatibility:
Lost Depths (8.1.5)
Updated:08/29/22 02:53 PM
Created:08/29/22 02:53 PM
Monthly downloads:28
Total downloads:1,597
Favorites:1
MD5:
Nyghts Notebook
Version: 1.0
by: Nyght [More]
Nyght’s Notebook is a simple way to make a note of things you don’t wish to forget and recall later.
Each character has their own notebooks.

This notebook is done entirely through the chat system and there is no ‘interface’ for it.

The simple tool only uses 3 commands.

1) Adding a note to a notebook is done with the command:
/nn+ <notebook name>:<note to record>
IE. /nn+ food:flour

A Colon is used to separate the name of the notebook from the note to leave.

2) Removing a note from a notebook is done with the command:
/nn- <notebook name>:<note to record>
IE. /nn- food:flour

An entire notebook can be deleted with an * for the note.
IE. /nn- food:*

Note: Deleting all the notes does not delete the notebook.

3) Viewing Notes (to recall what notes you have entered in a notebook) is done with the command:
/nn <notebook name>
IE. /nn food:

Note: EACH note that was added will appear on a separate line in chat.
For example if you do the following:
/nn+ food:flour
/nn+ foodotato
/nn+ food:scrib jelly
Then do:
/nn food
You will see the following in chat:
Notebook: ‘food’
flour
potato
scrib jelly

But, if instead you did this:
/nn+ food: flour, potato, and scrib jelly
Then do:
/nn food
You will see the following in chat:
Notebook: ‘food’
flour, potato, scrib jelly

Viewing All Notebook Names (to recall what notebooks you have created) is done with the command:
/nn

Please understand, creating this add-on was just a simple way for me to easily see what food, ingredients, gear and other things I was collecting.
It can be convenient for any kind of note keeping, including your own personal notes about other players/guilds.

It really is meant to be just a simple notebook.

That being said – remember, spelling will matter. If you make a typo when adding an item to a list you’ll have to delete the item by spelling it with the typo.
You might get an extra list with a typo.
Trying to remove things may generate the error that it could not be found if you make a mistake in spelling.
THIS INCLUDES CASE. IE. Food is not the same as food.

Because this is entirely in the chat system I recommend setting up a tab that has all chat options disabled so you only see the output from the add-on and not from other chats.
At least while you are creating initial notebooks.
Post A Reply Comment Options
Unread 08/30/22, 12:28 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4989
File comments: 6040
Uploads: 78
Nice idea, thanks for the handy addon.

About the upper/lower case issues:
You can try to just lwoercase the search term and the saved notebook text before comparing them.
local myLowerString = string.lower(strVar)

If you just do something like
if mySavedVariables.notebooks[searchTerm] ~= nil then you just need to do it like this
Lua Code:
  1. local myLowerSearchTerm = string.lower(searchTerm)
  2. if mySavedVariables.notebooks[myLowerSearchTerm] ~= nil then
  3. ...
  4. end
If you use string.find there is a parameter to do a plain text search
string.find(stringToSearch, searchTerm, offset, true) --last boolean is used to search for plain text.
If stringToSearch and searchTerm are both lowercase it will work best.
Last edited by Baertram : 08/30/22 at 12:30 AM.
Report comment to moderator  
Reply With Quote
Unread 08/31/22, 04:51 AM  
Nyght
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 1
Uploads: 1
Originally Posted by Baertram
Nice idea, thanks for the handy addon.

About the upper/lower case issues:
You can try to just lwoercase the search term and the saved notebook text before comparing them.
local myLowerString = string.lower(strVar)

If you just do something like
if mySavedVariables.notebooks[searchTerm] ~= nil then you just need to do it like this
Lua Code:
  1. local myLowerSearchTerm = string.lower(searchTerm)
  2. if mySavedVariables.notebooks[myLowerSearchTerm] ~= nil then
  3. ...
  4. end
If you use string.find there is a parameter to do a plain text search
string.find(stringToSearch, searchTerm, offset, true) --last boolean is used to search for plain text.
If stringToSearch and searchTerm are both lowercase it will work best.
Thank you for the feedback, I originally created this without intent of posting it (IE. just for me) but I told a guild mate about it and she wanted it.
I thought about the tolowercase. At the time I was only thinking of the notebook title - which I take advantage of in my note keeping (IE. 'Food' is what this character collects and 'food' is what my other characters need.) But, I could see the advantage of doing the comparison in lowercase - especially for the removing of a note.

I'll probably add an option to "edit" too, I can see how that might be helpful. I just delete and add again.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: