TagSpaces is an offline, open source, document manager with tagging support
adding option in order the single file click to select only the entry #909
Ilian Sapundshiev602f4480b61c
diff --git a/app/locales/en/core.json b/app/locales/en/core.jsonindex 030038241..02b5785c5 100644--- a/app/locales/en/core.json+++ b/app/locales/en/core.json@@ -389,6 +389,7 @@"entrySizeBig": "Large mode","singleClickOpenInternally": "Single click opens file internally","singleClickOpenExternally": "Single click opens file externally",+ "singleClickSelects": "Single click selects only","parentDirNotInLocation": "Unable to navigate! Parent folder not in the current location.","mustContainTheseTags": "Must contain all of these tags","atLeastOneOfTheseTags": "At least one of these tags",diff --git a/app/perspectives/grid-perspective/src/index.js b/app/perspectives/grid-perspective/src/index.jsindex 6e165eef2..8d85423c5 100644--- a/app/perspectives/grid-perspective/src/index.js+++ b/app/perspectives/grid-perspective/src/index.js@@ -373,9 +373,8 @@ class GridPerspective extends React.Component<Props, State> {this.props.openFile(fsEntry.path, fsEntry.isFile);} else if (this.state.singleClickAction === 'openExternal') {this.props.openFileNatively(fsEntry.path);- } else {- this.props.openFile(fsEntry.path, fsEntry.isFile);}+ // else if (this.state.singleClickAction === 'selects') {}}}};@@ -1205,6 +1204,17 @@ class GridPerspective extends React.Component<Props, State> {</ListItemIcon><ListItemText inset primary={i18n.t('core:singleClickOpenExternally')} /></MenuItem>+ <MenuItem+ data-tid="gridPerspectiveSingleClickSelects"+ title={i18n.t('core:singleClickSelects')}+ aria-label={i18n.t('core:singleClickSelects')}+ onClick={() => this.changeSingleClickAction('selects')}+ >+ <ListItemIcon>+ {this.state.singleClickAction === 'selects' ? <RadioCheckedIcon /> : <RadioUncheckedIcon />}+ </ListItemIcon>+ <ListItemText inset primary={i18n.t('core:singleClickSelects')} />+ </MenuItem></Menu></div>);