Commit graph

61 commits

Author SHA1 Message Date
0497e5993d Implement find and replace 2025-04-17 18:48:22 +02:00
3b872f4ad7 Enhance user input numbers and strings 2025-04-17 18:47:28 +02:00
9a25e1e1f2 Fix copying position 2025-04-17 14:02:16 +02:00
fe62172682 Unite everything with file_offset 2025-04-16 21:14:27 +02:00
a9bc74264d Remove unused function 2025-04-16 15:19:27 +02:00
178bcc2cd5 Fix jump + add jump to position 2025-04-16 15:02:07 +02:00
ea7db7ef4e Make get_line DRY 2025-04-16 14:14:25 +02:00
ac45e6d47c Fix tabulator overwrite 2025-04-16 14:07:37 +02:00
4b7d0cd038 Unite comment language 2025-04-16 13:24:51 +02:00
1e7ea2b5a2 Generalize positions and count-type 2025-04-16 12:44:33 +02:00
76eac35213 Implement copying and pasting 2025-04-15 16:52:59 +02:00
079e7669af Include creating a new line in line splitting 2025-04-15 16:52:44 +02:00
ee2e61ad4d Remove treap insertion into treap 2025-04-15 16:48:12 +02:00
8dfbc802d2 Fix treap clear 2025-04-15 16:46:18 +02:00
a867520b0b Delete removed lines 2025-04-09 15:22:36 +02:00
5feb4bb93d Generalize treap count type 2025-04-09 14:42:29 +02:00
08556a4dcc Add treap pop 2025-04-09 14:39:11 +02:00
53a53b7a03 Avoid external access to treap 2025-04-09 14:25:02 +02:00
112e20f4b1 Rename modes and utility functions 2025-04-09 14:19:29 +02:00
3962f30539 Support inserting a treap into another 2025-04-09 14:12:41 +02:00
944b6759ff Add append to treap structure 2025-04-09 10:31:47 +02:00
7ca8b1a3cb Add treap clearing 2025-04-09 08:00:51 +02:00
a20cd81dff Add jumping to specific line 2025-04-08 15:06:10 +02:00
86dad44405 Read tabulator as a space 2025-04-08 15:02:07 +02:00
d0104af6aa Rename add_line into insert_line 2025-04-08 14:27:03 +02:00
9d860991f3 Resolve enter and backspace in insert mode 2025-04-08 14:16:41 +02:00
4929064b30 squash! Clean unnecessary jumping 2025-04-07 21:12:22 +02:00
b81f74c0b2 Clean unnecessary jumping 2025-04-07 21:08:59 +02:00
aa2f6e2260 Print only relevant lines while inserting/deleting lines 2025-04-07 21:05:05 +02:00
5642cfc408 Support files longer than terminal line-count 2025-04-07 20:58:41 +02:00
895c4ab075 Add TODO to print only part of a file 2025-03-31 20:43:27 +02:00
63c4f49092 Erase a finished todo 2025-03-31 20:31:39 +02:00
5478f30554 Implement insert mode 2025-03-31 20:28:59 +02:00
05213ff3e6 Integrate character remove 2025-03-31 20:21:49 +02:00
6942a0cf01 Merge branch 'treap' 2025-03-31 20:17:00 +02:00
179c7ce9bd Integrate treap into the code 2025-03-31 20:13:26 +02:00
ef426253ca Provide heap size outside 2025-03-31 19:55:16 +02:00
875a0761c9 Encapsulate treap properties 2025-03-30 17:06:49 +02:00
17237e1cb3 Rename file representation to treap for better readability 2025-03-30 17:05:01 +02:00
1582e7e7cb Update treap root on insert 2025-03-30 17:01:40 +02:00
e5bed9f8fe Correct some mistakes in treap functions 2025-03-28 18:17:43 +01:00
734588316d Refactor comments and typedef 2025-03-28 18:17:13 +01:00
ec1d64e9ba Use defined function for getting subtree size 2025-03-28 17:00:26 +01:00
d6e22b641b Made treap size comparisons inclusive 2025-03-28 16:52:19 +01:00
1e1a147116 Fix line finding 2025-03-28 16:37:45 +01:00
32fecc75ec Fix subtree size accessing 2025-03-28 16:23:40 +01:00
02bdb353a4 Add subtree size updating during treap split 2025-03-28 16:16:47 +01:00
7f528796c0 Add subtree size updating during treap join 2025-03-28 15:58:34 +01:00
c1ee3d1930 Implemented treap operations without subtree-sizes 2025-03-18 16:26:54 +01:00
9525d3763a Line is represented by line number as key in treap 2025-03-18 15:17:59 +01:00