summaryrefslogtreecommitdiff
path: root/src/dged/buffer_view.c
AgeCommit message (Collapse)Author
2024-11-10Render tabs using the correct tab widthAlbert Cervin
Previously, the code assumed 4.
2024-09-12WIP LSP clientAlbert Cervin
This contains the start of an LSP client. Nothing (except starting the LSP server) works at the moment and the feature is disabled by default.
2024-09-11Overhaul unicode parsingAlbert Cervin
It now instead iterates the actual unicode code points. This is better than what it was previously doing but it is still not entirely correct w.r.t to unicode sequences. This handling of unicode code points does however make it slightly easier to handle UTF-16 if needed in the future. This also adds some long needed tests for buffer methods.
2024-06-23Fix buffer list switch and search/replaceAlbert Cervin
Fix the buffer list return key action when buffers have the same name. Previously, it would pick the first it could find in the buffer list with the correct buffer name instead of the selected one. Now it uses text properties to pass the actual buffer pointer along instead. This however exposed a problem with the clearing of properties and where in the frame it happens. Search and replace highlighting assumed that they could color things in their respective command executions. However, ideally coloring should happen in update functions so now both search and replace implement the coloring in update hooks for the buffer they are operating on. For replace, this was already kinda how it worked and could be adapted with minimal effort. Search on the other hand needed a bit more rework.
2024-05-14Add indent for regionAlbert Cervin
If a region is active, indentation is added to the whole region.
2024-05-06Add inverted colors modeAlbert Cervin
Also use color constants in some more places.
2024-03-26Implement kill-buffer commandAlbert Cervin
Can be killed with the command `kill-buffer`, the shortcut `C-x k` or from the buffer menu.
2024-03-22Initial OpenBSD supportAlbert Cervin
Reactor is not really implemented yet but at least it builds and the tests run.
2024-03-07Implement timers properlyAlbert Cervin
The timers shown with `M-x timers` are now actual timings.
2024-02-14Improve word deletionAlbert Cervin
Now it only deletes the word under dot.
2024-01-24Relative find file and small fixesAlbert Cervin
- Save text was not always displaying - Files were sometimes not reloaded properly
2024-01-15Completion reworkAlbert Cervin
- Add support for building with clang Also fix some annoying bugs: - Visual column was wrong when using tabs - Add shift-tab for inserting an actual tab - Fix minibuffer sometimes having dot above it
2023-10-19follow-up fixes after refactoringAlbert Cervin
2023-10-19big buffer/buffer_view reworkAlbert Cervin
A buffer is only the text and the corresponding operation. A buffer view holds information about scroll, dot and mark positions. One way to think about it is that a buffer is stateless whereas a buffer view is stateful.