@fresh-editor/fresh-editor 0.2.25 → 0.3.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.
@@ -33,6 +33,7 @@
33
33
  "line_numbers": true,
34
34
  "relative_line_numbers": false,
35
35
  "highlight_current_line": true,
36
+ "highlight_current_column": false,
36
37
  "line_wrap": true,
37
38
  "wrap_indent": true,
38
39
  "wrap_column": null,
@@ -65,6 +66,7 @@
65
66
  "show_horizontal_scrollbar": false,
66
67
  "show_tilde": true,
67
68
  "use_terminal_bg": false,
69
+ "set_window_title": true,
68
70
  "cursor_style": "default",
69
71
  "rulers": [],
70
72
  "whitespace_show": true,
@@ -98,6 +100,7 @@
98
100
  "auto_save_enabled": false,
99
101
  "auto_save_interval_secs": 30,
100
102
  "hot_exit": true,
103
+ "restore_previous_session": true,
101
104
  "recovery_enabled": true,
102
105
  "auto_recovery_save_interval_secs": 2,
103
106
  "auto_revert_poll_interval_ms": 2000,
@@ -122,7 +125,7 @@
122
125
  "show_hidden": false,
123
126
  "show_gitignored": false,
124
127
  "custom_ignore_patterns": [],
125
- "width": 0.30000001192092896,
128
+ "width": "30%",
126
129
  "preview_tabs": true
127
130
  }
128
131
  },
@@ -145,7 +148,8 @@
145
148
  "description": "Terminal settings",
146
149
  "$ref": "#/$defs/TerminalConfig",
147
150
  "default": {
148
- "jump_to_end_on_output": true
151
+ "jump_to_end_on_output": true,
152
+ "shell": null
149
153
  }
150
154
  },
151
155
  "keybindings": {
@@ -282,6 +286,12 @@
282
286
  "default": true,
283
287
  "x-section": "Display"
284
288
  },
289
+ "highlight_current_column": {
290
+ "description": "Highlight the column containing the cursor",
291
+ "type": "boolean",
292
+ "default": false,
293
+ "x-section": "Display"
294
+ },
285
295
  "line_wrap": {
286
296
  "description": "Wrap long lines to fit the window width (default for new views)",
287
297
  "type": "boolean",
@@ -399,6 +409,12 @@
399
409
  "default": false,
400
410
  "x-section": "Display"
401
411
  },
412
+ "set_window_title": {
413
+ "description": "Update the terminal window title (via OSC 2) to reflect the active buffer.\nWhen enabled, Fresh sets the terminal/tab title to \"<file> — Fresh\" as\nyou switch buffers. Harmless on terminals that don't understand the\nescape sequence — they silently ignore it.\nDefault: true",
414
+ "type": "boolean",
415
+ "default": true,
416
+ "x-section": "Display"
417
+ },
402
418
  "cursor_style": {
403
419
  "description": "Cursor style for the terminal cursor.\nOptions: blinking_block, steady_block, blinking_bar, steady_bar, blinking_underline, steady_underline\nDefault: blinking_block",
404
420
  "$ref": "#/$defs/CursorStyle",
@@ -614,6 +630,12 @@
614
630
  "default": true,
615
631
  "x-section": "Recovery"
616
632
  },
633
+ "restore_previous_session": {
634
+ "description": "Whether to auto-open previously opened files (session restore) when\nstarting Fresh in a directory. When enabled (the default), tabs,\nsplits, cursor positions and the file explorer state are restored\nfrom the last clean exit in the same working directory. When\ndisabled, Fresh starts with a clean workspace. The workspace file\non disk is still written on exit, so re-enabling this setting picks\nup whatever state was saved at the most recent clean exit. The\n`--no-restore` CLI flag is a stronger override: it skips both\nrestoring and saving the workspace.\nDefault: true",
635
+ "type": "boolean",
636
+ "default": true,
637
+ "x-section": "Recovery"
638
+ },
617
639
  "recovery_enabled": {
618
640
  "description": "Whether to enable file recovery (Emacs-style auto-save)\nWhen enabled, buffers are periodically saved to recovery files\nso they can be recovered if the editor crashes.",
619
641
  "type": "boolean",
@@ -820,6 +842,10 @@
820
842
  {
821
843
  "value": "{clock}",
822
844
  "name": "Clock"
845
+ },
846
+ {
847
+ "value": "{remote}",
848
+ "name": "Remote Indicator"
823
849
  }
824
850
  ]
