yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
command_palette.cc File Reference
#include "app/editor/system/commands/command_palette.h"
#include <algorithm>
#include <cctype>
#include <chrono>
#include <filesystem>
#include <fstream>
#include "absl/strings/str_format.h"
#include "app/editor/events/core_events.h"
#include "app/editor/menu/right_drawer_manager.h"
#include "app/editor/registry/content_registry.h"
#include "app/editor/shell/coordinator/recent_projects_model.h"
#include "app/editor/system/workspace/editor_registry.h"
#include "app/editor/system/workspace/panel_host.h"
#include "app/editor/system/workspace/workspace_window_manager.h"
#include "core/project.h"
#include "util/json.h"
#include "util/log.h"
#include "zelda3/common.h"
#include "zelda3/resource_labels.h"

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 
namespace  yaze::editor::anonymous_namespace{command_palette.cc}
 

Functions

std::string yaze::editor::anonymous_namespace{command_palette.cc}::ToLower (std::string_view text)
 
bool yaze::editor::anonymous_namespace{command_palette.cc}::IsAlnum (char c)
 
bool yaze::editor::anonymous_namespace{command_palette.cc}::IsWordStartAt (const std::string &text, size_t index)
 
std::vector< std::string > yaze::editor::anonymous_namespace{command_palette.cc}::SplitWhitespace (const std::string &text)
 
int yaze::editor::anonymous_namespace{command_palette.cc}::BestSubsequenceScore (const std::string &text, const std::string &query)
 
int yaze::editor::anonymous_namespace{command_palette.cc}::ScoreSingle (const std::string &text, const std::string &query)
 
bool yaze::editor::anonymous_namespace{command_palette.cc}::HasPanelWord (std::string_view name)
 
int yaze::editor::anonymous_namespace{command_palette.cc}::FrecencyBoost (int usage_count, int64_t last_used_ms, int64_t now_ms)
 

Variables

constexpr int yaze::editor::anonymous_namespace{command_palette.cc}::kScoreExact = 1000
 
constexpr int yaze::editor::anonymous_namespace{command_palette.cc}::kScorePrefix = 800
 
constexpr int yaze::editor::anonymous_namespace{command_palette.cc}::kScoreWordStartSubstring = 600
 
constexpr int yaze::editor::anonymous_namespace{command_palette.cc}::kScoreSubstring = 400
 
constexpr int yaze::editor::anonymous_namespace{command_palette.cc}::kScoreSubsequenceMax = kScoreSubstring - 1
 
constexpr int yaze::editor::anonymous_namespace{command_palette.cc}::kCharBase = 2
 
constexpr int yaze::editor::anonymous_namespace{command_palette.cc}::kCharWordStartBonus = 8
 
constexpr int yaze::editor::anonymous_namespace{command_palette.cc}::kCharConsecutiveBonus = 4
 
constexpr const char * yaze::editor::anonymous_namespace{command_palette.cc}::kShortcutsProviderId = "shortcuts"