Tab Completion - espresso20/civcli GitHub Wiki
Tab Completion
This page explains how tab completion works in CivIdleCli and how to use it effectively.
Tab Completion Overview
CivIdleCli features a robust tab completion system that helps players:
- Complete partial commands
- Discover available subcommands and options
- Cycle through multiple matching suggestions
Basic Usage
Completing Commands
- Type the beginning of a command
- Press the Tab key
- The command will auto-complete if there's a unique match
For example:
- Type
bui
and press Tab → Completes tobuild
- Type
he
and press Tab → Completes tohelp
Discovering Options
- Type a complete command followed by a space
- Press the Tab key
- The game will show available subcommands or options
For example:
- Type
build
and press Tab → Shows available buildings - Type
gather
and press Tab → Shows available resources
Cycling Through Suggestions
If multiple commands match your input:
- Press Tab to see the first suggestion
- Press Tab again to cycle to the next suggestion
- Continue pressing Tab to cycle through all matching options
For example:
- Type
b
and press Tab repeatedly → Cycles throughbuild
,buildings
, etc.
Command-Specific Completions
Different commands offer different completion options:
build
Shows available buildings:
- hut
- farm
- lumber_mill
- mine
- market
- library
gather / assign / unassign
Shows available resources:
- food
- wood
- stone
- gold
- knowledge
research
Shows available technologies for research
library
Shows available library topics:
- villagers
- resources
- buildings
- ages
- commands
- tips
Partial Word Completion
The tab completion system can also complete partial words:
- Type part of a command or subcommand
- Press Tab
- The system will complete the word if there's a unique match
For example:
- Type
build fa
and press Tab → Completes tobuild farm
- Type
assign villager wo
and press Tab → Completes toassign villager wood
Tips for Efficient Tab Completion
- Learn Command Beginnings: Knowing the first few letters of commands speeds up your gameplay
- Explore Options: Use Tab after commands to discover what's available
- Multiple Tabs: Remember that pressing Tab multiple times cycles through options
- Command Structure: Understanding the command structure (command → subcommand → arguments) helps with effective tab completion
- Quick Navigation: Use Tab completion to quickly navigate through complex commands without typing them fully