Repository navigation
Add 'Open File' to change list side bar context menu - #2023
Conversation
return dispatcher to what it was
Add reveal in file manger call to repo list
joshaber
left a comment
There was a problem hiding this comment.
Thanks @shimpossible! I left some feedback, but nothing too major.
| enabled: this.props.status !== AppFileStatus.Deleted, | ||
| }, | ||
| { | ||
| label: 'Open file', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| * @param path The path of the file relative to the root of the repository | ||
| */ | ||
| readonly onRevealInFileManager: (path: string) => void | ||
| /** |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| import { WorkingDirectoryFileChange } from '../../models/status' | ||
| import { CSSTransitionGroup } from 'react-transition-group' | ||
|
|
||
| import { openFile } from '../../lib/open-file' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| import { assertNever } from '../../lib/fatal-error' | ||
| import { FoldoutType } from '../../lib/app-state' | ||
|
|
||
| import { Repository } from '../../models/repository' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| /> | ||
| } | ||
|
|
||
| private onRevealInFileManager(repository: Repositoryish) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
joshaber
left a comment
There was a problem hiding this comment.
Just one style nit left and I think this'll be good to go!
| * @param path The path of the file relative to the root of the repository | ||
| */ | ||
| readonly onRevealInFileManager: (path: string) => void | ||
| /** |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
💯 |
|
Awesome, thank you @shimpossible! |
Add context menus for opening items with configurable apps
supports #2009