825
851
  },
@@ -874,10 +900,9 @@
874
900
  "default": []
875
901
  },
876
902
  "width": {
877
- "description": "Width of file explorer as percentage (0.0 to 1.0)",
878
- "type": "number",
879
- "format": "float",
880
- "default": 0.30000001192092896
903
+ "description": "File explorer width. Either a percent (`\"30%\"`, 0–100) or an\nabsolute column count (`\"24\"`). Legacy numeric forms are still\naccepted on read: a bare integer is treated as percent, and a\nfractional number in `[0, 1]` is treated as a legacy percent\nfraction (e.g. `0.3` → 30%).",
904
+ "$ref": "#/$defs/ExplorerWidth",
905
+ "default": "30%"
881
906
  },
882
907
  "preview_tabs": {
883
908
  "description": "Open files in a \"preview\" (ephemeral) tab on single-click in the\nfile explorer. The preview tab is replaced by the next single-click\ninstead of accumulating tabs. Editing the file, double-clicking\n(or pressing Enter) on it in the explorer, or dragging its tab\npromotes the tab to a permanent tab.\nDefault: true",
@@ -886,6 +911,11 @@
886
911
  }
887
912
  }
888
913
  },
914
+ "ExplorerWidth": {
915
+ "description": "Either a percent like \"30%\" (0–100) or an absolute column count like \"24\".",
916
+ "type": "string",
917
+ "pattern": "^(100%|[1-9]?[0-9]%|\\d+)$"
918
+ },
889
919
  "FileBrowserConfig": {
890
920
  "description": "File browser configuration (for Open File dialog)",
891
921
  "type": "object",
@@ -921,9 +951,42 @@
921
951
  "description": "When viewing terminal scrollback and new output arrives,\nautomatically jump back to terminal mode (default: true)",
922
952
  "type": "boolean",
923
953
  "default": true
954
+ },
955
+ "shell": {
956
+ "description": "Override the shell used by the integrated terminal.\n\nWhen unset (the default), Fresh launches the shell named by the\n`$SHELL` environment variable (or the platform default if `$SHELL`\nis empty). Set this to run a different program — for example a\nwrapper script that forces an interactive shell — without having\nto change `$SHELL` for the whole process, which other features\nsuch as `format_on_save` also depend on.\n\nOnly affects local authorities; plugin-provided authorities\n(e.g. `docker exec`) keep their own wrapper.",
957
+ "anyOf": [
958
+ {
959
+ "$ref": "#/$defs/TerminalShellConfig"
960
+ },
961
+ {
962
+ "type": "null"
963
+ }
964
+ ],
965
+ "default": null
924
966
  }
925
967
  }
926
968
  },
969
+ "TerminalShellConfig": {
970
+ "description": "Explicit shell command + args for the integrated terminal.",
971
+ "type": "object",
972
+ "properties": {
973
+ "command": {
974
+ "description": "Executable to launch (e.g. `/usr/bin/fish`, `bash`, or a wrapper\nscript). Resolved via `$PATH` when not absolute.",
975
+ "type": "string"
976
+ },
977
+ "args": {
978
+ "description": "Arguments passed before any user input.",
979
+ "type": "array",
980
+ "items": {
981
+ "type": "string"
982
+ },
983
+ "default": []
984
+ }
985
+ },
986
+ "required": [
987
+ "command"
988
+ ]
989
+ },
927
990
  "Keybinding": {
928
991
  "description": "Keybinding definition",
929
992
  "type": "object",