this.props.autofocus.trigger()}>
+
@@ -71,19 +66,21 @@ export default class DialogView extends React.Component {
)}
-
-
+
diff --git a/lib/views/directory-select.js b/lib/views/directory-select.js
new file mode 100644
index 0000000000..e22137771f
--- /dev/null
+++ b/lib/views/directory-select.js
@@ -0,0 +1,59 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import {remote} from 'electron';
+
+import {TabbableTextEditor, TabbableButton} from './tabbable';
+
+const {dialog} = remote;
+
+export default class DirectorySelect extends React.Component {
+ static propTypes = {
+ buffer: PropTypes.object.isRequired,
+ disabled: PropTypes.bool,
+ showOpenDialog: PropTypes.func,
+ tabGroup: PropTypes.object.isRequired,
+
+ // Atom environment
+ currentWindow: PropTypes.object.isRequired,
+ commands: PropTypes.object.isRequired,
+ }
+
+ static defaultProps = {
+ disabled: false,
+ showOpenDialog: /* istanbul ignore next */ (...args) => dialog.showOpenDialog(...args),
+ }
+
+ render() {
+ return (
+