Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Features
* Let `help <keyword>` list similar keywords when not found.
* Optionally highlight fuzzy search previews.
* Make `\edit` synonymous with the `\e` command.
* Add environment variable section to `--checkup`.


Bug Fixes
Expand All @@ -29,6 +30,7 @@ Documentation
---------
* Add `help <keyword>` to TIPS.
* Refine inline help descriptions.
* Add `$VISUAL` environment variable hint to TIPS.


1.57.0 (2026/02/25)
Expand Down
2 changes: 2 additions & 0 deletions mycli/TIPS
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ edit a query in an external editor using <query>\edit!

edit a query in an external editor using \edit <filename>!

set "export VISUAL='code --wait'" in your shell to `\edit` queries using VS Code!

\f lists favorite queries; \f <name> executes a favorite!

\fs <name> <query> saves a favorite query!
Expand Down
10 changes: 10 additions & 0 deletions mycli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2490,6 +2490,16 @@ def do_config_checkup(mycli: MyCli) -> None:
else:
print(f'The recommended "{executable}" executable was not found — some functionality will suffer.')

print('\n### Environment variables:\n')
for variable in [
'EDITOR',
'VISUAL',
]:
if value := os.environ.get(variable):
print(f'The ${variable} environment variable was set to "{value}" — good!')
else:
print(f'The ${variable} environment variable was not set — some functionality will suffer.')

indent = ' '
transitions = {
f'{indent}[main]\n{indent}default_character_set': f'{indent}[connection]\n{indent}default_character_set',
Expand Down