Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bashhub-client
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 22
    • Issues 22
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Ryan Caloras
  • bashhub-client
  • Issues
  • #46
Closed
Open
Issue created May 03, 2017 by mthornba@mthornba

Inlcude regex and/or globbing in search query

Problem

The search query appears to only match entire words. Rarely-used commands are hard to find without knowing the complete word.

e.g. Finding an ssh option like PubkeyAuthentication in this command: ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no ubuntu@192.168.0.7 I'd have to know the complete option name since searching for just Pubkey or Auth doesn't match the command I'm looking for:

$ bh Pubkey
$ bh Auth
cat auth
$ bh PubkeyAuthentication
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no ubuntu@192.168.0.7

Desired behaviour

Option 1. Automatically match partial words

$ bh Pubkey
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no ubuntu@192.168.0.7

Option 2. Require regex or globbing to match partial words

$ bh "Pubkey*"
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no ubuntu@192.168.0.7

or

$ bh "\w*Auth\w*"
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no ubuntu@192.168.0.7
Assignee
Assign to
Time tracking