This repository has been archived by the owner on Apr 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/add file/folder manipulation commands to explorer (#1839)
* add yank and paste functionality [WIP] * add yank paste commands and reducer to the store * add initial working yank and paste command functionality * allow yanks to be stored as array for multiselecting * add timeout to remove yanked items after a minute idle add leave handler to reset yank and paste register allow toggle functionality if item already yanked * add h and l to expand and collapse dirs * add initial undo register and hopeless transitions * [WIP] add initial working..not fully tested undo functionality * move logic out of split into epics - for undo funcitionality also add guards if none present and remove an undo if successful from the register * add is focused to sidebar type * expose is focused method and check for it before applying bindings * add initial tests for yank epic * add epic test [wip] * remove types for memory fs since it needs to be required? * remove unsused vars * remove paste folder in test * add delete undo functionality add new methods to filesystem to have it control the shell commands * fix lint error * fix config typing typo * add true delete command and associated function rename methods of filesystem * fix broken utility function * add tests for Explorer file system * fix failing test * add coverage output directory * update tests - add move collection add is ci utility * commit utility file * fix changed typing to moveNodes function * add tests for small utilities * rename persist file function * switch to use of path.join in moving * finalise animation and tidy up epics * add reducer tests, use lodash utilities not homegrown * fix tests [WIP] fix epic typing for delete * fix notification message * fix delete epic and map to refresh * inject promisify as well as fs into oni file system * fix type errors * inject promisify and [wip] mock in jest test * refactor move logic out of split into filesystem add epic for pasting * fix undo functionality * refactor some method names for readablility * consolidate actions for typing and reuse * delegate error handling to epic catch clauses for greater flexibility as this gives back access to the observable so potentially a retry could be attempted or map to another action etc. * refactor notifications into epics fix jest test * add error notification with reason * consolidate replicated code into a function * set failures to warning level * fix tests.ts and ad log to paste * add get source node method to use to ensure undo causes expansion * move jest test to unit tests dir :sad: * add passing paste epic test * rename explorer filestystem tests * move fs-extra to deps add moar tests * add undo epic tests * add test for deletion in undo epic * remove redundant function and replace with fs-extra fn * add clear update functionality to prevent re-animating * add test for clear update epics * gate bindings not to apply if commandline or menu are open * fix paste action error handling * fix tests by ensuring mocks are async * import specific helpers from rxjs not all of observable fix tests simplify updating * set jest to collect coverage from components dir only
- Loading branch information
Showing
20 changed files
with
1,531 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.