Major v1.2.0 editor enhancements

- Add comprehensive Find & Replace with match highlighting
- Add toggleable line numbers with theme support
- Implement full undo/redo functionality with keyboard shortcuts
- Add smart auto-indentation for lists and code blocks
- Enhanced keyboard shortcuts for productivity
- Advanced tab handling for indentation/outdentation
- Updated About dialog with v1.2.0 and complete feature list
- Add Find & Replace to Edit menu
- Updated README.md with comprehensive feature documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-01 20:26:58 +05:30
co-authored by Claude
parent bfe362245d
commit 6d3813e5e9
5 changed files with 533 additions and 14 deletions
+136
View File
@@ -459,4 +459,140 @@ body.theme-github .status-bar {
#editor-pane.full-width {
border-right: none;
}
/* Find & Replace Dialog */
.find-dialog {
position: absolute;
top: 60px;
right: 20px;
background: #fff;
border: 1px solid #ddd;
border-radius: 6px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
z-index: 1000;
min-width: 400px;
padding: 12px;
}
.find-dialog.hidden {
display: none;
}
.find-controls {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 8px;
}
.find-controls input {
flex: 1;
padding: 6px 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 13px;
}
.find-controls button {
padding: 6px 10px;
border: 1px solid #ddd;
background: #f5f5f5;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
white-space: nowrap;
}
.find-controls button:hover {
background: #e5e5e5;
}
.find-info {
font-size: 12px;
color: #666;
text-align: right;
}
/* Editor Wrapper with Line Numbers */
.editor-wrapper {
position: relative;
display: flex;
height: 100%;
}
.line-numbers {
min-width: 40px;
padding: 8px 4px;
background: #f8f8f8;
border-right: 1px solid #ddd;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
font-size: 13px;
line-height: 1.4;
color: #666;
text-align: right;
user-select: none;
overflow: hidden;
}
.line-numbers.hidden {
display: none;
}
.line-numbers .line-number {
display: block;
white-space: nowrap;
}
/* Adjust editor when line numbers are shown */
.editor-wrapper #editor {
flex: 1;
}
/* Theme support for find dialog */
body.theme-dark .find-dialog {
background: #2d2d2d;
border-color: #555;
color: #f0f0f0;
}
body.theme-dark .find-controls input {
background: #333;
border-color: #555;
color: #f0f0f0;
}
body.theme-dark .find-controls button {
background: #404040;
border-color: #555;
color: #f0f0f0;
}
body.theme-dark .find-controls button:hover {
background: #4a4a4a;
}
body.theme-dark .line-numbers {
background: #2a2a2a;
border-right-color: #555;
color: #888;
}
/* Additional theme support for line numbers */
body.theme-solarized .line-numbers {
background: #fdf6e3;
border-right-color: #eee8d5;
color: #93a1a1;
}
body.theme-monokai .line-numbers {
background: #2f2f2f;
border-right-color: #555;
color: #75715e;
}
body.theme-github .line-numbers {
background: #fafbfc;
border-right-color: #e1e4e8;
color: #586069;
}