mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 14:30:24 +01:00
[PR #311] feat: Add editor indentation setting #232
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/311
Author: @G0STG0D
Created: 11/27/2025
Status: 🔄 Open
Base:
main← Head:main📝 Commits (7)
dca19d0Add editor_indentation column to settings table1bb86f3Implemented editor indentation to the Editor454c4bfEnhanced "Reformat contents"-Button to support customizable indentation91138a9Refactored code for consistent formatting and indentation9393e22Incorporated editor indentation setting into text formatting query38cfeb3Refactored formatting functions for indentation to use single source of truth167d852Merge branch 'main' into main📊 Changes
11 files changed (+86 additions, -72 deletions)
View changed files
📝
package-lock.json(+30 -57)📝
src-tauri/src/lib.rs(+4 -2)📝
src-tauri/yaak-models/bindings/gen_models.ts(+1 -1)➕
src-tauri/yaak-models/migrations/20251127214940_add-editor-tab-indentation.sql(+1 -0)📝
src-tauri/yaak-models/src/models.rs(+4 -0)📝
src-tauri/yaak-models/src/queries/settings.rs(+1 -0)📝
src-tauri/yaak-templates/pkg/yaak_templates_bg.wasm(+0 -0)📝
src-web/components/Settings/SettingsInterface.tsx(+14 -0)📝
src-web/components/core/Editor/Editor.tsx(+16 -7)📝
src-web/hooks/useFormatText.ts(+5 -1)📝
src-web/lib/formatters.ts(+10 -4)📄 Description
Problem
Users could not change the editor indentation size, which was fixed at 2 spaces. Many users prefer 4 spaces or other tab sizes for readability and consistency with their coding standards, making it frustrating for them to work efficiently.
Solution
Added support for configurable editor indentation, allowing users to set their preferred number of spaces per tab. This ensures that the editor respects individual coding styles and improves the overall user experience.
Preview
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.