Commit Graph

51 Commits (53e80301869b920019c1429878ce3fde3c3d3f25)

Author SHA1 Message Date
voussoir a823036f9d
Add command generate_thumbnail. 2021-06-03 19:18:13 -07:00
voussoir ed8241f2ef
Don't commit for every file. 2021-06-03 19:12:15 -07:00
voussoir 801226522b
Fix docstring referring to ids without --photos, --albums. 2021-06-03 19:08:55 -07:00
voussoir f6cb496db4
Check need_commit on purge_deleted_files. 2021-06-03 19:08:31 -07:00
voussoir 9f84435ad9
Add flag --delete-file. 2021-05-30 19:15:03 -07:00
voussoir b6e21e2e65
Add missing strip() on tag_list docstring. 2021-05-18 23:44:18 -07:00
voussoir 635db7e04f
Ensure that each searchargs-capable command mentions search --help. 2021-05-18 23:43:18 -07:00
voussoir 5d736f49ce
Clarify that these flags require a following argument. 2021-05-18 23:38:04 -07:00
voussoir 2d2e80824f
Migrate scripts from spinal.walk_generator to spinal.walk. 2021-05-17 17:01:11 -07:00
voussoir 26d5ff5730
Update closest_photodb to take starting path argument. 2021-05-16 21:08:51 -07:00
voussoir 1a944f574e
Add command tag-list. 2021-05-15 18:20:59 -07:00
voussoir 4bf5b6d824
Replace dev_ino with mtime, sha256.
This change was prompted by my discovery that under DrivePool, two
files can have the same dev, ino pair. It's understandable but the fact
of the matter is I don't want to rely on inodes any more.
Hashing has the downside of speed, but considering the time investment
of tagging files in the first place I think it should be worthwhile.
2021-02-03 12:12:47 -08:00
voussoir 6048f0915d
Add relocate's summary to the main help text. 2021-01-28 17:06:14 -08:00
voussoir 0d918efe4c
Fix symlink pruning not checking for directory links. 2021-01-28 17:05:20 -08:00
voussoir 1511852e94
Use get_photos_from_args in export to reduce dupe code. 2021-01-28 17:04:38 -08:00
voussoir 60ac8116aa
Add delete command. 2021-01-28 17:03:19 -08:00
voussoir c4ea7c31ac
Add my usual format handler to logger under etq_cli. 2021-01-28 16:54:35 -08:00
voussoir bf601d7ab1
Pass LOG_LEVEL to closest_photodb. 2021-01-24 21:38:59 -08:00
voussoir 16f2517ca9 Add some example invocations to the helptext. 2021-01-15 00:34:15 -08:00
voussoir c3ec4f06a3 Improve "Try etiquette_cli init" message. 2021-01-15 00:02:24 -08:00
voussoir e5be26f8b0 Add PhotoDB.closest_photodb for frontend instantiation. 2021-01-09 15:42:16 -08:00
voussoir d1148d85db A few linting fixes. 2021-01-05 17:35:10 -08:00
voussoir 79c6af5d9b Add relocate command. 2021-01-03 02:58:18 -08:00
voussoir 9d048a5d88 Improve export_symlinks. 2021-01-01 17:02:03 -08:00
voussoir 94130e4803 Add betterhelp docstring. 2021-01-01 17:02:00 -08:00
voussoir 84b35c3eaa Only purge deleted files, empty albums within the cwd. 2021-01-01 17:02:00 -08:00
voussoir 968d84b3cb Add export_symlinks command. 2021-01-01 17:02:00 -08:00
voussoir 6522bda09c Add basename in separate column so we can orderby it.
For a while I've wanted to be able to sort search results by the file's
basename. This is especially important for the cli. SQLite doesn't have
an easy way to split the filepath column by the slash, so the only
choice is to store basename as a separate column. I put it off for a
while but I think it's the right move. However we must not forget to
update it every time we update filepath, which is a bummer.
2021-01-01 17:02:00 -08:00
voussoir 017633331b Fix yield photo should only happen when not exception. 2020-12-30 15:50:29 -08:00
voussoir 023c540dbf Fix init command, should create _etiquette directory. 2020-12-30 15:50:29 -08:00
voussoir aa3bc2d100 Rename purge_deleted_photos -> purge_deleted_files. 2020-12-30 15:50:23 -08:00
voussoir a91366149b Transition calls to getpermission to interactive. 2020-12-07 00:54:53 -08:00
voussoir a604cfa5cd Add alias tag-breplace. 2020-11-27 15:40:13 -08:00
voussoir 1cf6e64bfa Add remove_tag command. 2020-11-27 15:39:58 -08:00
voussoir 469103e0ac Use voussoirkit.stringtools for comma_space_split. 2020-11-15 22:20:36 -08:00
voussoir f112a3d041 Add support for file glob patterns in add_tag command. 2020-11-15 22:20:30 -08:00
voussoir a1fd6c26c5 Add show_associated_directories command. 2020-11-15 17:49:28 -08:00
voussoir 010c92cb73 Set photodb log_level from argv. 2020-11-08 20:20:04 -08:00
voussoir 5792c3bdcf Let set_searchhidden take no params, and simplify duplicate checks. 2020-11-05 18:22:19 -08:00
voussoir e80f27e1fd Fix excplicit yield_photos, yield_albums in search_in_cwd. 2020-11-05 18:21:33 -08:00
voussoir d2b6aebee5 Add init, set/unset searchhidden, add_tag commands. 2020-11-03 00:07:29 -08:00
voussoir 51fa9aac46 Alphabetize p_tag_breplace. 2020-10-25 20:21:27 -07:00
voussoir dd581a8274 Add easybake command. 2020-10-17 19:18:25 -07:00
voussoir a463e5451b Move tag_breplace_argparse to alphabetical order. 2020-10-17 19:12:22 -07:00
voussoir fc894bcd17 Add purge_deleted_photos, purge_empty_albums. 2020-09-30 13:44:09 -07:00
voussoir 0ec072c797 Add breplace. 2020-09-29 18:08:04 -07:00
voussoir 7d2e5bd9a9 Add digest_directory. 2020-09-28 14:28:15 -07:00
voussoir b9f4b2cf38 Pull out search_by_argparse into own function. 2020-09-28 14:25:10 -07:00
voussoir 3e33285cff Add separate argument buckets so any subparser can search. 2020-09-28 14:24:17 -07:00
voussoir 3738a60195 Cache photodbs throughout runtime. 2020-09-28 14:22:28 -07:00