AndrewUsher / AndrewUsher/obsidian-dynatrace-dql

Add query template insertion and snippet management

未关闭
#7 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
TypeScript
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

The plugin currently documents three query templates in the repository, but there's no built-in way to insert them directly into notes. Adding template management would streamline the workflow for users creating DQL queries.

**Proposed Changes:**
- Add a command to browse and insert available query templates from `templates/` directory
- Create a settings panel to manage custom snippets
- Support template variables (e.g., `{timeRange}`, `{dataSource}`) that can be filled interactively
- Add keyboard shortcut for quick template insertion

**Benefits:**
- Faster query writing with reusable patterns
- Reduced boilerplate for common analysis tasks
- Better discoverability of template examples

**Related Code:**
The plugin already registers commands in `src/main.ts` (e.g., `insert-dql-code-block`). Template insertion would follow a similar pattern.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。