Skip to content

Instantly share code, notes, and snippets.

@WebInspectInc
Last active December 24, 2023 06:29
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WebInspectInc/a0f4418775af81432b4c365258d0be61 to your computer and use it in GitHub Desktop.
Save WebInspectInc/a0f4418775af81432b4c365258d0be61 to your computer and use it in GitHub Desktop.
Sublime Merge Commands

Sublime Merge Commands

Lots of commands available for keybindings in Sublime Merge. Not a comprehensive list, but a decent start.

  • exit_blame
  • exit_tree_mode
  • toggle_search
  • hide_command_status
  • hide_overlay
  • open_preferences
  • close_preferences
  • prompt_new_repository
  • prompt_open_repository
  • quick_switch_repository
  • new_window
  • show_command_palette
  • checkout_branch (used after show_command_palette)
  • create_branch (used after show_command_palette)
  • toggle_search
  • navigate_back
  • navigate_forward
  • move_to (used for text control)
  • refresh
  • navigate_to_head
  • navigate_to_commit_message
  • focus_left
  • focus_middle
  • focus_right
  • toggle_merged_vs_base
  • clone (used on the clone_page)
  • merge_branch (used in the merge_helper)
  • stage_hunk (used if is_diff and not is_staged)
  • unstage_hunk (used if is_diff and is_staged)
  • discard_hunk (used if is_diff)
  • discard_file (used if is_diff)
  • stage_file
  • unstage_file
  • left_delete (used for text_control)
  • toggle_select_file
  • toggle_collapsed
  • toggle_selected
  • open_in_editor
  • commit (used in commit mode)
  • edit_commit
  • save_commit_message (used in is_editing_commit)
  • cancel_edit_commit_message (used in is_editing_commit)
  • wrap_lines (an option in the edit menu)
  • pull (can be used alone, or with the command palette)
  • stash
  • pop_stash
  • stage_all
  • stage_all_modified
  • unstage_all
  • save (used in merge_mode)
  • next_conflict (used in merge_mode)
  • prev_conflict (used in merge_mode)
  • use_left_hunk (used in merge_mode)
  • use_right_hunk (used in merge_mode
  • toggle_location_bar
@robertgc
Copy link

robertgc commented May 10, 2023

  • quick_open_repository: File > Open Recent > Select...

@thebradness
Copy link

Thank you!

Is there a larger list that these came from?
Perhaps something that includes the args names?
(I can't find anything like this in the official docs.)

@robertgc
Copy link

Sorry, I only know your list. 😢 I found the command by doing trial and error

@thebradness
Copy link

Sorry, I only know your list. 😢 I found the command by doing trial and error

Oh I was talking to @WebInspectInc. (This isn't my list.)

@WebInspectInc
Copy link
Author

@thebradness I don't know of an official list, that's why I created this 😅 I think you can find it within the application itself, but it's a little tricky. You have to find the packages directory for your OS and unzip the "Default.sublime-package' folder, inside that folder you can see many (if not all) of the default available commands.

@thebradness
Copy link

No problem. That's what I was wondering about - I don't mind digging, I just need a place to start sometimes.
Thanks!

@ivribalko
Copy link

thank you very much for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment