summaryrefslogtreecommitdiffstats
path: root/src/commands/open_file.rs
AgeCommit message (Collapse)Author
2020-09-19Change command to use an enum instead of polymorphismJiayi Zhao
2020-09-04io operations now give more informationJiayi Zhao
2020-08-30rework and fix issuesJiayi Zhao
- fixed bug where io tasks would not run when user is in a textfield or prompt - fixed bug where cut doesn't work - rework structs to have private fields and public functions - move IOWorkerObserver into seperate file - move code from TuiView to TuiFolderView
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-05-26open files now pass relative paths instead of full pathsKamiyaa
2020-04-18update to tui-rs 0.9Jiayi Zhao
2020-03-21fix open_file not forking properlyJiayi Zhao
2020-03-20add initial support for detecting mimetypesJiayi Zhao
2020-03-16cargo clippyJiayi Zhao
2020-03-11remove window module and fix unwrap none when opening fileJiayi Zhao
2020-03-02add tab widget for showing which tab we are onJiayi Zhao
- code cleanup - pageup and pagedown now work properly
2020-03-01fix issue where open_with does not workJiayi Zhao
2020-03-01add support for showing mimetype options with open_withJiayi Zhao
2020-02-24fix open_file_withJiayi Zhao
- fix event to not consume the first few inputs on switching to a terminal program
2020-02-22move the majority of rendering into its own widget: TuiViewJiayi Zhao
- textfield is now a widget as well - reduced code duplication with TuiView - add backtab support - add a message queue for notifications
2020-02-16remove ncurses dependencyJiayi Zhao
- clean up code - update theme config - fix localstate tracking file selection not selecting proper files
2020-02-16rework rendering system to use tui-rs widgetsJiayi Zhao
- move files around - delete some old ncurses code - integrate tui-rs styles and colors
2020-02-13more work on textfieldJiayi Zhao
2020-02-13fix initial preview not workingJiayi Zhao
2020-02-11progress on switching to tui-rs for uiJiayi Zhao
2020-02-09rework input thread and file operationsJiayi Zhao
- no longer depend on fs_extra for copy/paste files - in house solution preserves permissions - ioworkers are now queued, no more parallel io tasks - input thread now listens for ioworker threads as well - cargo fmt
2019-08-06Merge branch 'dev' of github.com:kamiyaa/joshuto into devJiayi Zhao
2019-08-06opening files now have returnsJiayi Zhao
2019-08-06make usercache persistentJiayi Zhao
2019-08-05decouple mimetypes and file opening moreJiayi Zhao
2019-08-05rework how mimetype configuration worksJiayi Zhao
- config file is now easier to visually parse and edit - fix opening files via open_with
2019-08-03Make xdg_open toggleableJiayi Zhao
- xdg_open option automatically opens file rather than asking user what to do - fix crash when trying to open something in an empty directory
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-29code cleanupJiayi Zhao
2019-06-29rework error systemJiayi Zhao
- JoshutoErrorKind now envelops all possible errors by Joshuto - JoshutoError behaves like std::io::Error - add JoshutoResult
2019-06-23make use of std::io::ResultJiayi Zhao
2019-06-05get_selected_paths now returns just a vec rather an optionJiayi Zhao
- fix not being able to select the current entry
2019-06-05replace unnecessary path copying with references insteadJiayi Zhao
2019-06-05fmt, clippy and make more fields privateJiayi Zhao
2019-06-04change pub fields to private and rename structs to ioJiayi Zhao
2019-05-29move hostname and username out of Context and into a static globalJiayi Zhao
2019-05-27move updating page state to cursor_move onlyJiayi Zhao
- refactor page state to take an end to prevent blank views on init - move functions out of JoshutoPanel into ui.rs - create a struct for configuring how to display content - new type JoshutoHistory - rename display_options to display_menu
2019-05-27refactor rename and search to make use of the command lineJiayi Zhao
- update all other commands that make use of textfield to use new interface
2019-05-26update commands to use new textfieldJiayi Zhao
2019-05-25changed the way new directories are handledJiayi Zhao
- now new directories are handled via the command line because it requires user input almost always
2019-05-05cargo fmtJiayi Zhao
2019-05-05use readline() instead of readline_with_initial with possibleJiayi Zhao
2019-04-30rework how mimetype.toml config worksJiayi Zhao
2019-04-30cargo clippyJiayi Zhao
2019-04-25refactor previewingJiayi Zhao
- remove dependency on preview.rs in commands/ - now can just call tab.refresh_preview to update the preview
2019-04-24major refactoringJiayi Zhao
- removed parent_list from JoshutoTab struct - parent_list will behave much like previewing now where the contents will be retrieved from the dictionary - completely remove DirHistory struct in favour of trait implemenation on top of HashMap
2019-04-24add more error handlingJiayi Zhao
- optimize/cleanup code
2019-04-22code cleanupJiayi Zhao
2019-04-19move back to tree_magic for mimetype parsingJiayi Zhao