on master help sign in
Remove the .txt suffix from tutor
c2e4108Blaž Hrastnik
book/src/usage.md+1−1
@@ -2,7 +2,7 @@
2
2
3(Currently not fully documented, see the [keymappings](./keymap.md) list for more.)
3(Currently not fully documented, see the [keymappings](./keymap.md) list for more.)
4
4
5−See [tutor.txt](https://github.com/helix-editor/helix/blob/master/runtime/tutor.txt) (accessible via `hx --tutor` or `:tutor`) for a vimtutor-like introduction.
5+See [tutor](https://github.com/helix-editor/helix/blob/master/runtime/tutor) (accessible via `hx --tutor` or `:tutor`) for a vimtutor-like introduction.
6
6
7## Registers
7## Registers
8
8
helix-term/src/application.rs+1−1
@@ -157,7 +157,7 @@ impl Application {
157 compositor.push(editor_view);
157 compositor.push(editor_view);
158
158
159 if args.load_tutor {
159 if args.load_tutor {
160− let path = helix_loader::runtime_dir().join("tutor.txt");
160+ let path = helix_loader::runtime_dir().join("tutor");
161 editor.open(&path, Action::VerticalSplit)?;
161 editor.open(&path, Action::VerticalSplit)?;
162 // Unset path to prevent accidentally saving to the original tutor file.
162 // Unset path to prevent accidentally saving to the original tutor file.
163 doc_mut!(editor).set_path(None)?;
163 doc_mut!(editor).set_path(None)?;
helix-term/src/commands/typed.rs+1−1
@@ -1147,7 +1147,7 @@ fn tutor(
1147 return Ok(());
1147 return Ok(());
1148 }
1148 }
1149
1149
1150− let path = helix_loader::runtime_dir().join("tutor.txt");
1150+ let path = helix_loader::runtime_dir().join("tutor");
1151 cx.editor.open(&path, Action::Replace)?;
1151 cx.editor.open(&path, Action::Replace)?;
1152 // Unset path to prevent accidentally saving to the original tutor file.
1152 // Unset path to prevent accidentally saving to the original tutor file.
1153 doc_mut!(cx.editor).set_path(None)?;
1153 doc_mut!(cx.editor).set_path(None)?;
runtime/tutor.txt → runtime/tutorrenamed

The content is the same.