diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 0fec133..0000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,24 +0,0 @@ -repos: -- repo: meta - hooks: - - id: check-useless-excludes -- repo: https://github.com/pre-commit/mirrors-clang-format - rev: v17.0.6 - hooks: - - id: clang-format - 'types_or': [c++, c] -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 - hooks: - - id: check-added-large-files - - id: check-ast - - id: check-executables-have-shebangs - - id: check-merge-conflict - - id: check-yaml - - id: debug-statements - - id: destroyed-symlinks - - id: detect-private-key - - id: end-of-file-fixer - - id: fix-byte-order-marker - - id: mixed-line-ending - - id: trailing-whitespace diff --git a/Client.cpp b/Client.cpp index 72dd8dc..ac2d179 100644 --- a/Client.cpp +++ b/Client.cpp @@ -16,6 +16,8 @@ #include "widgets/Table.h" #include +// #include + namespace bfs = boost::filesystem; namespace mc_rtc::imgui diff --git a/Plot.cpp b/Plot.cpp index 9e035e9..cd79f14 100644 --- a/Plot.cpp +++ b/Plot.cpp @@ -2,6 +2,8 @@ #include "implot_internal.h" +// #include + namespace mc_rtc::imgui { diff --git a/Widget.h b/Widget.h index 24cd168..f9e6016 100644 --- a/Widget.h +++ b/Widget.h @@ -7,11 +7,37 @@ #include #include -#ifdef SPDLOG_FMT_EXTERNAL -# include -#else -# include -#endif +// #ifdef SPDLOG_FMT_EXTERNAL +// # include +// #else +// # include +// #endif + +// #include +// #include +// #include + +#include +#include +#include +#include +#include +#include + +template <> +struct fmt::formatter : fmt::formatter { + template + auto format(const Eigen::VectorXd& vec, FormatContext& ctx) { + std::string result = "["; + for (int i = 0; i < vec.size(); ++i) { + result += fmt::format("{}{}", vec[i], (i < vec.size() - 1 ? ", " : "")); + } + result += "]"; + return formatter::format(result, ctx); + } +}; + + namespace mc_rtc::imgui {