mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-09-20 10:05:57 +08:00
Removing "Evaluate All Below" shortcut functionality (#621)
This commit is contained in:
parent
33f13c03f9
commit
fe77823685
|
@ -335,8 +335,6 @@ function handleDocumentKeyDown(hook, event) {
|
|||
queueAllCellsEvaluation(hook);
|
||||
} else if (keyBuffer.tryMatch(["e", "s"])) {
|
||||
queueFocusedSectionEvaluation(hook);
|
||||
} else if (keyBuffer.tryMatch(["e", "j"])) {
|
||||
queueChildCellsEvaluation(hook);
|
||||
} else if (keyBuffer.tryMatch(["s", "s"])) {
|
||||
toggleSectionsList(hook);
|
||||
} else if (keyBuffer.tryMatch(["s", "u"])) {
|
||||
|
@ -640,14 +638,6 @@ function queueFocusedSectionEvaluation(hook) {
|
|||
}
|
||||
}
|
||||
|
||||
function queueChildCellsEvaluation(hook) {
|
||||
if (hook.state.focusedCellId) {
|
||||
hook.pushEvent("queue_child_cells_evaluation", {
|
||||
cell_id: hook.state.focusedCellId,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function cancelFocusedCellEvaluation(hook) {
|
||||
if (hook.state.focusedCellId) {
|
||||
hook.pushEvent("cancel_cell_evaluation", {
|
||||
|
|
|
@ -579,18 +579,6 @@ defmodule LivebookWeb.SessionLive do
|
|||
{:noreply, socket}
|
||||
end
|
||||
|
||||
def handle_event("queue_child_cells_evaluation", %{"cell_id" => cell_id}, socket) do
|
||||
with {:ok, cell, _section} <-
|
||||
Notebook.fetch_cell_and_section(socket.private.data.notebook, cell_id) do
|
||||
for {cell, _} <- Notebook.child_cells_with_section(socket.private.data.notebook, cell.id),
|
||||
is_struct(cell, Cell.Elixir) do
|
||||
Session.queue_cell_evaluation(socket.assigns.session.pid, cell.id)
|
||||
end
|
||||
end
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
def handle_event("queue_bound_cells_evaluation", %{"cell_id" => cell_id}, socket) do
|
||||
data = socket.private.data
|
||||
|
||||
|
|
|
@ -96,7 +96,6 @@ defmodule LivebookWeb.SessionLive.ShortcutsComponent do
|
|||
%{seq: ["e", "e"], desc: "Evaluate cell"},
|
||||
%{seq: ["e", "s"], desc: "Evaluate section"},
|
||||
%{seq: ["e", "a"], desc: "Evaluate all stale/new cells", basic: true},
|
||||
%{seq: ["e", "j"], desc: "Evaluate cells below"},
|
||||
%{seq: ["e", "x"], desc: "Cancel cell evaluation"},
|
||||
%{seq: ["s", "s"], desc: "Toggle sections panel"},
|
||||
%{seq: ["s", "u"], desc: "Toggle users panel"},
|
||||
|
|
Loading…
Reference in a new issue