Rename and simple insert_or_select_*_tab commands.

master
Andy Stewart 6 years ago
parent 766d690682
commit fe2cb40869
  1. 10
      core/browser.py
  2. 8
      eaf.el

@ -463,7 +463,7 @@ class BrowserBuffer(Buffer):
"history_backward", "history_forward", "new_blank_page", "open_download_manage_page",
"refresh_page", "zoom_in", "zoom_out", "zoom_reset", "save_as_bookmark",
"download_youtube_video", "download_youtube_audio", "toggle_device",
"save_as_pdf", "view_source", "save_as_single_file"]:
"save_as_pdf", "view_source", "save_as_single_file", "select_left_tab", "select_right_tab"]:
self.build_insert_or_do(method_name)
def notify_print_message(self, file_path, success):
@ -824,14 +824,6 @@ class BrowserBuffer(Buffer):
def insert_or_close_buffer(self):
self.request_close_buffer()
@insert_or_do
def insert_or_goto_left_tab(self):
self.select_left_tab()
@insert_or_do
def insert_or_goto_right_tab(self):
self.select_right_tab()
@insert_or_do
def insert_or_open_url(self):
self.eval_in_emacs.emit('''(call-interactively 'eaf-open-browser-with-history)''')

@ -287,8 +287,8 @@ Try not to modify this alist directly. Use `eaf-setq' to modify instead."
("M->" . "scroll_to_bottom")
("M-t" . "new_blank_page")
("SPC" . "insert_or_scroll_up_page")
("J" . "insert_or_goto_left_tab")
("K" . "insert_or_goto_right_tab")
("J" . "insert_or_select_left_tab")
("K" . "insert_or_select_right_tab")
("j" . "insert_or_scroll_up")
("k" . "insert_or_scroll_down")
("h" . "insert_or_scroll_left")
@ -544,8 +544,8 @@ Try not to modify this alist directly. Use `eaf-setq' to modify instead."
("M->" . "scroll_to_bottom")
("M-t" . "new_blank_page")
("SPC" . "insert_or_scroll_up_page")
("J" . "insert_or_goto_left_tab")
("K" . "insert_or_goto_right_tab")
("J" . "insert_or_select_left_tab")
("K" . "insert_or_select_right_tab")
("j" . "insert_or_scroll_up")
("k" . "insert_or_scroll_down")
("h" . "insert_or_scroll_left")

Loading…
Cancel
Save