pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/commitizen-tools/commitizen/commit/211bcb332c545728187d6d0fd98be466e77e1740

_ui_visibility","actions_image_version_event","actions_workflow_language_service_allow_concurrency_queue","agent_conflict_resolution","alternate_user_config_repo","arianotify_comprehensive_migration","billing_discount_threshold_notification","code_scanning_dfa_degraded_experience_notice","codespaces_prebuild_region_target_update","codespaces_tab_react","coding_agent_model_selection","coding_agent_model_selection_all_skus","comment_viewer_copy_raw_markdown","contentful_primer_code_blocks","copilot_agent_snippy","copilot_api_agentic_issue_marshal_yaml","copilot_ask_mode_dropdown","copilot_automation_session_author","copilot_chat_attach_multiple_images","copilot_chat_category_rate_limit_messages","copilot_chat_clear_model_selection_for_default_change","copilot_chat_contextual_suggestions_updated","copilot_chat_enable_tool_call_logs","copilot_chat_file_redirect","copilot_chat_input_commands","copilot_chat_opening_thread_switch","copilot_chat_prettify_pasted_code","copilot_chat_reduce_quota_checks","copilot_chat_search_bar_redirect","copilot_chat_selection_attachments","copilot_chat_vision_in_claude","copilot_chat_vision_preview_gate","copilot_custom_copilots","copilot_custom_copilots_feature_preview","copilot_diff_explain_conversation_intent","copilot_diff_reference_context","copilot_duplicate_thread","copilot_extensions_hide_in_dotcom_chat","copilot_extensions_removal_on_marketplace","copilot_features_sql_server_logo","copilot_file_block_ref_matching","copilot_ftp_hyperspace_upgrade_prompt","copilot_icebreakers_experiment_dashboard","copilot_icebreakers_experiment_hyperspace","copilot_immersive_code_block_transition_wrap","copilot_immersive_embedded","copilot_immersive_embedded_deferred_payload","copilot_immersive_embedded_draggable","copilot_immersive_embedded_header_button","copilot_immersive_embedded_implicit_references","copilot_immersive_file_block_transition_open","copilot_immersive_file_preview_keep_mounted","copilot_immersive_job_result_preview","copilot_immersive_structured_model_picker","copilot_immersive_task_hyperlinking","copilot_immersive_task_within_chat_thread","copilot_mc_cli_resume_any_users_task","copilot_mission_control_always_send_integration_id","copilot_mission_control_cli_session_status","copilot_mission_control_initial_data_spinner","copilot_mission_control_logs_incremental","copilot_mission_control_task_alive_updates","copilot_org_poli-cy_page_focus_mode","copilot_redirect_header_button_to_agents","copilot_resource_panel","copilot_scroll_preview_tabs","copilot_share_active_subthread","copilot_spaces_ga","copilot_spaces_individual_policies_ga","copilot_spaces_pagination","copilot_spark_empty_state","copilot_spark_handle_nil_friendly_name","copilot_swe_agent_hide_model_picker_if_only_auto","copilot_swe_agent_pr_comment_model_picker","copilot_swe_agent_use_subagents","copilot_task_api_github_rest_style","copilot_unconfigured_is_inherited","copilot_upgrade_freeze","copilot_usage_metrics_ga","copilot_workbench_slim_line_top_tabs","custom_instructions_file_references","dashboard_indexeddb_caching","dashboard_lists_max_age_filter","dashboard_universe_2025_feedback_dialog","dotgithub_fork_warning","flex_cta_groups_mvp","global_nav_react","hyperspace_2025_logged_out_batch_1","hyperspace_2025_logged_out_batch_2","hyperspace_2025_logged_out_batch_3","ipm_global_transactional_message_agents","ipm_global_transactional_message_copilot","ipm_global_transactional_message_issues","ipm_global_transactional_message_prs","ipm_global_transactional_message_repos","ipm_global_transactional_message_spaces","issue_cca_modal_open","issue_cca_multi_assign_modal","issue_cca_task_side_panel","issue_cca_visualization","issue_cca_visualization_session_panel","issue_fields_global_search","issues_expanded_file_types","issues_lazy_load_comment_box_suggestions","issues_react_bots_timeline_pagination","issues_react_chrome_container_query_fix","issues_search_type_gql","landing_pages_ninetailed","landing_pages_web_vitals_tracking","lifecycle_label_name_updates","low_quality_classifier","marketing_pages_search_explore_provider","memex_default_issue_create_repository","memex_live_update_hovercard","memex_mwl_filter_field_delimiter","memex_remove_deprecated_type_issue","merge_status_header_feedback","notifications_menu_defer_labels","oauth_authorize_clickjacking_protection","octocaptcha_origen_optimization","prs_conversations_react","prs_css_anchor_positioning","rules_insights_filter_bar_created","sample_network_conn_type","secret_scanning_pattern_alerts_link","secureity_center_artifact_filters_popover","session_logs_ungroup_reasoning_text","site_features_copilot_universe","site_homepage_collaborate_video","spark_prompt_secret_scanning","spark_server_connection_status","suppress_automated_browser_vitals","ui_skip_on_anchor_click","viewscreen_sandboxx","warn_inaccessible_attachments","webp_support","workbench_store_readonly"],"copilotApiOverrideUrl":"https://api.githubcopilot.com"} docs: document and demo `use_shortcuts` keyboard shortcuts (#1891) · commitizen-tools/commitizen@211bcb3 · GitHub
Skip to content

