minibuffer_mode.hpp 667 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. namespace lumacs {
  3. /// @brief Defines the different modes the minibuffer can be in.
  4. enum class MinibufferMode {
  5. /// @brief No active minibuffer prompt.
  6. None,
  7. /// @brief Prompting for a command (e.g., M-x).
  8. Command,
  9. /// @brief Prompting for a file path (e.g., C-x C-f).
  10. FilePath,
  11. /// @brief Prompting for a buffer name (e.g., C-x b).
  12. BufferName,
  13. /// @brief Prompting for a theme name.
  14. ThemeName,
  15. /// @brief Prompting for an incremental search query.
  16. ISearch,
  17. /// @brief A generic prompt for a string.
  18. ystring,
  19. /// @brief A generic prompt for a boolean.
  20. y_or_n_p,
  21. };
  22. } // namespace lumacs