Removing "Evaluate All Below" shortcut functionality (#621)

This commit is contained in:
Matheus Cumpian 2021-10-19 18:36:44 -03:00 committed by GitHub
parent 33f13c03f9
commit fe77823685
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 23 deletions

View file

@ -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", {

View file

@ -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

View file

@ -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"},