@involvex/fresh-editor 0.1.76 → 0.1.78
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/bin/CHANGELOG.md +1017 -0
- package/bin/LICENSE +117 -0
- package/bin/README.md +248 -0
- package/bin/fresh.exe +0 -0
- package/bin/plugins/README.md +71 -0
- package/bin/plugins/audit_mode.i18n.json +821 -0
- package/bin/plugins/audit_mode.ts +1810 -0
- package/bin/plugins/buffer_modified.i18n.json +67 -0
- package/bin/plugins/buffer_modified.ts +281 -0
- package/bin/plugins/calculator.i18n.json +93 -0
- package/bin/plugins/calculator.ts +770 -0
- package/bin/plugins/clangd-lsp.ts +168 -0
- package/bin/plugins/clangd_support.i18n.json +223 -0
- package/bin/plugins/clangd_support.md +20 -0
- package/bin/plugins/clangd_support.ts +325 -0
- package/bin/plugins/color_highlighter.i18n.json +145 -0
- package/bin/plugins/color_highlighter.ts +304 -0
- package/bin/plugins/config-schema.json +768 -0
- package/bin/plugins/csharp-lsp.ts +147 -0
- package/bin/plugins/csharp_support.i18n.json +80 -0
- package/bin/plugins/csharp_support.ts +170 -0
- package/bin/plugins/css-lsp.ts +143 -0
- package/bin/plugins/diagnostics_panel.i18n.json +236 -0
- package/bin/plugins/diagnostics_panel.ts +642 -0
- package/bin/plugins/examples/README.md +85 -0
- package/bin/plugins/examples/async_demo.ts +165 -0
- package/bin/plugins/examples/bookmarks.ts +329 -0
- package/bin/plugins/examples/buffer_query_demo.ts +110 -0
- package/bin/plugins/examples/git_grep.ts +262 -0
- package/bin/plugins/examples/hello_world.ts +93 -0
- package/bin/plugins/examples/virtual_buffer_demo.ts +116 -0
- package/bin/plugins/find_references.i18n.json +275 -0
- package/bin/plugins/find_references.ts +359 -0
- package/bin/plugins/git_blame.i18n.json +496 -0
- package/bin/plugins/git_blame.ts +707 -0
- package/bin/plugins/git_find_file.i18n.json +314 -0
- package/bin/plugins/git_find_file.ts +300 -0
- package/bin/plugins/git_grep.i18n.json +171 -0
- package/bin/plugins/git_grep.ts +191 -0
- package/bin/plugins/git_gutter.i18n.json +93 -0
- package/bin/plugins/git_gutter.ts +477 -0
- package/bin/plugins/git_log.i18n.json +481 -0
- package/bin/plugins/git_log.ts +1285 -0
- package/bin/plugins/go-lsp.ts +143 -0
- package/bin/plugins/html-lsp.ts +145 -0
- package/bin/plugins/json-lsp.ts +145 -0
- package/bin/plugins/lib/fresh.d.ts +1321 -0
- package/bin/plugins/lib/index.ts +24 -0
- package/bin/plugins/lib/navigation-controller.ts +214 -0
- package/bin/plugins/lib/panel-manager.ts +220 -0
- package/bin/plugins/lib/types.ts +72 -0
- package/bin/plugins/lib/virtual-buffer-factory.ts +130 -0
- package/bin/plugins/live_grep.i18n.json +171 -0
- package/bin/plugins/live_grep.ts +422 -0
- package/bin/plugins/markdown_compose.i18n.json +223 -0
- package/bin/plugins/markdown_compose.ts +630 -0
- package/bin/plugins/merge_conflict.i18n.json +821 -0
- package/bin/plugins/merge_conflict.ts +1810 -0
- package/bin/plugins/path_complete.i18n.json +80 -0
- package/bin/plugins/path_complete.ts +165 -0
- package/bin/plugins/python-lsp.ts +162 -0
- package/bin/plugins/rust-lsp.ts +166 -0
- package/bin/plugins/search_replace.i18n.json +405 -0
- package/bin/plugins/search_replace.ts +484 -0
- package/bin/plugins/test_i18n.i18n.json +67 -0
- package/bin/plugins/test_i18n.ts +18 -0
- package/bin/plugins/theme_editor.i18n.json +3746 -0
- package/bin/plugins/theme_editor.ts +2063 -0
- package/bin/plugins/todo_highlighter.i18n.json +184 -0
- package/bin/plugins/todo_highlighter.ts +206 -0
- package/bin/plugins/typescript-lsp.ts +167 -0
- package/bin/plugins/vi_mode.i18n.json +1549 -0
- package/bin/plugins/vi_mode.ts +2747 -0
- package/bin/plugins/welcome.i18n.json +236 -0
- package/bin/plugins/welcome.ts +76 -0
- package/bin/themes/dark.json +102 -0
- package/bin/themes/dracula.json +62 -0
- package/bin/themes/high-contrast.json +102 -0
- package/bin/themes/light.json +102 -0
- package/bin/themes/nord.json +62 -0
- package/bin/themes/nostalgia.json +102 -0
- package/bin/themes/solarized-dark.json +62 -0
- package/binary-install.js +1 -1
- package/dist/bin/fresh.js +9 -0
- package/dist/binary-install.js +149 -0
- package/dist/binary.js +30 -0
- package/dist/fresh-6yhknp07.exe +0 -0
- package/dist/install.js +158 -0
- package/dist/run-fresh.js +43 -0
- package/package.json +7 -2
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// @bun
|
|
3
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
4
|
+
var __require = import.meta.require;
|
|
5
|
+
|
|
6
|
+
// binary.js
|
|
7
|
+
var require_binary = __commonJS((exports, module) => {
|
|
8
|
+
var os = __require("os");
|
|
9
|
+
function getBinaryInfo() {
|
|
10
|
+
const platform = os.platform();
|
|
11
|
+
const arch = os.arch();
|
|
12
|
+
const targets = {
|
|
13
|
+
"darwin-x64": { target: "x86_64-apple-darwin", ext: "tar.xz" },
|
|
14
|
+
"darwin-arm64": { target: "aarch64-apple-darwin", ext: "tar.xz" },
|
|
15
|
+
"linux-x64": { target: "x86_64-unknown-linux-gnu", ext: "tar.xz" },
|
|
16
|
+
"linux-arm64": { target: "aarch64-unknown-linux-gnu", ext: "tar.xz" },
|
|
17
|
+
"win32-x64": { target: "x86_64-pc-windows-msvc", ext: "zip" }
|
|
18
|
+
};
|
|
19
|
+
const key = `${platform}-${arch}`;
|
|
20
|
+
const info = targets[key];
|
|
21
|
+
if (!info) {
|
|
22
|
+
throw new Error(`Unsupported platform: ${platform}-${arch}`);
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
...info,
|
|
26
|
+
binaryName: platform === "win32" ? "fresh.exe" : "fresh"
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
module.exports = { getBinaryInfo };
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
// run-fresh.js
|
|
33
|
+
var require_run_fresh = __commonJS(() => {
|
|
34
|
+
var __dirname = "D:\\repos\\fresh\\npm-package";
|
|
35
|
+
var { spawn } = __require("child_process");
|
|
36
|
+
var path = __require("path");
|
|
37
|
+
var { getBinaryInfo } = require_binary();
|
|
38
|
+
var info = getBinaryInfo();
|
|
39
|
+
var binPath = path.join(__dirname, "bin", info.binaryName);
|
|
40
|
+
var child = spawn(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
41
|
+
child.on("exit", (code) => process.exit(code || 0));
|
|
42
|
+
});
|
|
43
|
+
export default require_run_fresh();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@involvex/fresh-editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.78",
|
|
4
4
|
"description": "A modern terminal-based text editor with plugin support",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"postinstall": "node install.js",
|
|
15
15
|
"start": "node run-fresh.js",
|
|
16
|
-
"dev": "node run-fresh.js -- --dev"
|
|
16
|
+
"dev": "node run-fresh.js -- --dev",
|
|
17
|
+
"build": "bun build bin/fresh.exe --root . --preload run-fresh.js binary.js binary-install.js install.js --target bun --outdir dist "
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
19
20
|
"binary.js",
|
|
@@ -23,9 +24,13 @@
|
|
|
23
24
|
"plugins/**/*",
|
|
24
25
|
"themes/**/*",
|
|
25
26
|
"README.md",
|
|
27
|
+
"bin/fresh.exe",
|
|
28
|
+
"bin/**/*",
|
|
29
|
+
"dist/**/*",
|
|
26
30
|
"LICENSE",
|
|
27
31
|
"CHANGELOG.md"
|
|
28
32
|
],
|
|
33
|
+
"main": "run-fresh.js",
|
|
29
34
|
"os": ["darwin", "linux", "win32"],
|
|
30
35
|
"cpu": ["x64", "arm64"],
|
|
31
36
|
"keywords": ["editor", "terminal", "cli", "text-editor", "vim"],
|