Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1627

CLI tab comple should reflect curent position of prompt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Alpha4
    • 3.0.0.Alpha2
    • 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
              chaowan@redhat.com Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: