Add open permalink to line action (#7562)

Release Notes:

- Added `open permalink to line` action.

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
Daniel Schmidt
2024-02-08 11:40:38 -05:00
committed by GitHub
co-authored by Marshall Bowers
parent 17c203fef9
commit b25044393e
3 changed files with 29 additions and 1 deletions
+1
View File
@@ -278,6 +278,7 @@ impl EditorElement {
register_action(view, cx, Editor::copy_relative_path);
register_action(view, cx, Editor::copy_highlight_json);
register_action(view, cx, Editor::copy_permalink_to_line);
register_action(view, cx, Editor::open_permalink_to_line);
register_action(view, cx, |editor, action, cx| {
if let Some(task) = editor.format(action, cx) {
task.detach_and_log_err(cx);