TagSpaces is an offline, open source, document manager with tagging support
feat: adding shortcut to renaming folder dialog in folder details
Ilian Sapundshievac5f318e412e
diff --git a/app/perspectives/grid-perspective/components/GridPagination.tsx b/app/perspectives/grid-perspective/components/GridPagination.tsxindex bda25182a..4f7920d72 100644--- a/app/perspectives/grid-perspective/components/GridPagination.tsx+++ b/app/perspectives/grid-perspective/components/GridPagination.tsx@@ -23,6 +23,7 @@ import Typography from '@mui/material/Typography';import Tooltip from '-/components/Tooltip';import Grid from '@mui/material/Grid';import Box from '@mui/material/Box';+import ButtonBase from '@mui/material/ButtonBase';import Pagination from '@mui/material/Pagination';import { bindActionCreators } from 'redux';import AppConfig from '@tagspaces/tagspaces-platforms/AppConfig';@@ -77,6 +78,7 @@ interface Props {currentDirectoryPath: string;searchResultCount: number;onContextMenu: (event: React.MouseEvent<HTMLDivElement>) => void;+ openRenameEntryDialog: () => void;onClick: (event: React.MouseEvent<HTMLDivElement>) => void;updateCurrentDirEntries: (dirEntries: TS.FileSystemEntry[]) => void;// eslint-disable-next-line react/no-unused-prop-types@@ -101,6 +103,7 @@ function GridPagination(props: Props) {currentDirectoryTags,currentDirectoryPath,currentDirectoryDescription,+ openRenameEntryDialog,gridPageLimit,currentPage,files@@ -381,12 +384,11 @@ function GridPagination(props: Props) {position: 'relative'}}>- <Typography+ <Boxstyle={{display: 'flex',alignItems: 'center',overflow: 'auto',- fontSize: '1.5rem',padding: 10,width: 'fit-content',background: theme.palette.background.default,@@ -395,9 +397,14 @@ function GridPagination(props: Props) {color: theme.palette.text.primary}}>- {folderName}+ <ButtonBase+ style={{ fontSize: '1.5rem' }}+ onClick={openRenameEntryDialog}+ >+ {folderName}+ </ButtonBase><TagsPreview tags={currentDirectoryTags} />- </Typography>+ </Box>{(directories.length > 0 || pageFiles.length > 0) && (<Typographystyle={{diff --git a/app/perspectives/grid-perspective/components/MainContainer.tsx b/app/perspectives/grid-perspective/components/MainContainer.tsxindex 09d7b61dc..5918b1a17 100644--- a/app/perspectives/grid-perspective/components/MainContainer.tsx+++ b/app/perspectives/grid-perspective/components/MainContainer.tsx@@ -896,6 +896,7 @@ function GridPerspective(props: Props) {showDetails={showDetails.current}showDescription={showDescription.current}showDirectories={showDirectories.current}+ openRenameEntryDialog={props.openRenameEntryDialog}showTags={showTags.current}thumbnailMode={thumbnailMode.current}entrySize={entrySize.current}diff --git a/app/perspectives/list/components/MainContainer.tsx b/app/perspectives/list/components/MainContainer.tsxindex 21d80481b..79d014233 100644--- a/app/perspectives/list/components/MainContainer.tsx+++ b/app/perspectives/list/components/MainContainer.tsx@@ -899,6 +899,7 @@ function GridPerspective(props: Props) {showDetails={showDetails.current}showDescription={showDescription.current}showDirectories={showDirectories.current}+ openRenameEntryDialog={props.openRenameEntryDialog}showTags={showTags.current}thumbnailMode={thumbnailMode.current}entrySize={entrySize.current}