Theia: [navigator] Navigator context menu enhancements

Created on 22 Feb 2018  路  8Comments  路  Source: eclipse-theia/theia

  • [x] Copy path.
  • [x] Open in terminal.
enhancement help wanted navigator

All 8 comments

@svenefftinge, where should I put the Open in Terminal implementation, for instance?

  • I can put it into the @theia/navigator, but then I need to depend on the @theia/terminal.
  • I can implement it into the @theia/terminal if introduce the @theia/navigator dependency which I do not want to.
  • Alternatively, I could move this to the @theia/workspace but it does not yet depend on @theia/navigator or @theia/terminal.
  • Do we need a new package; @theia/workbench?

I like an idea with workbench extension. It allows to keep extensions decouple without changing the core. It could serve as a base extension for Theia, i.e. including typical extensions like navigator, terminal, editor, preferences and so on.

It should go into terminal without a dependency to navigator. I understood that dependency would only exist because of the menu entry. We should just use the id (string).

Introducing a third extension that is the place for everything where we have have such dependency issues will end up being a big kitchen sink with dependencies to everything. Also the name is very generic.

@thegecko, the Copy path is not implemented, right?

@kittaakos that's right. Thanks for the update above

(fyi) in the navigator Copy copies a path as well, you can try it by pasting anywhere outside the navigator:
https://github.com/theia-ide/theia/blob/18a0ab39d90845352f3fac46b490c7870902570e/packages/navigator/src/browser/navigator-widget.tsx#L154-L160

Looks like there is a bug in Paste it does not expect multiple URIs:
https://github.com/theia-ide/theia/blob/18a0ab39d90845352f3fac46b490c7870902570e/packages/navigator/src/browser/navigator-widget.tsx#L162-L171

copies a path as well

The URI, not the path.

I believe the issue can be closed thanks to the following pull-request which adds copy path:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vinokurig picture vinokurig  路  3Comments

akosyakov picture akosyakov  路  3Comments

cekvenich picture cekvenich  路  3Comments

vince-fugnitto picture vince-fugnitto  路  3Comments

fangnx picture fangnx  路  3Comments