2
0
mirror of https://github.com/qarmin/czkawka synced 2024-11-10 07:10:40 +00:00
Commit Graph

235 Commits

Author SHA1 Message Date
Rafał Mikrut
bbf7eb3d09
Use Center instead CenterAlways(GTK Bug) (#361) 2021-05-17 11:06:22 +02:00
Rafał Mikrut
cc0dcc2714
Fix excluded items on Windows (#324) 2021-05-08 21:54:01 +02:00
Rafał Mikrut
b54748920f
Always center Windows and fix(probably) settings icon (#323) 2021-05-08 20:33:09 +02:00
Rafał Mikrut
b08cedd5a6
Allow to set minimal file size to caching (#321) 2021-05-06 21:54:44 +02:00
Rafał Mikrut
775b6b4f10
Fix crashes with too small message queue (#316) 2021-04-14 08:23:59 +02:00
Rafał Mikrut
72224db7f6
Fix a little unsorted results (#304) 2021-04-08 18:28:29 +02:00
Rafał Mikrut
50ad3f9873
Update to Rust 1.5.1 (#302) 2021-03-27 13:14:02 +01:00
Rafał Mikrut
8c1140e40d
Allow to put files to trash instead fully remove them (#284) 2021-03-11 14:31:59 +01:00
Rafał Mikrut
8ad0b907ec
Open file when clicking at the Enter button (#285) 2021-03-11 14:31:41 +01:00
Rafał Mikrut
43d76888c6
Add confirmation dialog when removing files with delete key (#282) 2021-03-07 08:57:48 +01:00
Rafał Mikrut
77cdf7e6a4
Add confirmation dialog when trying to remove all files in group (#281) 2021-03-06 15:56:39 +01:00
Rafał Mikrut
17f97bd958
Add option to turn off cache (#263) 2021-03-04 12:09:53 +01:00
Rafał Mikrut
8382f77687
Fix crash when changing tabs (#280) 2021-02-27 07:30:30 +01:00
Rafał Mikrut
13add1cbed
Add hardlinking support for GUI (#276) 2021-02-24 13:53:46 +01:00
Rafał Mikrut
35c47b3230
Add new settings window (#262) 2021-02-23 09:40:19 +01:00
krzysdz
4c205ce098
Windows taskbar progress support (#264)
* Initial Windows taskbar progress support

* Changes to COM (un)init

It turns out winapi exposes IIDs through a `uuidof()` function of interfaces, so the copied one can be removed.

* Don't return error codes

Now the `TaskbarProgress` functions fail silently.
The `TaskbarProgress` struct now will always be created (even in case of errors in initialisation), but it won't do anything.

* Fix builds for other systems

* Formatted code

* Fix progress shown after the operation finished

A progress update was received after the stop event.
Also `as_ref()` was removed in many places (I don't even know why it was there).

* Remove redundant call to hide

It's already called by the `glib_stop_receiver` receiver.

* Release the ITaskbarList3 and call CoUninitialize at exit

Because objects moved to closures used as fallbacks in GTK have [static lifetimes](https://gtk-rs.org/docs-src/tutorial/closures#closures), the `TaskbarProgress` will never be dropped.
To workaround this problem a `release` function is called when the main window is closed. This function behaves like `drop`, but sets the struct in a valid "empty" state, so that calling `release`/`drop` again won't cause problems.

* Don't set the NORMAL state manually

Because only NOPROGRESS and INDETERMINATE states are used, there is no need to set the NORMAL state when changing the progress value.

Now `set_progress_value` will also change the `TaskbarProgress::current_state` if such situation occurs.

> Unless [SetProgressState](https://docs.microsoft.com/en-us/windows/desktop/api/shobjidl_core/nf-shobjidl_core-itaskbarlist3-setprogressstate)
> has set a blocking state (TBPF_ERROR or TBPF_PAUSED) for the window, a call to **SetProgressValue** assumes the TBPF_NORMAL
> state even if it is not explicitly set. A call to **SetProgressValue** overrides and clears the TBPF_INDETERMINATE state.

See the [SetProgressValue documentation](https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-itaskbarlist3-setprogressvalue#how-the-taskbar-button-chooses-the-progress-indicator-for-a-group)
2021-02-20 12:24:36 +01:00
Dan Dascalescu
c035514a0e
Improve English for "Ask in future" button (#261) 2021-02-20 09:56:23 +01:00
Rafał Mikrut
ea474c2af0 Fix typo in window progress 2021-02-03 20:23:28 +01:00
Rafał Mikrut
9f3da0e70f
Add support for CRC32 and XXH3 hash (#243) 2021-02-03 19:59:06 +01:00
Rafał Mikrut
2c2004b316
Change progress dialog to progress window (#229) 2021-01-25 18:23:42 +01:00
Rafał Mikrut
49ddc041ee
Add about dialog (#226) 2021-01-24 12:01:02 +01:00
Rafał Mikrut
42af724681
Add support for moving selection by keyboard to update similar image preview (#223) 2021-01-21 07:24:28 +01:00
Rafał Mikrut
0c10a6a0ba
Sort Results by path where it is possible (#211) 2021-01-15 10:43:23 +01:00
Rafał Mikrut
56763846ac
Add missing popover info for invalid symlinks (#209) 2021-01-14 20:38:29 +01:00
Rafał Mikrut
eeaaea20cc
Add broken files support (#202) 2021-01-12 20:06:12 +01:00
Rafał Mikrut
b41a22a021
Fix error when closing dialog progress by X (#199) 2021-01-12 11:51:54 +01:00
Rafał Mikrut
80bbc9ba85
Move image cache to cache from config dir (#197) 2021-01-11 09:54:23 +01:00
Rafał Mikrut
7992ba30de
Fix included/excluded files which contains commas (#195) 2021-01-10 20:44:10 +01:00
Rafał Mikrut
ff85453394
Split Gui code into multiple files (#194) 2021-01-10 20:12:08 +01:00
Rafał Mikrut
683e0f9117
Use directly TreeView instead ScrolledWindow->TreeView (#190) 2021-01-10 13:45:05 +01:00
Rafał Mikrut
30bab75a5d
Modernize notebook handling (#189) 2021-01-10 12:06:25 +01:00
Rafał Mikrut
4bbdbd078d
Simplify a little code (#184) 2021-01-07 22:10:11 +01:00
Rafał Mikrut
784b5be06a
Only show preview when 1 image is selected (#183) 2021-01-07 22:09:49 +01:00
Rafał Mikrut
8d4a264c6d
Use master gtk plugin again (#179)
* Use master gtk plugin again
2021-01-03 16:54:07 +01:00
Rafał Mikrut
72d74dd8e2
Adds Mac GUI (#160)
* Adds Mac GUI

* Update Rust to 1.4.9
2020-12-31 19:53:49 +01:00
Rafał Mikrut
a8c0a80bcf
Add manual excluding directories (#168) 2020-12-31 10:26:07 +01:00
Rafał Mikrut
97f7c8370d
Hide preview when deleting images or symlinking it (#167) 2020-12-31 10:12:31 +01:00
Rafał Mikrut
083db7aa51
Add manual adding of directories (#165) 2020-12-30 13:41:18 +01:00
Rafał Mikrut
10c32c90c0
Add support for delete button (#159) 2020-12-29 19:31:09 +01:00
Rafał Mikrut
f622504356
Allow to select multiple entries in File Chooser (#154) 2020-12-29 08:45:51 +01:00
Rafał Mikrut
8a07dbed6b
Add selecting images with it's size (#138) 2020-12-26 12:53:40 +01:00
Rafał Mikrut
d84722aa51
Modernize popovers code and simplify later changes (#137) 2020-12-26 10:35:43 +01:00
Rafał Mikrut
880787a67f
Show errors in image previewer when failed to generate it (#130) 2020-12-23 21:16:40 +01:00
Rafał Mikrut
5672431257
Add minimal similarity level (#129) 2020-12-23 20:10:10 +01:00
Rafał Mikrut
865543c7d7
Add option to open folders by double right click (#128) 2020-12-22 20:04:16 +01:00
Rafał Mikrut
7c3b9681b1
Split symlink path to two path and file name (#127) 2020-12-21 21:19:59 +01:00
Rafał Mikrut
1d59199bb2
Add support for checking for invalid symlinks (#124) 2020-12-21 16:09:39 +01:00
Rafał Mikrut
4a33ff7d86
Add support for symbolic links (#123) 2020-12-19 14:39:42 +01:00
Rafał Mikrut
68c3c294c9
Add button to enable/disable in settings text view errors (#122) 2020-12-19 10:15:25 +01:00
Rafał Mikrut
a4d4a792e5
Add setting button to disable/enable previews(enabled by default) (#121) 2020-12-19 10:03:04 +01:00
Rafał Mikrut
f29e63d049
Add Image preview to similar images (#118) 2020-12-16 10:13:56 +01:00
Rafał Mikrut
40f981dcd3
Add custom selection/unselection (#117) 2020-12-14 13:07:35 +01:00
Rafał Mikrut
ff353c7014
Remove console window in Windows (#116) 2020-12-13 16:35:27 +01:00
Rafał Mikrut
7148abb8be
Add button to hide/show text view errors (#115) 2020-12-13 00:21:43 +01:00
Rafał Mikrut
30bd1f2f38
Add setting for deletion confirmation dialog (#114) 2020-12-12 23:41:48 +01:00
Rafał Mikrut
62e5e8e03e
Select longer names by default (#113) 2020-12-12 12:09:03 +01:00
Rafał Mikrut
c1afbe6b92
Fix errors in progress bar caused by dividing by 0 (#109) 2020-12-07 15:28:03 +01:00
Rafał Mikrut
6fab1a9368
Add option to save file, store settings and load them (#108) 2020-12-07 15:25:44 +01:00
Rafał Mikrut
a047380dbe Center dialog to current window 2020-12-02 17:34:19 +01:00
Rafał Mikrut
6d5ab1d98c
Removed unused stop, resume and pause buttons (#107) 2020-12-02 10:58:31 +01:00
Rafał Mikrut
7ac4a26229
Add progress bar (#106) 2020-12-02 10:25:27 +01:00
Rafał Mikrut
c62617df30 Release 1.4.0 2020-11-09 15:50:28 +01:00
Rafał Mikrut
29a0716be5
Add very small similarity level to finding similar images, add option to choose level from CLI, fix bug with duplicated entries in similar pictures (#104) 2020-11-09 12:55:27 +01:00
Rafał Mikrut
2815692205
Fix removing entries (#103) 2020-11-09 11:24:01 +01:00
Rafał Mikrut
88d47e49cf
Add select for all modes (#102) 2020-11-09 10:09:22 +01:00
Rafał Mikrut
3e61544ec4
Add support for multithreading to zeroed files (#101) 2020-11-08 19:01:48 +01:00
Rafał Mikrut
2f72dd9d19
Add multithread support to similar image finder (#98) 2020-11-08 07:41:29 +01:00
Rafał Mikrut
110d6015bc
Similar images improvements: (#97)
Headers without data
By default only checking for High Similarity(faster search)
2020-11-07 16:26:40 +01:00
Rafał Mikrut
5d4f4db8c1
Simplify some GUI code (#96) 2020-11-04 18:15:06 +01:00
Rafał Mikrut
ecebb3a1af
Implement finding duplicated music by tags/artist/year etc. (#95) 2020-11-02 21:56:07 +01:00
Rafał Mikrut
4429df2861
Refactore GUI into multiple files (#89) 2020-10-31 14:23:31 +01:00
Rafał Mikrut
777ac50f07
Add support for checking for zeroed files (#88) 2020-10-31 10:29:11 +01:00
Rafał Mikrut
7112ff6b92
Add support for checking same file names (#84) 2020-10-24 20:44:21 +02:00
Rafał Mikrut
d996c3c46b
Add pre hash check (#83) 2020-10-24 06:56:39 +02:00
Rafał Mikrut
4d90e3170e
Remove warnings about non existent directories in Windows (#79) 2020-10-21 22:44:09 +02:00
Rafał Mikrut
aa63a14f68
Improve deleting files in Similar files in GUI (#75) 2020-10-17 12:14:25 +02:00
Rafał Mikrut
beb14f9f1d
Improve similar images GUI a little and add sorting to Similarity Enum (#73) 2020-10-15 17:51:47 +02:00
Rafał Mikrut
4fed419856
Added support for opening files by double clicks (#70) 2020-10-15 10:42:27 +02:00
Rafał Mikrut
1178e145ae
Add similar images support for GUI (#69) 2020-10-15 09:04:02 +02:00
Dariusz Niedoba
acfecd7ca3
Replace String with PathBuf for paths (#59) 2020-10-14 18:41:37 +02:00
Rafał Mikrut
67a775beff Release version 1.1 2020-10-10 21:36:25 +02:00
Rafał Mikrut
d001592c3f
Fix not removing from GUI empty folders which contains another empty folder (#57) 2020-10-10 12:56:07 +02:00
Rafał Mikrut
8bbb12c7d4
Add ability to stop task from GUI (#55) 2020-10-10 11:15:20 +02:00
Caduser2020
085da0369e
Improve code quality. (#52)
* Remove verbose constructs in core.

* Use self and const fn where appropriate.

* Remove needless borrows.

* Fix name in function arguments.

* Merge 'master' into quality

* Decrease function complexity.

* Run fmt.

* Fix clippy.

* Fix duplicate extension files.

* Fix excluded items.

* Fix allowed extensions (Part 2).

* Fix temporary files.
2020-10-09 22:32:08 +02:00
Rafał Mikrut
be30afdac6
Add support for searching in other thread (#51) 2020-10-07 22:22:39 +02:00
Rafał Mikrut
c725d1b850 Add /snap and /run to excluded directories by default 2020-10-06 21:12:14 +02:00
Rafał Mikrut
3065e0e2dd Added flexible notebook tabs at the top 2020-10-04 11:47:10 +02:00
Rafał Mikrut
8d263fdff2 Minimal file size in duplicate finder should be always greater than 0 2020-10-03 09:51:02 +02:00
Rafał Mikrut
df065115f6 Add confirmation dialog when deleting files 2020-10-02 08:57:40 +02:00
Rafał Mikrut
d7529cb64b Added support for Big, Temporary and empty file finder in GUI 2020-10-01 19:26:25 +02:00
Rafał Mikrut
d3bea0db85 Small general changes 2020-10-01 16:54:26 +02:00
Rafał Mikrut
ecc93484cf Fixed text,
Don't delete entry if folder/file wasn't deleted
2020-10-01 15:55:45 +02:00
Rafał Mikrut
f05bce615a Fixes not visible colors in light theme 2020-10-01 15:25:58 +02:00
Rafał Mikrut
000e4ad46b Added support for selective selecting of rows 2020-10-01 08:53:17 +02:00
Rafał Mikrut
7a1a9ea9f6 Change SystemTime to u64 2020-10-01 06:53:10 +02:00
Rafał Mikrut
679bbafbd6 Added ability to reverse selection 2020-09-30 18:22:50 +02:00
Rafał Mikrut
f550b42fc2 Add support for selecting and unselecting all records in duplicate finder 2020-09-30 16:38:45 +02:00
Rafał Mikrut
4bca6a133d Add Save system 2020-09-30 14:47:39 +02:00
Rafał Mikrut
326ad5d746 Added probably all functionality to upper notebook(connection of buttons) 2020-09-29 23:00:15 +02:00
Rafał Mikrut
6f516223a5 Added logic to radio buttons to select method of duplicate finder 2020-09-29 21:17:58 +02:00
Rafał Mikrut
b91a115eac Fixes missing multiple values in excluded and included directories
Added support for recursive button
2020-09-29 20:19:36 +02:00
Rafał Mikrut
4a27b2b3d9 Added support for deleting selected files and folders 2020-09-29 18:44:20 +02:00
Rafał Mikrut
801b9083da Disable selection of header 2020-09-29 13:50:31 +02:00
Rafał Mikrut
338352f384 Added checking for duplicates by checking hash of first 1MB of file 2020-09-26 20:46:35 +02:00
Rafał Mikrut
85432f1c18 Fix some typos in words and remove empty space 2020-09-26 17:16:12 +02:00
Rafał Mikrut
8161a1c59b Big code refactoring 2020-09-26 16:52:13 +02:00
Rafał Mikrut
45e0bde981 Create basic function to disable selecting object 2020-09-25 20:29:09 +02:00
Rafał Mikrut
4b96634305 Added support for different background colors in tree rows 2020-09-25 17:47:40 +02:00
Rafał Mikrut
468c2d7a67 Unified look of enum elements 2020-09-24 22:25:24 +02:00
Rafał Mikrut
05684a9051 Read more info from GUI fields 2020-09-24 16:11:59 +02:00
Rafał Mikrut
c7b9daaff2 Add basic scroll window to include and exclude directory folders 2020-09-24 11:58:59 +02:00
Rafał Mikrut
be2d4ed77c Added simple selecting multiple entries 2020-09-23 22:05:44 +02:00
Rafał Mikrut
5cb3a264ac Basic included folder in Glade 2020-09-23 14:55:11 +02:00
Rafał Mikrut
85b4190e8f Add support for version argument e.g.
`czkawka_cli --version`
2020-09-23 12:17:19 +02:00
Rafał Mikrut
ab71ee55ed Respect Clippy and minimal size value 2020-09-22 20:35:37 +02:00
Rafał Mikrut
aba4e65fb8 Add empty folder support for GUI 2020-09-22 11:24:55 +02:00
Rafał Mikrut
b1426d7f95 Added basic printing results in tree_view 2020-09-20 11:32:55 +02:00
Rafał Mikrut
481b899b21 Add support for checking how much data was read by tool 2020-09-19 08:20:49 +02:00
Rafał Mikrut
cf127d5c36 Add errors and warnings class 2020-09-18 07:32:37 +02:00
Rafał Mikrut
4757b28486 Simplify code with duplication and checking 2020-09-17 12:07:58 +02:00
Rafał Mikrut
0f06ed636a Improved searching and printing duplicated entries,
Saving to file
2020-09-15 19:17:13 +02:00
Rafał Mikrut
c28b5a8a2f Trying to add button state to GTK 2020-09-14 20:44:59 +02:00
Rafał Mikrut
cff5ac93c4 Added support for non recursive search 2020-09-12 13:25:23 +02:00
Rafał Mikrut
b1ddfad0d1 Remove printing 2020-09-09 21:41:44 +02:00
Rafał Mikrut
ba6c0281a7 Remove unused functions 2020-09-09 21:38:48 +02:00
Rafał Mikrut
b19612cfdf Added support for different buttons events for different notebook tabs 2020-09-09 21:32:23 +02:00
Rafał Mikrut
feee8c6a83 Add basic search 2020-09-08 09:41:22 +02:00
Rafał Mikrut
b2d1b7b779 Add basic TreeView 2020-09-07 21:37:18 +02:00
Rafał Mikrut
49403751e5 Started thinking about GTK rs functions 2020-09-07 19:16:09 +02:00
Rafał Mikrut
29ca30aea0 Small glade changes 2020-09-07 16:07:29 +02:00
Rafał Mikrut
a47ce77bc6 Fixed crash with invalid glade file 2020-09-06 14:27:29 +02:00
Rafał Mikrut
9013f447f0 Start creating basic Orbtk GUI 2020-09-05 16:25:19 +02:00
Rafał Mikrut
22e7031d3c Fix window GTK name 2020-09-05 09:05:45 +02:00
Rafał Mikrut
e22ff1b362 Add basic glade file 2020-09-04 21:12:18 +02:00
Rafał Mikrut
9d4de08ece Use different modules for library and GUI and CLI apps 2020-09-01 19:34:39 +02:00