Skip to main content

Command Palette Reference

This reference guide covers all default keyboard shortcuts and commands available in Coginiti's Command Palette. These keybindings can be customized by users to match their preferred workflow and development environment.

Overview

Coginiti's Command Palette provides comprehensive keyboard shortcuts for efficient interaction with the application. The shortcuts are organized by functional areas and designed for productivity across different platforms.

Platform Key Mapping

  • Mod Key: Ctrl on Windows/Linux, Cmd on macOS
  • Alt Key: Alt on Windows/Linux, Option on macOS
  • Context-Sensitive: Some shortcuts only work in specific areas or when certain elements are focused

Accessing the Command Palette

  • Primary Access: Mod+Shift+P - Open Command Palette
  • Keybindings Help: F1 (App) / Mod+F1 (Web) - Open Keybindings Popup

SQL Workbench Commands

Query Execution

Execute SQL queries and scripts with various execution modes:

ShortcutCommandDescription
Mod+EnterRun Script or Selected CodeExecute the current script or selected text
F5Run Script at Cursor PositionExecute query at current cursor location
Mod+F5Run Script as BatchExecute script in batch mode
Shift+F5Run Script as SequenceExecute script statements sequentially
Shift+F8Explain PlanGenerate and display query execution plan

Execution Modes Explained

Run Script or Selected Code (Mod+Enter):

  • Executes selected text if text is selected
  • Executes entire script if no selection
  • Most commonly used execution command

Run Script at Cursor Position (F5):

  • Executes the statement at current cursor position
  • Useful for executing specific statements in multi-query files
  • Automatically detects statement boundaries

Run Script as Batch (Mod+F5):

  • Executes all statements as a single batch
  • Faster for multiple related statements
  • Transactions are handled as a unit

Run Script as Sequence (Shift+F5):

  • Executes statements one by one in order
  • Allows for individual statement result inspection
  • Better error isolation and debugging

Explain Plan (Shift+F8):

  • Generates query execution plan without running the query
  • Shows optimizer decisions and performance characteristics
  • Essential for query performance analysis

Query Analysis

ShortcutCommandDescription
Mod+Alt+EExplain QueryAI-powered query explanation
Mod+Alt+OOptimize QueryAI-powered query optimization suggestions
Ctrl+Alt+EExplain Plan: Toggle ViewSwitch between plan views

File Operations

Basic File Management

ShortcutCommandDescription
Mod+SSave File/Catalog EntrySave current file or catalog item
Mod+Shift+SSave AsSave file with new name or location
Mod+Shift+OOpen FileOpen file dialog to load existing file

File Operation Details

Save File (Mod+S):

  • Saves current active file or catalog entry
  • Works for SQL files, CoginitiScript, and other editable content
  • Automatic backup creation (if enabled in settings)

Save As (Mod+Shift+S):

  • Creates copy of current file with new name
  • Allows saving to different locations
  • Preserves original file unchanged

Open File (Mod+Shift+O):

  • Opens file browser dialog
  • Supports multiple file format filters
  • Recent files quick access

Catalog Management

Data Catalog Operations

ShortcutPlatformCommandDescription
Mod+Shift+EAppExport PopupOpen export dialog for catalog items
Alt+Shift+EWebExport PopupOpen export dialog for catalog items
Mod+Shift+IAppImport PopupOpen import dialog for catalog items
Alt+Shift+IWebImport PopupOpen import dialog for catalog items
F9AllShow Lineage in EditorDisplay data lineage visualization

Catalog Features

Export Functionality:

  • Export queries, results, and metadata
  • Multiple format support (SQL, CSV, JSON)
  • Batch export capabilities for multiple items

Import Functionality:

  • Import SQL files, query libraries, and configurations
  • Support for various file formats and sources
  • Bulk import with validation and conflict resolution

Data Lineage (F9):

  • Visualizes data flow and dependencies
  • Shows table relationships and query connections
  • Interactive lineage exploration and navigation

Code Editor

