Commit 751154a
committed
feat: add basic text editor functionality to TerminalCanvas
- Introduced an "editor" mode to the TerminalCanvas component.
- Implemented editor state management including cursor position, selection, and buffer.
- Added commands for saving, quitting, and manipulating text (insert, delete, copy, cut, paste).
- Enhanced keyboard navigation and command execution within the editor.
- Updated rendering logic to display the editor interface with line numbers and status messages.
- Refactored existing code for improved readability and maintainability.1 parent ddbcf18 commit 751154a
File tree
3 files changed
+951
-111
lines changed- src
- app
- components
- hero
- terminal
3 files changed
+951
-111
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
137 | | - | |
| 141 | + | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| |||
1769 | 1773 | | |
1770 | 1774 | | |
1771 | 1775 | | |
1772 | | - | |
| 1776 | + | |
1773 | 1777 | | |
1774 | 1778 | | |
1775 | 1779 | | |
1776 | 1780 | | |
1777 | | - | |
| 1781 | + | |
1778 | 1782 | | |
1779 | 1783 | | |
1780 | | - | |
1781 | | - | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
1782 | 1802 | | |
1783 | 1803 | | |
1784 | 1804 | | |
1785 | 1805 | | |
1786 | 1806 | | |
1787 | 1807 | | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
1788 | 1812 | | |
1789 | 1813 | | |
1790 | 1814 | | |
| |||
1876 | 1900 | | |
1877 | 1901 | | |
1878 | 1902 | | |
1879 | | - | |
| 1903 | + | |
1880 | 1904 | | |
1881 | 1905 | | |
1882 | 1906 | | |
| |||
1885 | 1909 | | |
1886 | 1910 | | |
1887 | 1911 | | |
1888 | | - | |
1889 | | - | |
1890 | | - | |
1891 | | - | |
1892 | | - | |
1893 | | - | |
1894 | 1912 | | |
1895 | 1913 | | |
1896 | 1914 | | |
| |||
2067 | 2085 | | |
2068 | 2086 | | |
2069 | 2087 | | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
2070 | 2131 | | |
2071 | 2132 | | |
2072 | 2133 | | |
2073 | 2134 | | |
2074 | | - | |
| 2135 | + | |
| 2136 | + | |
2075 | 2137 | | |
2076 | 2138 | | |
2077 | 2139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1968 | 1968 | | |
1969 | 1969 | | |
1970 | 1970 | | |
1971 | | - | |
1972 | | - | |
| 1971 | + | |
1973 | 1972 | | |
1974 | | - | |
| 1973 | + | |
1975 | 1974 | | |
1976 | 1975 | | |
1977 | 1976 | | |
| |||
0 commit comments