From 80953573a0bc324554159df662d57055ae10dfef Mon Sep 17 00:00:00 2001 From: joelazar Date: Fri, 17 Jul 2026 11:58:04 +0200 Subject: [PATCH] :sparkles: add copy action to aws cables --- dot_config/television/cable/aws-elasticache.toml | 8 ++++++++ dot_config/television/cable/aws-instances.toml | 8 ++++++++ dot_config/television/cable/aws-rds.toml | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/dot_config/television/cable/aws-elasticache.toml b/dot_config/television/cable/aws-elasticache.toml index 4398f8cd..5cef56a6 100644 --- a/dot_config/television/cable/aws-elasticache.toml +++ b/dot_config/television/cable/aws-elasticache.toml @@ -12,3 +12,11 @@ command = "aws elasticache describe-cache-clusters --cache-cluster-id '{split:\t [ui.preview_panel] size = 60 +[keybindings] +enter = "actions:copy" + +[actions.copy] +description = "Copy the cluster details (preview content) to the clipboard" +command = "aws elasticache describe-cache-clusters --cache-cluster-id '{split:\t:0}' --output json | pbcopy" +mode = "fork" + diff --git a/dot_config/television/cable/aws-instances.toml b/dot_config/television/cable/aws-instances.toml index 34473b57..5c577765 100644 --- a/dot_config/television/cable/aws-instances.toml +++ b/dot_config/television/cable/aws-instances.toml @@ -13,6 +13,14 @@ command = "aws ec2 describe-instances --output json --instance-ids {split:\t:0} layout = "portrait" preview_panel = { size = 60 } +[keybindings] +enter = "actions:copy" + +[actions.copy] +description = "Copy the instance details (preview content) to the clipboard" +command = "aws ec2 describe-instances --output json --instance-ids {split:\t:0} --query 'Reservations[*].Instances[0]' | pbcopy" +mode = "fork" + [actions.start] description = "Start the selected EC2 instance" command = "aws ec2 start-instances --instance-ids {split:\t:0}" diff --git a/dot_config/television/cable/aws-rds.toml b/dot_config/television/cable/aws-rds.toml index 51010659..4d9113e6 100644 --- a/dot_config/television/cable/aws-rds.toml +++ b/dot_config/television/cable/aws-rds.toml @@ -12,3 +12,11 @@ command = "aws rds describe-db-instances --db-instance-identifier '{split:\t:0}' [ui.preview_panel] size = 60 +[keybindings] +enter = "actions:copy" + +[actions.copy] +description = "Copy the instance details (preview content) to the clipboard" +command = "aws rds describe-db-instances --db-instance-identifier '{split:\t:0}' --output json | pbcopy" +mode = "fork" + -- 2.51.2