Skip to content

[Feature] Ctrl-T to use word under cursor or current selection #29974

Closed

Description

@mihailik

Reading code, standing on loadHistoryNextBatch and wondering who's implementing it?

  private onScroll = (start: number, end: number) => {
    const history = this.props.history.history
    if (history.length - end <= CloseToBottomThreshold) {
      this.props.dispatcher.loadNextHistoryBatch(this.props.repository)
//                                         ^
//                                         '-- maybe here
    }
  }

So, I'm pressing Ctrl-T to search for the symbol, and now I have to type the name on keyboard.

Not good. Why does VSCode not pick the selected text, or word under the cursor?

Ctrl+F can be smart just fine, but Ctrl-T plays COMPUTER SAYS NO game. Let's fix it!

Activity

  1. rbenson commented on Jun 30, 2017

    @rbenson

    ctrl+t is show all symbols? Shouldn't ctrl+f12 do what you want?

  2. mihailik commented on Jun 30, 2017

    @mihailik
    ContributorAuthor

    Yes, all symbols.

    I think the other one you refer to find all references? That's useful in its own use cases, but very different. Ctrl-T searches for any symbols with similar name -- even not directly related. That is a huge help when reading large complex codebase (GitHub Desktop in the example above).

  3. mihailik commented on Jun 30, 2017

    @mihailik
    ContributorAuthor

    Johannes Rieken (@jrieken) Peng Lyu (@rebornix) would you please give me a clue how to do this?

    I'd love to implement this little feature and help the community (and myself)!

    Many thanks.

  4. added
    feature-request
    on Jul 10, 2017
  5. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions