@@ -318,6 +318,7 @@ impl MappableCommand {
318318 redo, "Redo change",
319319 earlier, "Move backward in history",
320320 later, "Move forward in history",
321+ commit_undo_checkpoint, "Commit changes to a new checkpoint",
321322 yank, "Yank selection",
322323 yank_joined_to_clipboard, "Join and yank selections to clipboard",
323324 yank_main_selection_to_clipboard, "Yank main selection to clipboard",
@@ -3001,6 +3002,11 @@ fn later(cx: &mut Context) {
30013002 }
30023003}
30033004
3005+fn commit_undo_checkpoint(cx: &mut Context) {
3006+ let (view, doc) = current!(cx.editor);
3007+ doc.append_changes_to_history(view.id);
3008+}
3009+
30043010// Yank / Paste
30053011
30063012fn yank(cx: &mut Context) {