Commit graph

316 commits

Author SHA1 Message Date
ChristianVisintin b3537afd2e Check value in set_progress 2020-12-09 16:29:35 +01:00
ChristianVisintin 5e0b130123 Improved sftp and I/O in general: set buffer size to 65536 2020-12-06 20:59:45 +01:00
ChristianVisintin 0ed6bd30f1 Fixed help popup 2020-12-06 18:06:42 +01:00
ChristianVisintin 357c0c9189 Fixed mouse captures issue with the terminal 2020-12-06 10:55:15 +01:00
ChristianVisintin e015f558c9 lol, removed blinking texts (that I couldn't see on my terminal) 2020-12-06 10:48:06 +01:00
ChristianVisintin be60ae1705 Enlarged yes/no dialog 2020-12-06 10:43:41 +01:00
ChristianVisintin 4017739dbb Don't c align text in yes/no dialog 2020-12-06 10:39:39 +01:00
ChristianVisintin 8e8247c4a9 Multi-line popups; wrap texts and align popup texts to the center 2020-12-05 23:07:23 +01:00
ChristianVisintin 79fadf64de Align popup texts to center 2020-12-05 22:56:09 +01:00
ChristianVisintin bcaaab3c21 Fixed underflow 2020-12-05 21:09:07 +01:00
ChristianVisintin a0b8af8bf1 Fixed progress bar optimizations (before did nothing) 2020-12-05 19:36:46 +01:00
ChristianVisintin 7e5e5d2df2 Report errors as alerts 2020-12-05 19:36:33 +01:00
ChristianVisintin d73d56576c Keep exlorer entry index (if possible); reset only when changing directory 2020-12-05 18:31:41 +01:00
ChristianVisintin 28a4bed8fa Ctrl+Q quit; <esc> just disconnect 2020-12-05 17:04:39 +01:00
ChristianVisintin 1f4998b1c1 Removed header from filetransfer activity 2020-12-05 16:56:11 +01:00
ChristianVisintin 9bb19abd0c Write current path on explorer tabs 2020-12-05 16:32:16 +01:00
ChristianVisintin a7c2de0669 Added Scp file transfer to ui 2020-12-05 15:21:01 +01:00
ChristianVisintin b45440586b FsFile as argument for both recv_file and send_file 2020-12-05 14:52:53 +01:00
ChristianVisintin 54c02cd4e2 on_sent and on_recv methods for file transfer to finalize streams 2020-12-04 18:25:59 +01:00
ChristianVisintin 82a19dd089 Welcome messages 2020-12-04 14:00:23 +01:00
ChristianVisintin a63af295de Fixed ui auth 2020-12-03 17:23:36 +01:00
ChristianVisintin 175acd9f5b Wait, file_size in recv is completely useless 2020-12-03 13:43:40 +01:00
ChristianVisintin a328a4f751 Added to FileTransferProtocol bool secure flag to Ftp 2020-12-03 08:16:07 +01:00
ChristianVisintin 231f83810c FileTransferActivity: ftp is now allowed 2020-12-01 16:43:03 +01:00
ChristianVisintin ca797558d7 Allow FTPS/FTP; added secure param 2020-12-01 16:41:15 +01:00
ChristianVisintin c19416abdd Layout error 50% width 2020-12-01 16:03:48 +01:00
ChristianVisintin cd3ffae285 fmt 2020-12-01 15:14:49 +01:00
ChristianVisintin 3944367fb3 Added FTP/FTPs options 2020-12-01 15:14:33 +01:00
ChristianVisintin bc17c9bbc1 Split filetransfer_activity into different files 2020-12-01 14:59:13 +01:00
ChristianVisintin 4510b9c6b9 Wrap log records using textwrap crate 2020-12-01 12:32:33 +01:00
ChristianVisintin 39334f6451 Fmt activity 2020-12-01 11:19:47 +01:00
ChristianVisintin bfe05ceb07 It is now possible to enter symlinks 2020-12-01 11:12:58 +01:00
ChristianVisintin 698db4219c Removed warn about unused log level 2020-11-30 21:02:58 +01:00
ChristianVisintin 4e1928866e Local explorer color changed to Yellow, since barely visible on some terminals (such as windows dos) 2020-11-30 21:01:54 +01:00
ChristianVisintin 5306d6d027 Sort file entries by name 2020-11-30 16:07:13 +01:00
ChristianVisintin b5c47b9470 Redraw interface only if needed 2020-11-30 14:38:14 +01:00
ChristianVisintin 015a17d9f7 Fixed help 2020-11-30 14:27:48 +01:00
ChristianVisintin 6181439e65 UI improvements 2020-11-30 14:20:10 +01:00
ChristianVisintin c8a2419a4f PageUp/PageDown for explorer TAB 2020-11-30 14:12:19 +01:00
ChristianVisintin 7960776abb code fmt 2020-11-30 14:02:09 +01:00
ChristianVisintin 3e9d77cfac Progress bar: write ETA 2020-11-30 13:50:34 +01:00
ChristianVisintin 3d622b6b68 Write progress bar only if a significant progress has been made (0.5% at least) 2020-11-30 13:33:34 +01:00
ChristianVisintin a7253e8082 Goto command: support for relative paths 2020-11-30 11:24:14 +01:00
ChristianVisintin abf2124b09 Fixed log box 2020-11-30 11:17:38 +01:00
ChristianVisintin 6c47f4a426 Enlarged YesNo dialog popup 2020-11-30 10:37:01 +01:00
ChristianVisintin ee0a5a176f Solved the annoying stuff related to this <https://github.com/rust-lang/rust/issues/59159>. 2020-11-30 08:36:11 +01:00
ChristianVisintin f48fdc48dd Fixed recursive recv from remote 2020-11-29 20:52:30 +01:00
ChristianVisintin 9b135200d7 Thanks to latest commit I can finally draw progress bar :D 2020-11-29 20:31:51 +01:00
ChristianVisintin 57a167ef5a Panic on FTP 2020-11-29 17:51:45 +01:00
ChristianVisintin 5383e55523 Removed FIXME 2020-11-29 17:47:32 +01:00
ChristianVisintin cd35dac4a5 Many fixes in UI; Help command 2020-11-29 17:46:56 +01:00
ChristianVisintin 28435aaeda Many fixes in UI 2020-11-29 17:05:12 +01:00
ChristianVisintin 9643280ab0 More logs, some improvements 2020-11-29 16:53:04 +01:00
ChristianVisintin 0ebbe40207 Update dir after upload/download 2020-11-29 16:37:25 +01:00
ChristianVisintin 74a49485b6 Simplified change dir and scan dir 2020-11-29 16:35:51 +01:00
ChristianVisintin 585ad19462 Ui fixes 2020-11-29 16:18:55 +01:00
ChristianVisintin a843a5a0de GOTO for remote 2020-11-29 16:18:50 +01:00
ChristianVisintin b300f510b8 Disconnect, don't quit on fatal error 2020-11-29 16:18:23 +01:00
ChristianVisintin 07ebf3cd1b Improved color match 2020-11-29 16:18:00 +01:00
ChristianVisintin badbddb240 fmt code 2020-11-29 15:48:57 +01:00
ChristianVisintin a2492d1442 Draw method 2020-11-29 15:48:44 +01:00
ChristianVisintin c99d194162 Larger popup 2020-11-29 15:27:07 +01:00
ChristianVisintin fbf1ec8997 Popup drawing 2020-11-29 15:26:37 +01:00
ChristianVisintin b43bbcfa7d Draw popup area 2020-11-29 15:03:31 +01:00
ChristianVisintin d5d39b6c3a Draw explorers 2020-11-29 15:01:02 +01:00
ChristianVisintin 87990d12b5 draw log list 2020-11-29 13:01:12 +01:00
ChristianVisintin c54cbed866 Restore input mode once download/upload finishes 2020-11-29 12:37:43 +01:00
ChristianVisintin a69b410ee0 transfer_prog member RFU 2020-11-29 12:36:36 +01:00
ChristianVisintin 840a2685bf Removed progress callback (not a priority atm) 2020-11-29 12:35:51 +01:00
ChristianVisintin e84e4ab2b1 Draw method reviewed 2020-11-29 11:55:02 +01:00
ChristianVisintin 6dc871e49a Context as Activity member; on_destroy context is released 2020-11-29 11:34:08 +01:00
ChristianVisintin 7e085096c8 Context as Activity member; on_destroy context is released 2020-11-29 11:33:59 +01:00
ChristianVisintin 00c81634ed Context cleanup 2020-11-28 12:32:36 +01:00
ChristianVisintin c3db372e3b Remote tab input event handler 2020-11-28 12:27:05 +01:00
ChristianVisintin be18cc426d Dirstack implementation for local 2020-11-28 12:11:59 +01:00
ChristianVisintin 55cf883581 FileExplorer dirstack 2020-11-28 12:05:15 +01:00
ChristianVisintin 1a4ad92146 filetransfer_recv 2020-11-28 12:01:01 +01:00
ChristianVisintin e60ebb2648 Progress cb 2020-11-28 11:37:42 +01:00
ChristianVisintin abcff4cdd2 Upload file (and save as...) 2020-11-28 11:03:46 +01:00
ChristianVisintin 4e25e4d7b4 typo 2020-11-27 18:26:04 +01:00
ChristianVisintin 9015481e43 File rename 2020-11-27 18:25:35 +01:00
ChristianVisintin d63dc2e2c8 CTRL + M (makedir) 2020-11-27 17:16:54 +01:00
ChristianVisintin 64c3d88318 CTRL + M (makedir) 2020-11-27 17:15:59 +01:00
ChristianVisintin dc7e7b726e CTRL + G (goto directory) 2020-11-27 17:10:00 +01:00
ChristianVisintin 3ddac307c1 Go to parent directory with <BACKSPACE> 2020-11-27 17:01:52 +01:00
ChristianVisintin 58911117bd Ctx before string in input cb 2020-11-27 16:49:33 +01:00
ChristianVisintin 266a9be524 Abort input using <ESC> 2020-11-27 16:47:46 +01:00
ChristianVisintin 6f7f81264a Delete fs entry (local) 2020-11-27 16:47:35 +01:00
ChristianVisintin 8e4314cc6f reload remote dir func 2020-11-27 16:47:22 +01:00
ChristianVisintin 91557a079d Pass context to callbacks 2020-11-27 16:46:56 +01:00
ChristianVisintin c139d3a117 Wrap selected element in auth_activity when at the end of the list; move also with <TAB> 2020-11-26 19:03:39 +01:00
ChristianVisintin 44392fe639 Working on input events for filetransfer activity 2020-11-25 16:58:15 +01:00
ChristianVisintin 4d4b195c75 Fixed callbacks 2020-11-25 16:12:21 +01:00
ChristianVisintin 2e45c8adae fmt 2020-11-25 12:05:36 +01:00
ChristianVisintin 4938613c18 Fixed YesNoDialog 2020-11-25 12:04:47 +01:00
ChristianVisintin 12e5166b4f fmt 2020-11-25 11:27:35 +01:00
ChristianVisintin 2d90eb15af Working on input events for filetransfer activity 2020-11-25 11:22:26 +01:00
ChristianVisintin 4431c70a65 Read one event fn 2020-11-25 10:26:37 +01:00
ChristianVisintin d8fc95462a Working on filetransfer activity 2020-11-24 22:34:17 +01:00
ChristianVisintin 39bd881468 Deleted ScpProtocol; use FileTransferProtocol 2020-11-24 22:33:35 +01:00
ChristianVisintin d871497a49 Working on main activity (FileTransferActivity) 2020-11-24 22:05:11 +01:00
ChristianVisintin 9eefafde59 Popup (auth activity OK) 2020-11-24 16:28:15 +01:00
ChristianVisintin 38e7fa7664 Input modes 2020-11-24 16:05:40 +01:00
ChristianVisintin 5a0e712237 Header 2020-11-24 15:24:31 +01:00
ChristianVisintin 1f217f7806 Auth activity input fields 2020-11-24 15:13:36 +01:00
ChristianVisintin 18db7f0305 enable/disable raw mode 2020-11-23 16:59:30 +01:00
ChristianVisintin d692cdf28d Too many things to do here... working on activity manager 2020-11-22 15:32:44 +01:00
ChristianVisintin d26be5984e Removed context tests; don't work on github actions... boring... 2020-11-22 11:47:32 +01:00
ChristianVisintin 6b67493280 Form submit 2020-11-22 11:45:37 +01:00
ChristianVisintin 5eb1ace958 Working on AuthActivity 2020-11-21 21:26:27 +01:00
ChristianVisintin 818408455e Added terminal to Context 2020-11-21 20:53:29 +01:00
ChristianVisintin 43ab9a9df0 Activity Trait 2020-11-21 17:39:36 +01:00
ChristianVisintin 2d29dfeb33 Remove IO event tests because in github actions doesn't work 2020-11-21 13:17:44 +01:00
ChristianVisintin 7f31cd6d83 UI context 2020-11-21 12:17:24 +01:00
ChristianVisintin 1a58e7bce4 Fixed input handler 2020-11-21 12:12:10 +01:00
ChristianVisintin 325fd8eeed Input handler 2020-11-21 11:42:24 +01:00