summaryrefslogtreecommitdiffstats
path: root/src/commands/bulk_rename.rs
AgeCommit message (Collapse)Author
2023-07-11remember to remove the file created by bulk_rename even if we don't complete ↵Jeff Zhao
the command
2022-12-04Bulk-rename works with only current file (#234)DLFW
If no file is selected, bulk-rename will use the "current" file (the one with the cursor) for renaming. Adds method `JoshutoDirList.selected_or_current -> Vec<&JoshutoDirEntry>` which can be used anywhere to get this a collection of selected files _or_ the current one if none is selected.
2022-08-31use hashmap and uuid to store tabs (#194)Jeff Zhao
This is preliminary changes in order to track preview threads and progress. The current setup is we just kick off a new thread to load the given directory whenever we see the directory content does not exist in history. We don't track these threads or which tab these requests came from. When the result is returned, we just assign it to the current tab, instead of the tab that actually initiated the request. By adding uuid, we can now track which tab requested the preview and assign it accordingly. This will also allow us to track the status of the preview, so we can display to the user a loading state, when a directory is taking longer than usual to load. This will also solve the problem of kicking off multiple threads to read the same directory for the same tab. Now these threads can be stored and tracked. - side: fix reload not honouring tab sort options - use tab specific options whenever we need to reload stuff
2022-06-29rename TuiBackend to AppBackendJeff Zhao
- fix initial view not correctly offset
2022-06-28fix bulk_renameJeff Zhao
2022-06-28cargo fmtJeff Zhao
2022-06-27fix bulk_rename logic errorJeff Zhao
2022-06-27fix confirm_exit not workingJeff Zhao
2022-06-22Add `flat` command (#177)Noah Too
* add `flat` command * fix bulk_rename command * fix `open_file` commands * update docs * fix errors found by clippy * fix errors found by clippy::unnecessary-to-owned * fix open and open_with commands * fix: crash on root dirs
2022-02-24Fix clippy warnings (#144)sushi-shi
2022-01-26Fix: remove image preview on bulk rename (#132)Noah Too
* Fix: remove image preview on bulk rename * cargo fmt
2021-12-03bulk_rename now reads TMP_DIR environment variable for where to store ↵Jeff Zhao
temporary file
2021-11-27cargo clippyJeff Zhao
2021-05-29Clear the Screen Before Bulk Renaming (#62)Juan Miguel Angelo Rodriguez y Alvarez
* add sceen clearing before bulk_rename Co-authored-by: JMARyA <jmarya0@icloud.com>
2021-05-07add more automatic error handlingJeff Zhao
2021-05-02rework error typesJeff Zhao
- this should increase the amount of ? operators we can use
2021-05-01make index public attributeJeff Zhao
- remove unused code and add #[allow(dead_code)]
2021-04-29rename some structs that start with Joshuto to AppJeff Zhao
- reduce sharing global variables between modules
2021-04-16code cleanupJeff Zhao
2020-12-20fix char issue with bulk_renameJiayi Zhao
2020-09-19Change command to use an enum instead of polymorphismJiayi Zhao
2020-08-29big rework and dependency updateJiayi Zhao
- abstract JoshutoContext implementation behind functions - rework io workers in an attempt to fix a bug - update dependencies - remove JoshutoContextWorker
2020-06-06shell command now parses correctlyKamiyaa
- rework file operations - simpler model for listening on io_worker progress - cargo fmt/clippy
2020-03-18add default keymappings when config dneJiayi Zhao
- message colors are now yellow instead of cyan - there is now a wrapper around keymap hashmap
2020-03-16cargo clippyJiayi Zhao
2020-03-16better error handling for threadsJiayi Zhao
- code cleanup
2020-02-24fix bulk_rename to work with tui-rsJiayi Zhao
2020-02-16remove more codeJiayi Zhao
- remove curr_list field from tab - fixes many commands not working
2020-02-16remove ncurses dependencyJiayi Zhao
- clean up code - update theme config - fix localstate tracking file selection not selecting proper files
2020-02-11progress on switching to tui-rs for uiJiayi Zhao
2019-09-29change default behaviour of bulk_renameJiayi Zhao
2019-07-19changed how commands are handledJiayi Zhao
- arguments no longer go through wordexp (still working on a good alternative) other changes: - changed update_contents to reload_contents - opening files with mimetype entries are now moved from unix.rs to mimetypes.rs
2019-06-30use mv for bulk renaming filesJiayi Zhao
2019-06-30add bulk_rename commandJiayi Zhao