Basic Editing Operations

ShortcutCommandDescription
Mod+ASelect AllSelect all text in current editor
Mod+CCopyCopy selected text to clipboard
Mod+XCutCut selected text to clipboard
Mod+VPastePaste text from clipboard
Mod+ZUndoUndo last action
Mod+YRedoRedo previously undone action

Advanced Editing Operations

ShortcutCommandDescription
Alt+Mod+UpAdd Cursor AboveAdd additional cursor one line above
Alt+Mod+DownAdd Cursor BelowAdd additional cursor one line below
Alt+RightMove Cursor Next Word RightJump cursor to next word boundary
Alt+LeftMove Cursor Next Word LeftJump cursor to previous word boundary
Mod+RightMove Cursor to Line EndMove cursor to end of current line
Mod+LeftMove Cursor to Line StartMove cursor to beginning of current line
Alt+Shift+IAdd Cursors to Line EndsAdd cursor at end of each selected line
Mod+DSelection to Next Find MatchExtend selection to next matching occurrence

Multi-Cursor Editing

Benefits of Multi-Cursor Operations:

  • Edit multiple locations simultaneously
  • Bulk find and replace operations
  • Consistent formatting across multiple lines
  • Efficient code refactoring

Common Multi-Cursor Workflows:

  1. Column Editing: Use Alt+Mod+Up/Down to create vertical cursor column
  2. Word Selection: Use Mod+D to select multiple instances of same word
  3. Line Endings: Use Alt+Shift+I to add cursors to selected line endings

Line Operations

ShortcutCommandDescription
Alt+Shift+DownCopy Line DownDuplicate current line below
Alt+Shift+UpCopy Line UpDuplicate current line above
Alt+DownMove Line DownMove current line down one position
Alt+UpMove Line UpMove current line up one position
Shift+Mod+KDelete LineDelete entire current line
Shift+EnterInsert Line BelowCreate new line below cursor
Shift+Mod+EnterInsert Line AboveCreate new line above cursor

Line Manipulation Best Practices

Code Organization:

  • Use line duplication for template creation
  • Move related lines together for better readability
  • Insert strategic blank lines for code structure

Refactoring Workflows:

  • Duplicate lines before modification for comparison
  • Move lines to reorganize code logic
  • Delete redundant or commented-out code

Code Formatting

ShortcutCommandDescription
Alt+Shift+FFormat DocumentFormat entire document according to style rules
Mod+Alt+SFormat SelectionFormat only selected code portion
Mod+]Indent LineIncrease indentation of current line
Mod+[Outdent LineDecrease indentation of current line
Mod+/Toggle Line CommentAdd/remove line comment markers
Alt+Shift+ABlock CommentAdd/remove block comment markers

Formatting Configuration

Document Formatting (Alt+Shift+F):

  • Applies consistent indentation and spacing
  • Follows configured SQL style guidelines
  • Formats entire file at once

Selection Formatting (Mod+Alt+S):

  • Formats only selected text
  • Preserves surrounding code formatting
  • Useful for partial cleanup operations

Comment Management:

  • Line comments (--) for single line comments
  • Block comments (/* */) for multi-line comments
  • Toggle functionality for easy comment/uncomment

Search & Replace

ShortcutCommandDescription
Mod+FFindOpen find dialog for text search
EnterFind NextJump to next search result (when search focused)
Shift+Mod+GFind PreviousJump to previous search result
Alt+Mod+FReplaceOpen find and replace dialog

Search Features

Find Operations:

  • Case-sensitive and case-insensitive search
  • Regular expression support for complex patterns
  • Whole word matching for precise searches

Replace Operations:

  • Single replacement confirmation
  • Replace all occurrences at once
  • Regex-based replacements with capture groups

Code Folding

ShortcutCommandDescription
Alt+Mod+[FoldCollapse current code block
Alt+Mod+]Unfold RecursivelyExpand current code block and nested blocks
Mod+Alt+0Fold AllCollapse all foldable code blocks
Mod+Alt+JUnfold AllExpand all folded code blocks
Mod+Alt+9Unfold All RegionsExpand all folded regions

Code Folding Benefits

Navigation Efficiency:

  • Focus on specific code sections
  • Reduce visual clutter in large files
  • Quick overview of code structure

Code Review:

  • Collapse irrelevant sections during review
  • Focus on changed or problematic areas
  • Maintain context while examining details

Code Intelligence

ShortcutCommandDescription
Ctrl+SpaceTrigger SuggestOpen IntelliSense suggestions
Mod+.Quick FixShow available quick fixes
Alt+Mod+.Auto FixApply automatic fixes
Mod+F2Change All OccurrencesRename all instances of symbol
Alt+GGo to LineJump to specific line number

IntelliSense Features

Auto-Completion:

  • SQL keyword completion
  • Table and column name suggestions
  • Function parameter hints
  • CoginitiScript macro completion

Quick Fixes:

  • Syntax error corrections
  • Code style improvements
  • Performance optimization suggestions
  • Import statement additions

Text Deletion

ShortcutCommandDescription
Mod+BackspaceDelete All LeftDelete from cursor to beginning of line
Ctrl+KDelete All RightDelete from cursor to end of line
BackspaceDeleteDelete character before cursor
DelForward DeleteDelete character after cursor

Workspace Management

Tab Management

ShortcutCommandDescription
Alt+TCreate New TabOpen new editor tab
Alt+WClose Current TabClose active tab
Mod+Alt+TRestore Closed TabReopen recently closed tab
Mod+Alt+RightNext TabSwitch to next tab
Mod+Alt+LeftPrevious TabSwitch to previous tab

Tab Organization

Tab Navigation:

  • Efficient switching between multiple queries
  • Keyboard-only tab management
  • Recently closed tab restoration

Workspace Organization:

  • Group related queries in separate tabs
  • Use tab titles for easy identification
  • Maintain clean workspace with tab management

Results & Execution Management

ShortcutPlatformCommandDescription
Alt+6Browser/WindowsToggle Results PaneShow/hide query results panel
Mod+6macOSToggle Results PaneShow/hide query results panel
Mod+UpAllNext Results TabSwitch to next results tab
Mod+DownAllPrevious Results TabSwitch to previous results tab
Ctrl+\AllNavigate to ErrorJump to error location in code

Results Navigation

Results Panel Management:

  • Toggle visibility for more editor space
  • Navigate between multiple result sets
  • Quick error location identification

Multi-Query Results:

  • Switch between results from different queries
  • Compare results across multiple executions
  • Maintain result history for reference

Database Explorer

Database Navigation

ShortcutContextCommandDescription
SpaceDB Explorer focusedCopy Name to EditorCopy selected object name to editor
Mod+EnterDB Explorer focusedOpen in TabOpen selected object in new tab

Database Object Interaction

Object Name Copying:

  • Quick insertion of table/column names
  • Maintain proper SQL syntax and quoting
  • Reduce typing errors and improve efficiency

Object Exploration:

  • Open table definitions in new tabs
  • View object properties and metadata
  • Navigate database schema efficiently

AI Assistant

AI-Powered Features

ShortcutCommandDescription
Mod+EnterSend MessageSend message in AI chat interface
Mod+Alt+EExplain QueryGet AI explanation of selected query
Mod+Alt+OOptimize QueryGet AI optimization suggestions
Mod+Shift+ZCancel RequestCancel current AI request

AI Integration Benefits

Query Understanding:

  • Natural language explanations of complex queries
  • Business logic interpretation
  • Performance characteristic analysis

Query Optimization:

  • AI-powered performance improvement suggestions
  • Index recommendation analysis
  • Query rewriting for better performance

Interactive Assistance:

  • Conversational query development
  • Problem-solving support
  • Learning and skill development

Interface Management

ShortcutPlatformCommandDescription
Mod+Shift+PAllOpen Command PaletteAccess all available commands
F1AppOpen Keybindings PopupDisplay keyboard shortcut reference
Mod+F1WebOpen Keybindings PopupDisplay keyboard shortcut reference
Alt+OBrowser/WindowsEdit ConnectionsOpen connection management dialog
Mod+OmacOSEdit ConnectionsOpen connection management dialog

Interface Customization

Command Palette:

  • Search and execute any available command
  • Discover new features and shortcuts
  • Quick access to less common operations

Connection Management:

  • Rapid access to database connections
  • Switch between different environments
  • Manage connection templates and settings

Utility Operations

Text Processing

ShortcutCommandDescription
Mod+Alt+XTrim Trailing WhitespaceRemove whitespace at end of lines

Code Maintenance

Whitespace Management:

  • Clean up code formatting inconsistencies
  • Prepare code for version control
  • Maintain consistent code style standards

Customizing Keyboard Shortcuts

Accessing Keybinding Settings

  1. Open Command Palette: Mod+Shift+P
  2. Search for "Keybindings" or "Keyboard Shortcuts"
  3. Select keybinding configuration option
  4. Modify shortcuts according to your preferences

Customization Options

Personal Preference Customization

  • Modifier Key Preferences: Adjust Mod, Alt, Shift combinations
  • Function Key Usage: Enable/disable function key shortcuts
  • Context-Specific Shortcuts: Customize shortcuts for specific editors or panels

Team Standardization

  • Export keybinding configurations for team sharing
  • Import standard configurations for consistency
  • Document custom shortcuts for team reference

Best Practices for Customization

Workflow Optimization

  • Identify frequently used commands and assign convenient shortcuts
  • Group related commands with similar key combinations
  • Avoid conflicts with system-level shortcuts

Muscle Memory Development

  • Start with default shortcuts and gradually customize
  • Practice new shortcuts consistently for memorization
  • Document changes for reference and training

Platform-Specific Considerations

Windows/Linux Shortcuts

  • Ctrl key serves as primary modifier
  • Alt key for secondary modifications
  • Function keys widely available and customizable

macOS Shortcuts

  • Cmd key serves as primary modifier (Mod)
  • Option key replaces Alt in most combinations
  • Function key behavior may require Fn key activation

Web Browser Considerations

  • Browser shortcuts may conflict with application shortcuts
  • Full-screen mode recommended for optimal experience
  • Browser-specific limitations on certain key combinations

Troubleshooting Shortcuts

Common Issues

Shortcuts Not Working

Possible Causes:

  • Browser capturing key combinations
  • Conflicting extensions or applications
  • Focus not on correct interface element
  • Platform-specific key mapping issues

Solutions:

  1. Verify focus: Ensure cursor is in correct editor or panel
  2. Check browser settings: Disable conflicting browser shortcuts
  3. Review extensions: Temporarily disable browser extensions
  4. Reset keybindings: Restore default shortcuts if customizations cause issues

Platform Compatibility

Cross-Platform Development:

  • Document platform differences in team environments
  • Test shortcuts on all target platforms
  • Provide platform-specific guidance for users

Performance Considerations

Shortcut Response Time

  • Complex operations may have slight delays
  • Network-dependent commands (AI features) may take longer
  • Large file operations may temporarily block shortcuts

Memory and Resource Usage

  • Multiple tabs and results may impact shortcut responsiveness
  • Close unused tabs to maintain optimal performance
  • Monitor system resources during intensive operations

Summary

Coginiti's Command Palette provides comprehensive keyboard shortcuts for efficient development workflows:

SQL Execution: Multiple execution modes for different query scenarios
Code Editing: Advanced text manipulation and formatting capabilities
File Management: Efficient file operations and catalog management
Workspace Organization: Tab management and results navigation
AI Integration: Keyboard access to AI-powered features
Customization: Full keybinding customization for personal workflows

Master these shortcuts to significantly improve your productivity and development efficiency in Coginiti. Regular practice and gradual adoption of new shortcuts will enhance your overall experience and workflow speed.