-
Notifications
You must be signed in to change notification settings - Fork 1
View Customization
a9s auto-creates per-resource view config files in ~/.a9s/views/ on first launch. These control which columns appear in list views and which fields show in detail views.
- Edit any file to customize — a9s never overwrites user-edited files
- Delete a file to restore its defaults on next launch
- Use
--reset-viewsto delete all configs and regenerate from scratch
| Path | Purpose |
|---|---|
~/.a9s/views/*.yaml |
Global defaults (auto-created) |
.a9s/views/*.yaml (CWD) |
Per-project overrides |
~/.a9s/views_reference.yaml |
Field reference (auto-updated each launch) |
Per-project files overlay global ones on a per-resource basis.
Each file (e.g., ec2.yaml) has two optional sections:
list:
Name:
width: 24
State:
path: State.Name
width: 12
Lifecycle:
key: lifecycle
width: 12
detail:
- InstanceId
- State
- InstanceType
- LaunchTime
- TagsAn ordered map of columns. Each column has:
| Key | Description |
|---|---|
path: |
Dot-separated field path into the AWS SDK struct (e.g., State.Name) |
key: |
Special computed key (e.g., lifecycle, age, status) — use instead of path for derived values |
width: |
Column width in characters |
If neither path nor key is specified, the column title is used as the field name.
A list of field paths shown in the detail view (press Enter on a resource).
~/.a9s/views_reference.yaml lists every available field path for each resource type, generated from AWS SDK struct definitions. It is automatically updated on each launch so new fields from binary upgrades appear immediately.
ec2: # ec2types.Instance
- Architecture
- BlockDeviceMappings[].DeviceName
- BlockDeviceMappings[].Ebs.VolumeId
- InstanceId
- InstanceType
- State.Code
- State.Name
...Copy paths from this file into your view configs.
Remove it from the list: section.
Reorder the entries under list: — YAML map order is preserved.
list:
AZ:
path: Placement.AvailabilityZone
width: 16list:
Name:
width: 40detail:
- InstanceId
- State.Name
- Placement.AvailabilityZone
- NetworkInterfaces[].PrivateIpAddress
- TagsCreate .a9s/views/ec2.yaml in your project directory to override just the EC2 view for that project. Other resource types fall through to global defaults.
a9s --reset-views # delete all view configs, regenerate on next launch
a9s --reset-themes # delete all theme files, regenerate on next launchBoth flags prompt for confirmation before deleting.