aboutsummaryrefslogtreecommitdiff
path: root/data/core
AgeCommit message (Collapse)Author
2021-09-04Check if session file returned anythingGuldoman
2021-09-03Add a simple cache to `DocView:get_h_scrollable_size`Guldoman
This function gets called at every `core.step`, so we should avoid having to recalculate the scrollable size every time, as it could get very expensive on long lines.
2021-09-02Fix absolute path detection in `core.project_absolute_path`Guldoman
2021-09-01Avoid checking for unique selections on non-`DocView`sGuldoman
2021-08-31Forgot to return an 'n'.Adam Harrison
2021-08-30Fixed replace to make it multicursor-aware.Adam Harrison
2021-08-30Merge pull request #451 from Timofffee/fix-macos-keymapAdam
Fix macOS keymap
2021-08-30Avoid recreating `line_numbers` table when a recalc is neededGuldoman
2021-08-30Avoid recreating tables when calculating the longest linesGuldoman
2021-08-30Split vertical and horizontal scrollbar-related functions and variablesGuldoman
2021-08-30Set horizontal scroll size to be more in line with other editorsGuldoman
Only scroll enough to see the whole line.
2021-08-30Show correct mouse cursor when hovering the horizontal scrollbarGuldoman
2021-08-30Add horizontal scrollbarGuldoman
Classes and plugins that relied on having only the vertical scrollbar should continue working.
2021-08-30Fix discrepancy in max line lengthGuldoman
The line length calculated in `Doc:load` didn't account for the newline that gets added.
2021-08-30Remove line from longest lines table only if neededGuldoman
Checking if a line needs to be removed is faster than just trying to remove it.
2021-08-30Define horizontal scrollable size for `DocView`Guldoman
2021-08-30Extend `View` to allow horizontal scrollingGuldoman
2021-08-30Make `Doc` keep track of max line lengthGuldoman
2021-08-30Merge pull request #430 from adamharrison/vsc-multicursor-shortcutsAdam
Added in two new VSC-style multicursor shortcuts.
2021-08-30Fix macOS keymapTimofffee
2021-08-29Fixed cursor movement.Adam Harrison
2021-08-29Fixed cursors moving around with removal and inserts with cursors. Also ↵Adam Harrison
fixed drawing line highlights with multicursors.
2021-08-29Use plain `string:find` when matching plugin directoriesGuldoman
2021-08-28Added in two new VSC-style multicursor shortcuts.Adam Harrison
2021-08-28Merge remote-tracking branch 'origin/fix-2.0.1'Francesco Abbate
2021-08-28Add missing home_encode for change-project-folderFrancesco Abbate
2021-08-28Fix focus problem with NagView with root:close-allFrancesco Abbate
Fix provided by @Guldoman in PR: https://github.com/lite-xl/lite-xl/pull/419
2021-08-28Remove unused Object's method "implement"Francesco Abbate
Not used in the code base.
2021-08-27Introduce View objects context propertyFrancesco Abbate
Used to determine if an instance of the given class should be closed or not when a project session is terminated.
2021-08-27Revert "Further simplifies logic for active view in close-all command"Francesco Abbate
This reverts commit bb6b99b16777f0b34c1ea28db78525b4041d0f31.
2021-08-27Allow tabs to always be visibleGuldoman
2021-08-27Set initial text for core:change-project-folderFrancesco Abbate
2021-08-27Further simplifies logic for active view in close-all commandFrancesco Abbate
2021-08-27Simplify commit daf91676 about active view settingFrancesco Abbate
2021-08-27Do not use os.exit to exit the applicationFrancesco Abbate
Properly quit the application by terminating the core.run() function. Otherwise a BadWindow event was happening when closing the window.
2021-08-27Fix bug with close-all commandFrancesco Abbate
There are really multiple things here in the close_all_docviews function: 1. we reset the Node's tab_offset 2. we ensure the core's active_view is properly set 3. we close LogViews as well as DocViews Some conditions seems to never happen but we stay safe and try to cover all possible cases.
2021-08-25Fix plugin version checkFrancesco Abbate
2021-08-24increase code readibilityTakase
2021-08-24add doc:get_selection_text()takase1121
2021-08-24remove unused variabletakase1121
2021-08-24more changes to logviewtakase1121
- remove draw_text_elipsis - remove clip rect operations - fix text drawing when expanded - simplify code
2021-08-24add core.get_log()takase1121
2021-08-24improve logviewtakase1121
The logview is now less cluttered. The filename and stack trace (if any) is hidden by default. The user can click on the log entry to expand it.
2021-08-19Require modversion 2Francesco Abbate
2021-08-19Merge remote-tracking branch 'harens/macos-bundle'Francesco Abbate
2021-08-18Add unix-like behaviour on macOSharens
Closes https://github.com/lite-xl/lite-xl/issues/398
2021-08-172.0 changelog and modversion updates.Adam Harrison
2021-08-14Merge pull request #391 from adamharrison/fix-replace-tooltipAdam
Added in additional function to remove tooltip after cancelling replace.
2021-08-14Merge pull request #390 from adamharrison/cursor-fixesAdam
Fixed multilne cursors at the edges of docuemnts.
2021-08-14Added in additional function to remove tooltip after cancelling replace.Adam Harrison