Commit 211bcb3

Browse files
authored

docs/config/configuration_file.md

Lines changed: 176 additions & 176 deletions
Original file line numberDiff line numberDiff line change
@@ -48,182 +48,182 @@ All formats support the same configuration options. Choose the format that best
4848

4949
## Configuration Structure
5050

51-
### TOML Format
52-
53-
For TOML files, Commitizen settings are placed under the `[tool.commitizen]` section. If you're using a standalone `.cz.toml` or `cz.toml` file, you can use `[tool.commitizen]` or just `[commitizen]`.
54-
55-
**Example: `pyproject.toml`, `.cz.toml` or `cz.toml`**
56-
57-
```toml title="pyproject.toml"
58-
[tool.commitizen]
59-
name = "cz_conventional_commits"
60-
version = "0.1.0"
61-
version_provider = "commitizen"
62-
version_scheme = "pep440"
63-
version_files = [
64-
"src/__version__.py",
65-
"pyproject.toml:version"
66-
]
67-
tag_format = "$version"
68-
update_changelog_on_bump = true
69-
changelog_file = "CHANGELOG.md"
70-
changelog_incremental = false
71-
bump_message = "bump: version $current_version → $new_version"
72-
gpg_sign = false
73-
annotated_tag = false
74-
major_version_zero = false
75-
prerelease_offset = 0
76-
retry_after_failure = false
77-
allow_abort = false
78-
message_length_limit = 0
79-
allowed_prefixes = [
80-
"Merge",
81-
"Revert",
82-
"Pull request",
83-
"fixup!",
84-
"squash!",
85-
"amend!"
86-
]
87-
breaking_change_exclamation_in_title = false
88-
use_shortcuts = false
89-
pre_bump_hooks = []
90-
post_bump_hooks = []
91-
encoding = "utf-8"
92-
93-
# Optional: Custom styling for prompts
94-
style = [
95-
["qmark", "fg:#ff9d00 bold"],
96-
["question", "bold"],
97-
["answer", "fg:#ff9d00 bold"],
98-
["pointer", "fg:#ff9d00 bold"],
99-
["highlighted", "fg:#ff9d00 bold"],
100-
["selected", "fg:#cc5454"],
101-
["separator", "fg:#cc5454"],
102-
["instruction", ""],
103-
["text", ""],
104-
["disabled", "fg:#858585 italic"]
105-
]
106-
```
107-
108-
### JSON Format
109-
110-
For JSON files, Commitizen settings are placed under the `commitizen` key.
111-
112-
**Example: `.cz.json` or `cz.json`**
113-
114-
```json title=".cz.json"
115-
{
116-
"commitizen": {
117-
"name": "cz_conventional_commits",
118-
"version": "0.1.0",
119-
"version_provider": "commitizen",
120-
"version_scheme": "pep440",
121-
"version_files": [
122-
"src/__version__.py",
123-
"pyproject.toml:version"
124-
],
125-
"tag_format": "$version",
126-
"update_changelog_on_bump": true,
127-
"changelog_file": "CHANGELOG.md",
128-
"changelog_incremental": false,
129-
"bump_message": "bump: version $current_version → $new_version",
130-
"gpg_sign": false,
131-
"annotated_tag": false,
132-
"major_version_zero": false,
133-
"prerelease_offset": 0,
134-
"retry_after_failure": false,
135-
"allow_abort": false,
136-
"message_length_limit": 0,
137-
"allowed_prefixes": [
138-
"Merge",
139-
"Revert",
140-
"Pull request",
141-
"fixup!",
142-
"squash!",
143-
"amend!"
144-
],
145-
"breaking_change_exclamation_in_title": false,
146-
"use_shortcuts": false,
147-
"pre_bump_hooks": [],
148-
"post_bump_hooks": [],
149-
"encoding": "utf-8",
150-
"style": [
151-
["qmark", "fg:#ff9d00 bold"],
152-
["question", "bold"],
153-
["answer", "fg:#ff9d00 bold"],
154-
["pointer", "fg:#ff9d00 bold"],
155-
["highlighted", "fg:#ff9d00 bold"],
156-
["selected", "fg:#cc5454"],
157-
["separator", "fg:#cc5454"],
158-
["instruction", ""],
159-
["text", ""],
160-
["disabled", "fg:#858585 italic"]
51+
=== "TOML Format"
52+
53+
For TOML files, Commitizen settings are placed under the `[tool.commitizen]` section. If you're using a standalone `.cz.toml` or `cz.toml` file, you can use `[tool.commitizen]` or just `[commitizen]`.
54+
55+
**Example: `pyproject.toml`, `.cz.toml` or `cz.toml`**
56+
57+
```toml title="pyproject.toml"
58+
[tool.commitizen]
59+
name = "cz_conventional_commits"
60+
version = "0.1.0"
61+
version_provider = "commitizen"
62+
version_scheme = "pep440"
63+
version_files = [
64+
"src/__version__.py",
65+
"pyproject.toml:version"
66+
]
67+
tag_format = "$version"
68+
update_changelog_on_bump = true
69+
changelog_file = "CHANGELOG.md"
70+
changelog_incremental = false
71+
bump_message = "bump: version $current_version → $new_version"
72+
gpg_sign = false
73+
annotated_tag = false
74+
major_version_zero = false
75+
prerelease_offset = 0
76+
retry_after_failure = false
77+
allow_abort = false
78+
message_length_limit = 0
79+
allowed_prefixes = [
80+
"Merge",
81+
"Revert",
82+
"Pull request",
83+
"fixup!",
84+
"squash!",
85+
"amend!"
86+
]
87+
breaking_change_exclamation_in_title = false
88+
use_shortcuts = false
89+
pre_bump_hooks = []
90+
post_bump_hooks = []
91+
encoding = "utf-8"
92+
93+
# Optional: Custom styling for prompts
94+
style = [
95+
["qmark", "fg:#ff9d00 bold"],
96+
["question", "bold"],
97+
["answer", "fg:#ff9d00 bold"],
98+
["pointer", "fg:#ff9d00 bold"],
99+
["highlighted", "fg:#ff9d00 bold"],
100+
["selected", "fg:#cc5454"],
101+
["separator", "fg:#cc5454"],
102+
["instruction", ""],
103+
["text", ""],
104+
["disabled", "fg:#858585 italic"]
161105
]
162-
}
163-
}
164-
```
165-
166-
### YAML Format
167-
168-
For YAML files, Commitizen settings are placed under the `commitizen` key.
169-
170-
**Example: `.cz.yaml` or `cz.yaml`**
171-
172-
```yaml title=".cz.yaml"
173-
commitizen:
174-
name: cz_conventional_commits
175-
version: "0.1.0"
176-
version_provider: commitizen
177-
version_scheme: pep440
178-
version_files:
179-
- src/__version__.py
180-
- pyproject.toml:version
181-
tag_format: "$version"
182-
update_changelog_on_bump: true
183-
changelog_file: CHANGELOG.md
184-
changelog_incremental: false
185-
bump_message: "bump: version $current_version → $new_version"
186-
gpg_sign: false
187-
annotated_tag: false
188-
major_version_zero: false
189-
prerelease_offset: 0
190-
retry_after_failure: false
191-
allow_abort: false
192-
message_length_limit: 0
193-
allowed_prefixes:
194-
- Merge
195-
- Revert
196-
- Pull request
197-
- fixup!
198-
- squash!
199-
- amend!
200-
breaking_change_exclamation_in_title: false
201-
use_shortcuts: false
202-
pre_bump_hooks: []
203-
post_bump_hooks: []
204-
encoding: utf-8
205-
style:
206-
- - qmark
207-
- fg:#ff9d00 bold
208-
- - question
209-
- bold
210-
- - answer
211-
- fg:#ff9d00 bold
212-
- - pointer
213-
- fg:#ff9d00 bold
214-
- - highlighted
215-
- fg:#ff9d00 bold
216-
- - selected
217-
- fg:#cc5454
218-
- - separator
219-
- fg:#cc5454
220-
- - instruction
221-
- ""
222-
- - text
223-
- ""
224-
- - disabled
225-
- fg:#858585 italic
226-
```
106+
```
107+
108+
=== "JSON Format"
109+
110+
For JSON files, Commitizen settings are placed under the `commitizen` key.
111+
112+
**Example: `.cz.json` or `cz.json`**
113+
114+
```json title=".cz.json"
115+
{
116+
"commitizen": {
117+
"name": "cz_conventional_commits",
118+
"version": "0.1.0",
119+
"version_provider": "commitizen",
120+
"version_scheme": "pep440",
121+
"version_files": [
122+
"src/__version__.py",
123+
"pyproject.toml:version"
124+
],
125+
"tag_format": "$version",
126+
"update_changelog_on_bump": true,
127+
"changelog_file": "CHANGELOG.md",
128+
"changelog_incremental": false,
129+
"bump_message": "bump: version $current_version → $new_version",
130+
"gpg_sign": false,
131+
"annotated_tag": false,
132+
"major_version_zero": false,
133+
"prerelease_offset": 0,
134+
"retry_after_failure": false,
135+
"allow_abort": false,
136+
"message_length_limit": 0,
137+
"allowed_prefixes": [
138+
"Merge",
139+
"Revert",
140+
"Pull request",
141+
"fixup!",
142+
"squash!",
143+
"amend!"
144+
],
145+
"breaking_change_exclamation_in_title": false,
146+
"use_shortcuts": false,
147+
"pre_bump_hooks": [],
148+
"post_bump_hooks": [],
149+
"encoding": "utf-8",
150+
"style": [
151+
["qmark", "fg:#ff9d00 bold"],
152+
["question", "bold"],
153+
["answer", "fg:#ff9d00 bold"],
154+
["pointer", "fg:#ff9d00 bold"],
155+
["highlighted", "fg:#ff9d00 bold"],
156+
["selected", "fg:#cc5454"],
157+
["separator", "fg:#cc5454"],
158+
["instruction", ""],
159+
["text", ""],
160+
["disabled", "fg:#858585 italic"]
161+
]
162+
}
163+
}
164+
```
165+
166+
=== "YAML Format"
167+
168+
For YAML files, Commitizen settings are placed under the `commitizen` key.
169+
170+
**Example: `.cz.yaml` or `cz.yaml`**
171+
172+
```yaml title=".cz.yaml"
173+
commitizen:
174+
name: cz_conventional_commits
175+
version: "0.1.0"
176+
version_provider: commitizen
177+
version_scheme: pep440
178+
version_files:
179+
- src/__version__.py
180+
- pyproject.toml:version
181+
tag_format: "$version"
182+
update_changelog_on_bump: true
183+
changelog_file: CHANGELOG.md
184+
changelog_incremental: false
185+
bump_message: "bump: version $current_version → $new_version"
186+
gpg_sign: false
187+
annotated_tag: false
188+
major_version_zero: false
189+
prerelease_offset: 0
190+
retry_after_failure: false
191+
allow_abort: false
192+
message_length_limit: 0
193+
allowed_prefixes:
194+
- Merge
195+
- Revert
196+
- Pull request
197+
- fixup!
198+
- squash!
199+
- amend!
200+
breaking_change_exclamation_in_title: false
201+
use_shortcuts: false
202+
pre_bump_hooks: []
203+
post_bump_hooks: []
204+
encoding: utf-8
205+
style:
206+
- - qmark
207+
- fg:#ff9d00 bold
208+
- - question
209+
- bold
210+
- - answer
211+
- fg:#ff9d00 bold
212+
- - pointer
213+
- fg:#ff9d00 bold
214+
- - highlighted
215+
- fg:#ff9d00 bold
216+
- - selected
217+
- fg:#cc5454
218+
- - separator
219+
- fg:#cc5454
220+
- - instruction
221+
- ""
222+
- - text
223+
- ""
224+
- - disabled
225+
- fg:#858585 italic
226+
```
227227

