aeph 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/bin/ae +50 -0
- package/package.json +29 -0
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# aeph
|
|
2
|
+
|
|
3
|
+
A minimal TUI markdown editor with task management.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g aeph
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
ae # Open editor
|
|
15
|
+
ae file.md # Open specific file
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Features
|
|
19
|
+
|
|
20
|
+
- 9 document slots
|
|
21
|
+
- Task management (`- [ ]` / `- [x]`)
|
|
22
|
+
- Smart list continuation
|
|
23
|
+
- Tab/Shift+Tab for indentation
|
|
24
|
+
- Auto-save
|
|
25
|
+
- Markdown syntax highlighting
|
|
26
|
+
|
|
27
|
+
## Keyboard Shortcuts
|
|
28
|
+
|
|
29
|
+
| Key | Action |
|
|
30
|
+
|-----|--------|
|
|
31
|
+
| Ctrl+S | Save |
|
|
32
|
+
| Ctrl+Q | Quit |
|
|
33
|
+
| Ctrl+T | Toggle task |
|
|
34
|
+
| Ctrl+N | New task |
|
|
35
|
+
| Ctrl+O | Open document picker |
|
|
36
|
+
| Ctrl+H | Help |
|
|
37
|
+
| Tab | Indent list |
|
|
38
|
+
| Shift+Tab | Unindent list |
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
MIT
|
package/bin/ae
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { execFileSync } = require("child_process");
|
|
4
|
+
const { existsSync } = require("fs");
|
|
5
|
+
const { join } = require("path");
|
|
6
|
+
|
|
7
|
+
const PLATFORMS = {
|
|
8
|
+
"darwin-arm64": "aeph-darwin-arm64",
|
|
9
|
+
"darwin-x64": "aeph-darwin-x64",
|
|
10
|
+
"linux-x64": "aeph-linux-x64",
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
function getBinaryPath() {
|
|
14
|
+
const platformKey = `${process.platform}-${process.arch}`;
|
|
15
|
+
const packageName = PLATFORMS[platformKey];
|
|
16
|
+
|
|
17
|
+
if (!packageName) {
|
|
18
|
+
console.error(`Unsupported platform: ${platformKey}`);
|
|
19
|
+
console.error(`Supported platforms: ${Object.keys(PLATFORMS).join(", ")}`);
|
|
20
|
+
process.exit(1);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
try {
|
|
24
|
+
const packagePath = require.resolve(`${packageName}/package.json`);
|
|
25
|
+
const binPath = join(packagePath, "..", "bin", "ae");
|
|
26
|
+
|
|
27
|
+
if (existsSync(binPath)) {
|
|
28
|
+
return binPath;
|
|
29
|
+
}
|
|
30
|
+
} catch (e) {
|
|
31
|
+
// Package not found
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
console.error(`Could not find binary for platform: ${platformKey}`);
|
|
35
|
+
console.error(`Please ensure ${packageName} is installed.`);
|
|
36
|
+
process.exit(1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const binPath = getBinaryPath();
|
|
40
|
+
|
|
41
|
+
try {
|
|
42
|
+
execFileSync(binPath, process.argv.slice(2), {
|
|
43
|
+
stdio: "inherit",
|
|
44
|
+
});
|
|
45
|
+
} catch (e) {
|
|
46
|
+
if (e.status !== undefined) {
|
|
47
|
+
process.exit(e.status);
|
|
48
|
+
}
|
|
49
|
+
throw e;
|
|
50
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aeph",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A minimal TUI markdown editor with task management",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/siki-712/aeph.git"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"bin": {
|
|
11
|
+
"ae": "bin/ae"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"bin"
|
|
15
|
+
],
|
|
16
|
+
"optionalDependencies": {
|
|
17
|
+
"aeph-darwin-arm64": "0.1.0",
|
|
18
|
+
"aeph-darwin-x64": "0.1.0",
|
|
19
|
+
"aeph-linux-x64": "0.1.0"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"markdown",
|
|
23
|
+
"editor",
|
|
24
|
+
"tui",
|
|
25
|
+
"terminal",
|
|
26
|
+
"todo",
|
|
27
|
+
"task"
|
|
28
|
+
]
|
|
29
|
+
}
|