summaryrefslogtreecommitdiff
path: root/lib/utils
AgeCommit message (Collapse)Author
2023-09-24command-handler: more unit testsDirk-Jan C. Binnema
2023-09-24error: more unit testsDirk-Jan C. Binnema
2023-09-24utils/add: improve unit test coverageDirk-Jan C. Binnema
2023-09-23mu: log warning when exiting with errorDirk-Jan C. Binnema
2023-09-21mu-utils: improve testsDirk-Jan C. Binnema
2023-09-21mu-utils: add to_string_viewDirk-Jan C. Binnema
2023-09-19mu-file-utils: add run_command0Dirk-Jan C. Binnema
To ensure command ran and had exit-code=0 in one go.
2023-09-19utils-file: default args for canonicalize_filename / determine_dtypeDirk-Jan C. Binnema
Make a little easier to use
2023-09-17utils: add utf8_wordbreakDirk-Jan C. Binnema
Determine if a string has wordbreaks in a mostly Xapian-compatible way. We need this to determine what strings should be considered "phrases".
2023-09-16mu-error: allow for adding end-user hintsDirk-Jan C. Binnema
2023-09-13utils-file: improve mu_playDirk-Jan C. Binnema
implement in terms of run_command
2023-09-13lib: unit tests: improve / better coverageDirk-Jan C. Binnema
2023-09-12Merge pull request #2552 from dme/devel/miscDirk-Jan C. Binnema
mu: Fix "expected command" server error report
2023-09-12mu: Fix "expected command" server error reportDavid Edmondson
2023-09-11unit-tests: modernizeDirk-Jan C. Binnema
Use TempDir, join_paths etc.
2023-09-10utils/unbroken: avoid pre-C++20 compiler warningDirk-Jan C. Binnema
2023-09-10utils/file: add basename/dirname helpers and use themDirk-Jan C. Binnema
2023-09-09support xapian ngramsDirk-Jan C. Binnema
Xapian supports an "ngrams" option to help with languages/scripts without explicit wordbreaks, such as Chinese / Japanese / Korean. Add some plumbing for supporting this in mu as well. Experimental for now.
2023-09-09utils: handle "unbroken" scriptsDirk-Jan C. Binnema
Do not removing combining characters from scripts without explicit word boundaries, such as those for CJK. Reuse some Xapian code for that.
2023-09-05move lib/thirdparty to thirdparty/Dirk-Jan C. Binnema
2023-08-27utils: small tweaksDirk-Jan C. Binnema
2023-08-21mu-utils: support UTC in parse_date_timeDirk-Jan C. Binnema
Parsing dates known to be in UTC.
2023-08-19remove Mu::format, use mu_formatDirk-Jan C. Binnema
Use the new fmt-based formatting.
2023-08-11utils: add mu_print[ln] for ostreamsDirk-Jan C. Binnema
2023-08-09option/result: add "unwrap"Dirk-Jan C. Binnema
Sprinkle some more Rust on Option & Result
2023-08-06utils-file: don't use regexp in join_pathsDirk-Jan C. Binnema
It's slow.
2023-08-06utils: replace time_to_string with fmt-based formattingDirk-Jan C. Binnema
It's faster; make "mu find" ~5-10% faster, and removes some code we no longer need.
2023-08-03utils: add expand_path (wordexp wrapper)Dirk-Jan C. Binnema
For expanding command-line options for shells that don't do that by themselves.
2023-07-30mu-regex: add multiline testDirk-Jan C. Binnema
2023-07-29mu-view: test locale to C for testsDirk-Jan C. Binnema
2023-07-29test-utils: add TempTz, RAII temporary timezoneDirk-Jan C. Binnema
2023-07-28mu-view: add unit-testDirk-Jan C. Binnema
2023-07-26html-to-text: add missing include <array>Dirk-Jan C. Binnema
2023-07-26html-to-text: be explicit with array typeDirk-Jan C. Binnema
clang in CI fails to deduce it, so let's help it a bit.
2023-07-25utils: implement html-to-textDirk-Jan C. Binnema
Implement a crude html-to-text scraper function, to extract plain text from html messages, so we can use it for indexing.
2023-07-25utils/readline: use fmt-based apisDirk-Jan C. Binnema
2023-07-25utils/result: add std::move version of ErrDirk-Jan C. Binnema
Avoid a copy in some situations
2023-07-18store/index: and unit test for circular symlinkDirk-Jan C. Binnema
Check that we bail out early
2023-07-18utils: rework running system commandsDirk-Jan C. Binnema
Use g_spawn and pass arguments, so we don't involve a shell that needs escaping etc. Improve error handling.
2023-07-11utils/mu-regex: add move constructorDirk-Jan C. Binnema
2023-07-10utils: add some more helpers for test codeDirk-Jan C. Binnema
Creating and removing (temp) dirs, running mu commands.
2023-07-10utils/result: add "unwrap" convenience functionDirk-Jan C. Binnema
2023-07-08migrate to fmt-based logging in some more placesDirk-Jan C. Binnema
and improve logging.
2023-07-06fmt: more update to use new fmt-based APIsDirk-Jan C. Binnema
2023-07-05sexp: use fmt for parsing_errorDirk-Jan C. Binnema
Should help with Apple clang build too.
2023-07-05lib/utils: update library pathsDirk-Jan C. Binnema
2023-07-05update to use fmt-based apisDirk-Jan C. Binnema
Not complete, but a first big stab converting users of Mu::Error and various g_warning & friends, format to the new libfmt-based APIs.
2023-07-05utils: rework Mu::Error and g_ logging macros with fmtDirk-Jan C. Binnema
A bit more C++ template magic to remove a lot of code.
2023-07-02all: update for API changes (config etc.)Dirk-Jan C. Binnema
Use the new & improved APIs.
2023-07-02lib: create mu-xapian-db, mu-configDirk-Jan C. Binnema
XapianDb is a fairly thing wrapper around Xapian, which handles locking, exception handling and some tracking. On top of that, Config add a configuration database for type / introspectable configuration info.