![]() My own Nemo Action solution is similar to yours but instead of using pyRenamer it uses 'thunar -bulk-rename' which I think is a better solution: only files that were selected are shown, no directory tree, dynamic preview (always displayed), and regex support in search/replace. ![]() The first of these reasons is the most important as pyRenamer can not be given a list of the files you want to rename, it can only take only a directory and you must highlight the files you wish to rename using the pyRenamer interface once it has loaded. Using 'thunar -bulk-rename' with my Nemo Action (below) only the files you have selected in Nemo are shown by the bulk rename GUI. In case you don't know, Thunar is a file manager. Home/user/Temp/TestBulkRename/TestBulkRename-1 My only criticism of it is that it does not store your window resizing preferences between invocations.Ĭode: Select all Bulk command = /Path/To/BashScriptAbove %F I only have it installed for it's '-bulk-rename' option which brings up the bulk rename window without loading the file manager itself (which I never use). home/user/Temp/TestBulkRename/Path With Spaces In It/Test Bulk Rename-2 home/user/Temp/TestBulkRename/Path With Spaces In It/Test Bulk Rename-1 home/user/Temp/TestBulkRename/TestBulkRename-3įile:///home/user/Temp/TestBulkRename/TestBulkRename-1 file:///home/user/Temp/TestBulkRename/TestBulkRename-2 file:///home/user/Temp/TestBulkRename/TestBulkRename-3 home/user/Temp/TestBulkRename/TestBulkRename-2 home/user/Temp/TestBulkRename/Path With Spaces In It/Test Bulk Rename-3įile:///home/user/Temp/TestBulkRename/Path0With0Spaces0In0It/Test0Bulk0Rename-1 file:///home/user/Temp/TestBulkRename/Path0With0Spaces0In0It/Test0Bulk0Rename-2 file:///home/user/Temp/TestBulkRename/Path0With0Spaces0In0It/Test0Bulk0Rename-3 Renaming a Single Directory With the rename Command. The rename command uses the following syntax: rename options 's/ expression/ replacement/' file name The command renames the file by replacing the first occurrence of the expression with the replacement. For example, if we want to rename Directory1 to ExampleDirectory: rename 's. ![]() I would say it looks like a bug to me but I downloaded the Nemo source and had a look at the bulk rename code, I followed it as far as 'g_file_get_uri' (which is a call to the GTK library and no longer part of the code written for Nemo) and could not see anthing which would swap a space for a 0. It's truly very strange indeed - I suppose I am overlooking something. if anyone knows what then I'd love to know. ![]() 'thunar -bulk-rename %F' can not cope with unquoted uris which contain spaces in the 'file:///path with/spaces in' form anyway (I tested that as well). ![]() But if it wasn't for the space to 0 translation a script could be written to sort it out. Not that this matters much as my Nemo Action file works just fine. Rw-r-r- 1 kk wheel 0 Mar 6 18:21 Super Random game.nes rw-r-r- 1 kk wheel 0 Mar 6 18:21 Super Mario Bros.nes Mattst wrote:I found your post with a web search trying to solve the same problem.Using the Perl rename utility, if available, find. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |