Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4948

(7.1.0) CLI tab comple should reflect curent position of prompt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR2
    • 7.0.0.GA
    • CLI
    • None

      CLI tab completion cannot be used in the middle of the command. Whole command is taken as a context, ignoring the current position of prompt. Auto-completed string is inserted to the current position of the prompt (no matter it can be placed in the middle of the command).

      [] is used to show the current position of the prompt
      actual
      tab completion in the middle doesn't work

      /subsystem=loggin[]<TAB>/root-logger=ROOT
      /subsystem=loggin[]/root-logger=ROOT
      

      tab completion with prompt in the middle

      /subsystem=logging/[]<TAB>root-logger=R
      /subsystem=logging/ROOT[]root-logger=R
      

      expected
      tab completion in the middle works

      /subsystem=loggin[]<TAB>/root-logger=ROOT
      /subsystem=logging[]/root-logger=ROOT
      

      tab completion with prompt in the middle doesn't add anything unless it's a valid part of the command

      /subsystem=logging/[]<TAB>root-logger=R
      /subsystem=logging/[]root-logger=R
      

              chaowan@redhat.com Chao Wang
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: