Skip to content

Commit

Permalink
feat: Improved message readability when renaming a file. (weirongxu#573)
Browse files Browse the repository at this point in the history
* Improved message readability when renaming a file.

* Removing duplicate variable - Improved message readability when renaming a file

* Syntax fix - Improved message readability when renaming a file.ts

* Fixed syntax with project settings.

* feat: remove renameInCwd

---------

Co-authored-by: JrmLg <[email protected]>
  • Loading branch information
2 people authored and xusiyuan841028 committed Jun 18, 2024
1 parent e41908c commit d15c070
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/source/sources/file/fileActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,11 +645,7 @@ export function loadFileActions(action: ActionSource<FileSource, FileNode>) {

let targetPath: string | undefined;

targetPath = await input(
`Rename: ${node.fullpath} ->`,
node.fullpath,
'file',
);
targetPath = await input(`Rename: `, node.fullpath, 'file');

targetPath = targetPath?.trim();
if (!targetPath) {
Expand Down

0 comments on commit d15c070

Please sign in to comment.