Skip to content

Full directory paths in helm-do-grep-ag #2739

@ckonstanski-olo

Description

@ckonstanski-olo

Suggestion

When using helm-do-grep-ag to search a large directory tree it would be very helpful if the filenames could include directory paths.

Description

The venerable but obsoleted helm-ag package had the desired behavior. Example output showing lots of files all named _data.tf which exist under various subdirectories. With the full paths it is easy to tell them apart. Not so with helm-do-grep-ag sadly. In this example I grepped for "eks".

terraform-state-eks/terraform/ode/core-ode/_data.tf:76:      name = "terraform-state-eks-core-build-01"
terraform-state-eks/terraform/ode/core-ode/_data.tf:81:data "aws_eks_clusters" "pre_check_cluster" {}
terraform-state-eks/terraform/ode/core-ode/_data.tf:87:data "aws_ami" "eks" {
terraform-state-eks/terraform/build-dev/core-builddev-01/_data.tf:56:      name = "terraform-state-eks-core-infra-dev"
terraform-state-eks/terraform/build-dev/core-builddev-01/_data.tf:71:data "aws_eks_clusters" "pre_check_cluster" {}
terraform-state-eks/terraform/build-dev/core-builddev-01/_data.tf:77:data "aws_ami" "eks" {
terraform-state-eks/terraform/engage/staging/eks-staging-01/_data.tf:41:data "terraform_remote_state" "eks_core_build_01" {
terraform-state-eks/terraform/engage/staging/eks-staging-01/_data.tf:46:      name = "terraform-state-eks-core-build-01"
terraform-state-eks/terraform/engage/staging/eks-staging-01/_data.tf:61:data "aws_eks_clusters" "pre_check_cluster" {}
terraform-state-eks/terraform/engage/staging/eks-staging-01/_data.tf:63:data "aws_ami" "eks" {
terraform-state-eks/terraform/sandbox/core-sandbox/_data.tf:61:data "terraform_remote_state" "eks_core_build_01" {
terraform-state-eks/terraform/sandbox/core-sandbox/_data.tf:66:      name = "terraform-state-eks-core-build-01"
terraform-state-eks/terraform/sandbox/core-sandbox/_data.tf:71:data "aws_eks_clusters" "pre_check_cluster" {}
terraform-state-eks/terraform/sandbox/core-sandbox/_data.tf:77:data "aws_ami" "eks" {
terraform-state-eks/terraform/dev/core-dev/_data.tf:61:data "terraform_remote_state" "eks_core_build_01" {
terraform-state-eks/terraform/dev/core-dev/_data.tf:66:      name = "terraform-state-eks-core-build-01"
terraform-state-eks/terraform/dev/core-dev/_data.tf:71:data "aws_eks_clusters" "pre_check_cluster" {}
terraform-state-eks/terraform/dev/core-dev/_data.tf:77:data "aws_ami" "eks" {
terraform-state-eks/terraform/dev/core-infra-dev/_data.tf:61:data "aws_eks_clusters" "pre_check_cluster" {}
terraform-state-eks/terraform/dev/core-infra-dev/_data.tf:67:data "aws_ami" "eks" {
terraform-state-eks/terraform/dev/core-infra-dev/_data.tf:113:      name = "terraform-state-eks-core-builddev-01"
terraform-state-eks/terraform/dev/core-infra-dev/_data.tf:118:data "terraform_remote_state" "eks_core_build_01" {
terraform-state-eks/terraform/dev/core-infra-dev/_data.tf:123:      name = "terraform-state-eks-core-build-01"```

### Solutions

My current solution is to install helm-ag manually because this functionality is essential in my working environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions