mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-09-28 01:04:17 +03:00
Add configurable Tab Out support
Add an optional Tab Out behavior that moves a single cursor past configured trailing characters when pressing Tab. Expose the feature in Global Document Settings, keep it disabled by default, persist its configuration, and preserve existing selection and multi-cursor indentation behavior (SpartanJ/ecode#951).
This commit is contained in:
@@ -564,6 +564,14 @@ class EE_API TextDocument {
|
||||
const std::vector<std::pair<String::StringBaseType, String::StringBaseType>>&
|
||||
autoCloseBracketsPairs );
|
||||
|
||||
bool getTabOutEnabled() const;
|
||||
|
||||
void setTabOutEnabled( bool enabled );
|
||||
|
||||
const String& getTabOutChars() const;
|
||||
|
||||
void setTabOutChars( const String& chars );
|
||||
|
||||
bool isDirtyOnFileSystem() const;
|
||||
|
||||
void setDirtyOnFileSystem( bool dirtyOnFileSystem );
|
||||
@@ -780,6 +788,7 @@ class EE_API TextDocument {
|
||||
bool mTrimTrailingWhitespaces{ false };
|
||||
bool mVerbose{ false };
|
||||
bool mAutoCloseBrackets{ false };
|
||||
bool mTabOutEnabled{ false };
|
||||
bool mDirtyOnFileSystem{ false };
|
||||
bool mSaving{ false };
|
||||
bool mDeleteOnClose{ false };
|
||||
@@ -789,6 +798,7 @@ class EE_API TextDocument {
|
||||
bool mDoingTextInput{ false };
|
||||
bool mInsertingText{ false };
|
||||
std::vector<std::pair<String::StringBaseType, String::StringBaseType>> mAutoCloseBracketsPairs;
|
||||
String mTabOutChars{ ")]}'\":;>," };
|
||||
Uint32 mIndentWidth{ 4 };
|
||||
IndentType mIndentType{ IndentType::IndentTabs };
|
||||
AutoIndentConfig mAutoIndent{ AutoIndentConfig::Smart };
|
||||
|
||||
Reference in New Issue
Block a user