Skip to content

Add 'Open File' to change list side bar context menu - #2023

Merged
joshaber merged 9 commits into
desktop:masterfrom
shimpossible:file-context-menus
Jun 16, 2017
Merged

joshaber merged 9 commits into
desktop:masterfrom
shimpossible:file-context-menus

Conversation

@shimpossible

Copy link
Copy Markdown
Contributor

Add context menus for opening items with configurable apps
supports #2009

@joshaber joshaber self-assigned this Jun 16, 2017

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @shimpossible! I left some feedback, but nothing too major.

Comment thread app/src/ui/changes/changed-file.tsx Outdated
enabled: this.props.status !== AppFileStatus.Deleted,
},
{
label: 'Open file',

This comment was marked as spam.

This comment was marked as spam.

* @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.

This comment was marked as spam.

import { WorkingDirectoryFileChange } from '../../models/status'
import { CSSTransitionGroup } from 'react-transition-group'

import { openFile } from '../../lib/open-file'

This comment was marked as spam.

Comment thread app/src/ui/repositories-list/index.tsx Outdated
import { assertNever } from '../../lib/fatal-error'
import { FoldoutType } from '../../lib/app-state'

import { Repository } from '../../models/repository'

This comment was marked as spam.

Comment thread app/src/ui/repositories-list/index.tsx Outdated
/>
}

private onRevealInFileManager(repository: Repositoryish) {

This comment was marked as spam.

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@shimpossible

Copy link
Copy Markdown
Contributor Author

💯

@joshaber

Copy link
Copy Markdown
Contributor

Awesome, thank you @shimpossible!

@joshaber
joshaber merged commit 161d31b into desktop:master Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants