-
-
Notifications
You must be signed in to change notification settings - Fork 123
Feature: external editor support #123 #177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d3eb8a3
268dd17
8b9833b
a714b07
ea820dd
9ea3b36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,6 +77,7 @@ select = "Enter" | |
| create_element = "n" | ||
| delete_element = "d" | ||
| edit_element = "Enter" # Edit query param, header, basic auth, bearer token | ||
| alt_edit_element = "Shift-R" # Edit query param, header, basic auth, bearer token via system editor | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| rename_element = "r" # Only used in the collections list (main menu) | ||
| toggle_element = "t" # Only used in tables (Query params, headers, cookies) | ||
| duplicate_element = "Ctrl-d" | ||
|
|
@@ -85,6 +86,7 @@ duplicate_element = "Ctrl-d" | |
| param_next_tab = "Tab" | ||
|
|
||
| change_url = "u" | ||
| alt_change_url = "Shift-U" | ||
| change_method = "m" | ||
| request_settings = "s" | ||
|
|
||
|
|
@@ -108,4 +110,4 @@ scroll_right = "Ctrl-Right" | |
|
|
||
| yank_response_part = "y" # Used to yank the current result tab (e.g. body, headers, cookies) | ||
|
|
||
| result_next_tab = "Shift-BackTab" # Will use param_next_tab depending on the selected view | ||
| result_next_tab = "Shift-BackTab" # Will use param_next_tab depending on the selected view | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No line return needed |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,6 +77,7 @@ select = "Enter" | |
| create_element = "n" | ||
| delete_element = "d" | ||
| edit_element = "Enter" # Edit query param, header, basic auth, bearer token | ||
| alt_edit_element = "Shift-R" # Edit query param, header, basic auth, bearer token via system editor | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| rename_element = "r" # Only used in the collections list (main menu) | ||
| toggle_element = "t" # Only used in tables (Query params, headers, cookies) | ||
| duplicate_element = "Ctrl-d" | ||
|
|
@@ -85,6 +86,7 @@ duplicate_element = "Ctrl-d" | |
| param_next_tab = "Tab" | ||
|
|
||
| change_url = "u" | ||
| alt_change_url = "Shift-U" | ||
| change_method = "m" | ||
| request_settings = "s" | ||
|
|
||
|
|
@@ -108,4 +110,4 @@ scroll_right = "Shift-Right" | |
|
|
||
| yank_response_part = "y" # Used to yank the current result tab (e.g. body, headers, cookies) | ||
|
|
||
| result_next_tab = "Shift-BackTab" # Will use param_next_tab depending on the selected view | ||
| result_next_tab = "Shift-BackTab" # Will use param_next_tab depending on the selected view | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No line return needed |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,6 +58,7 @@ select = "Enter" | |
| create_element = "Shift-N" | ||
| delete_element = "Shift-D" | ||
| edit_element = "Enter" # Edit query param, header, basic auth, bearer token | ||
| alt_edit_element = "Shift-E" # Edit query param, header, basic auth, bearer token via system editor | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| rename_element = "Shift-R" # Only used in the collections list (main menu) | ||
| toggle_element = "Shift-T" # Only used in tables (Query params, headers, cookies) | ||
| duplicate_element = "Shift-Y" | ||
|
|
@@ -66,6 +67,7 @@ duplicate_element = "Shift-Y" | |
| param_next_tab = "t" | ||
|
|
||
| change_url = "Shift-U" | ||
| alt_change_url = "Ctrl-U" | ||
| change_method = "Shift-M" | ||
| request_settings = "Shift-S" | ||
|
|
||
|
|
@@ -89,4 +91,4 @@ scroll_right = "Ctrl-l" | |
|
|
||
| yank_response_part = "Shift-Y" # Used to yank the current result tab (e.g. body, headers, cookies) | ||
|
|
||
| result_next_tab = "Ctrl-t" # Will use param_next_tab depending on the selected view | ||
| result_next_tab = "Ctrl-t" # Will use param_next_tab depending on the selected view | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No line return needed |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -111,4 +111,4 @@ pub fn find_file_format_in_content_type(headers: &Vec<(String, String)>) -> Opti | |
| else { | ||
| return None; | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -361,6 +361,7 @@ impl AppState { | |
| Documentation(EventKeyBinding::new(vec![key_bindings.generic.display_help], "Display help", Some("Help"))), | ||
|
|
||
| EditUrl(EventKeyBinding::new(vec![key_bindings.request_selected.change_url], "Edit URL", Some("URL"))), | ||
| EditUrlSystemEditor(EventKeyBinding::new(vec![key_bindings.request_selected.alt_change_url], "Edit URL via system editor", Some("URL"))), | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| EditMethod(EventKeyBinding::new(vec![key_bindings.request_selected.change_method], "Change method", Some("Method"))), | ||
|
|
||
| EditSettings(EventKeyBinding::new(vec![key_bindings.request_selected.request_settings], "Request settings", None)), | ||
|
|
@@ -447,6 +448,7 @@ impl AppState { | |
| ], | ||
| RequestParamsTabs::Body => vec![ | ||
| EditRequestBody(EventKeyBinding::new(vec![key_bindings.generic.list_and_table_actions.edit_element], "Edit body", None)), | ||
| EditRequestBodySystemEditor(EventKeyBinding::new(vec![key_bindings.generic.list_and_table_actions.alt_edit_element], "Edit body via system editor", None)), | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| RequestBodyTableMoveUp(EventKeyBinding::new(vec![key_bindings.generic.navigation.move_cursor_up], "Move up", None)), | ||
| RequestBodyTableMoveDown(EventKeyBinding::new(vec![key_bindings.generic.navigation.move_cursor_down], "Move down", None)), | ||
|
|
@@ -463,6 +465,7 @@ impl AppState { | |
| ], | ||
| RequestParamsTabs::Scripts => vec![ | ||
| EditRequestScript(EventKeyBinding::new(vec![key_bindings.generic.list_and_table_actions.edit_element], "Edit request script", Some("Edit"))), | ||
| EditRequestScriptSystemEditor(EventKeyBinding::new(vec![key_bindings.generic.list_and_table_actions.alt_edit_element], "Edit request script via system editor", None)), | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| RequestScriptMove(EventKeyBinding::new(vec![key_bindings.generic.navigation.move_cursor_up], "Move up", Some("Up"))), | ||
| RequestScriptMove(EventKeyBinding::new(vec![key_bindings.generic.navigation.move_cursor_down], "Move down", Some("Down"))), | ||
| ] | ||
|
|
@@ -876,4 +879,4 @@ impl App<'_> { | |
| _ => false | ||
| } | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No line return needed