diff --git a/resources/index.html b/resources/index.html
index 5b9968a..c73fbb0 100644
--- a/resources/index.html
+++ b/resources/index.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Notes</title>
+ <title>jottings</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
@@ -11,7 +11,7 @@
<div class="app-wrapper">
<div class="saved-column" id="savedColumn">
<div class="column-header">
- <h2>Saved Notes</h2>
+ <h2>Saved Jots</h2>
<button class="toggle-btn" id="toggleBtn">−</button>
</div>
<div class="docs-content">
@@ -20,7 +20,7 @@
</div>
<div class="content-column">
- <h1>Notes</h1>
+ <h1>jottings</h1>
<textarea id="editor" spellcheck="true" placeholder="Write something..."></textarea>
<br>
<div id="countContainer">
@@ -28,8 +28,8 @@
<div id="charCount">0 characters</div>
</div>
<div id="linkBtnContainer">
- <button class="link-btn" id="saveBtn">Save Note</button>
- <button class="link-btn" id="newBtn">New Note</button>
+ <button class="link-btn" id="saveBtn">Save Jot</button>
+ <button class="link-btn" id="newBtn">New Jot</button>
<button class="link-btn" id="exportBtn">Export as TXT</button>
</div>
<div id="docStatus"></div>
diff --git a/resources/js/app.js b/resources/js/app.js
index 0c98bca..28dbae7 100644
--- a/resources/js/app.js
+++ b/resources/js/app.js
@@ -1,6 +1,6 @@
// Storage paths
- const DATA_FILE = 'notes.json';
- const METADATA_FILE = 'notes.meta.json';
+ const DATA_FILE = 'jottings.json';
+ const METADATA_FILE = 'jottings.meta.json';
// Global state
let currentDocId = null;
@@ -10,7 +10,7 @@ let autoSaveTimer = null;
// Helper: write to user's home directory
async function getDataPath(filename) {
const home = await Neutralino.os.getEnv('HOME');
- const appDir = `${home}/.local/share/notes`;
+ const appDir = `${home}/.local/share/jottings`;
// Create directories one level at a time
const localDir = `${home}/.local`;
@@ -31,7 +31,7 @@ async function getDataPath(filename) {
return `${appDir}/${filename}`;
}
- // Read all notes from JSON file
+ // Read all jottings from JSON file
async function readNotes() {
try {
const path = await getDataPath(DATA_FILE);
@@ -45,7 +45,7 @@ async function readNotes() {
}
}
- // Write notes to JSON file
+ // Write jottings to JSON file
async function writeNotes(notes) {
const path = await getDataPath(DATA_FILE);
await Neutralino.filesystem.writeFile(path, JSON.stringify(notes, null, 2));
@@ -89,7 +89,7 @@ async function loadDocuments() {
try {
notes = await readNotes();
} catch (e) {
- console.error("Could not load notes:", e);
+ console.error("Could not load jottings:", e);
return;
}
@@ -252,7 +252,7 @@ async function renameDocument(id, currentName) {
}
}
- // Export current note as TXT file
+ // Export current jotting as TXT file
async function exportDocument() {
const text = document.getElementById("editor").value;
if (!text.trim()) {
@@ -338,7 +338,7 @@ toggleBtn.addEventListener("click", function() {
toggleBtn.textContent = savedColumn.classList.contains("collapsed") ? "+" : "−";
});
- // Auto-save on input (existing notes only)
+ // Auto-save on input (existing jottings only)
document.getElementById("editor").addEventListener("input", function() {
updateCounts(this.value);