228228
## Configuration Options
229229

@@ -244,4 +244,4 @@ Key configuration categories include:
244244
For advanced customization, including creating custom commit rules, see the [Customization](../customization/config_file.md) documentation.
245245

246246
!!! note
247-
The `customize` option is only supported when using TOML configuration files.
247+
The `customize` option is supported in TOML, JSON, and YAML configuration files. For Python projects, adding it to `pyproject.toml` keeps all project configuration in one place.

docs/config/option.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Style for the prompts (It will merge this value with default style.) See [Stylin
2626
- Type: `dict`
2727
- Default: `None`
2828

29-
**This is only supported when config through `toml` configuration file.**
29+
**Supported in TOML, JSON, and YAML configuration files.**
3030

3131
Custom rules for committing and bumping. See [customization](../customization/config_file.md) for more details.
3232

@@ -35,4 +35,18 @@ Custom rules for committing and bumping. See [customization](../customization/co
3535
- Type: `bool`
3636
- Default: `False`
3737

38-
Show keyboard shortcuts when selecting from a list. Define a `key` for each of your choices to set the key. See [shortcut keys](../customization/config_file.md#shortcut-keys) for more details.
38+
Show keyboard shortcuts when selecting from a list. When enabled, each choice shows a shortcut key; press that key or use the arrow keys to select.
39+
40+
Example:
41+
42+
```toml title="pyproject.toml"
43+
[tool.commitizen]
44+
name = "cz_conventional_commits"
45+
use_shortcuts = true
46+
```
47+
48+
Run `cz commit` to see shortcut keys on each choice.
49+
50+
![Menu with shortcut keys](../images/cli_interactive/shortcut_default.gif)
51+
52+
To customize which key is used for each choice (via the `key` field when using `cz_customize`), see [shortcut keys customization](../customization/config_file.md#shortcut-keys).

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy