title: Autocompletion does not work in R terminal inside square brackets
body: <p>I am using R from the command line and noticed that autocompletion of list names does not work when inside square brackets. Consider this example:</p>
  
  <pre><code>myList &lt;- list(firstElement=sample(1:10), secondElement=sample(1:10))
  </code></pre>
  
  <p>Typing out <code>myList$f</code> and then pressing <em>tab</em> gives <code>myList$firstElement</code></p>
  
  <p>But does not work here (at <code>myList$s</code> inside the brackets):</p>
  
  <pre><code>myList$firstElement[myList$secondElement &gt; 5]
  </code></pre>
  
  <p>My question is - why it does not work and is there something one can do to make it work?</p>