Commit Graph

1594 Commits

Author SHA1 Message Date
Guldoman 444c929e3c Add commands to manage tab style 2021-09-07 07:53:03 +02:00
Guldoman 0d2a89cb76 Don't use threads in `detectindent`
As it's execution only happens on load/save.
2021-09-07 07:53:03 +02:00
Guldoman 501be5fdfe Use configured indent values if `detectindent` can't detect them 2021-09-07 07:53:03 +02:00
Guldoman e99c76f8b8 Update `detectindent` cache only after saving/reloading
Before, if the indent wasn't fully detected, `detectindent` would try to 
update every second. On files with very long lines this would cause 
stutters.

Now the indent is updated only once after saving/reloading.
2021-09-07 07:53:03 +02:00
Francesco Abbate 4f68f7fd92 Try to fix problem with js syntax of '/=' operator
The operator '/=' was wrongly considered by the js syntax file as the
beginning of a regexp literal.

With this modification we modify the pattern for regexp literals to not
match expressions starting with '/='.

This doesn't seem entirely correct because apparently javascript can accept
regexp literals starting with '/=' but the rule used by the javascript
lexer is not known.
2021-09-06 09:31:17 +02:00
redtide df667ad28e Fixed some build scripts issues, keep bash always updated on macOS 2021-09-05 20:03:03 +02:00
Francesco Abbate f69e42a43c Bring back pgo option in new build package script 2021-09-05 15:43:22 +02:00
redtide 38d85f2483 Adapt all scripts to work together with build-packages.sh 2021-09-05 15:23:08 +02:00
Francesco Abbate 9e5d404b29 Move innosetup meson config into scripts directory
The purpose is to keep the main meson build file as simple as possible
while keeping the innosetup config.
2021-09-04 18:15:07 +02:00
Francesco Abbate 4e6f4d5c39 Fix build-packages to use generated Info.plist 2021-09-04 18:08:04 +02:00
Timofffee d42a9173fe Bring back info.plist with meson configuration 2021-09-04 18:01:08 +02:00
Francesco 4732ba743d Revert "Update Info.plist"
This reverts commit aefa3ca205.
2021-09-04 17:57:09 +02:00
Francesco dfc45ad3b3 Revert "One more update Info.plist"
This reverts commit e8f5a5e002.
2021-09-04 17:57:09 +02:00
Francesco fdc8762241 Revert "Update meson.build"
This reverts commit 8866a5dddf.
2021-09-04 17:57:09 +02:00
Francesco 9e5df4e660
Update README to remove reference to notarization
We assume we don't need to mention the macOS package is notarized.
2021-09-04 17:24:08 +02:00
Guldoman 371914af67
Check if session file returned anything 2021-09-04 00:32:01 +02:00
Francesco Abbate a134c8ea99 Add missing release flag in build-packages.sh 2021-09-03 23:33:36 +02:00
Timofffee 8866a5dddf Update meson.build 2021-09-03 14:36:36 +02:00
Timofffee e8f5a5e002 One more update Info.plist 2021-09-03 14:36:36 +02:00
Timofffee aefa3ca205 Update Info.plist 2021-09-03 14:36:36 +02:00
Adam a0508103b1
Merge pull request #481 from Guldoman/h_scroll_size_cache
Add a simple cache to `DocView:get_h_scrollable_size`
2021-09-02 20:01:06 -04:00
Guldoman e559afaefc
Add a simple cache to `DocView:get_h_scrollable_size`
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-03 00:55:10 +02:00
Guldoman f18629ab64 Avoid exposing `treeview` commands when not usable 2021-09-02 23:19:40 +02:00
Guldoman 167cda23f6 Make open files follow renames 2021-09-02 23:19:40 +02:00
Guldoman 46d1203d08
Fix absolute path detection in `core.project_absolute_path` 2021-09-02 18:58:24 +02:00
redtide fb45b27da5 Specify the WM_CLASS of the application, used by some Linux DEs 2021-09-01 23:09:53 +02:00
Guldoman f31312fd16
Avoid checking for unique selections on non-`DocView`s 2021-09-01 16:29:47 +02:00
Guldoman a920e5b0e6
Avoid setting a new file as dirty if it is empty 2021-08-31 23:16:02 +02:00
Adam 06b64f2928
Merge pull request #465 from adamharrison/fix-multicursor-commands
Forgot to return an 'n'.
2021-08-31 16:23:17 -04:00
Adam Harrison e541236c22 Forgot to return an 'n'. 2021-08-31 16:21:40 -04:00
Adam 49bee555fa
Merge pull request #455 from adamharrison/fix-multicursor-commands
Fixed replace to make it multicursor-aware.
2021-08-31 16:09:08 -04:00
redtide df8c1a98e4 Renamed freedesktop resources 2021-08-31 20:19:40 +02:00
Adam Harrison 1c4a4e763e Fixed replace to make it multicursor-aware. 2021-08-30 22:56:33 -04:00
Adam 8d6ac47cd0
Merge pull request #451 from Timofffee/fix-macos-keymap
Fix macOS keymap
2021-08-30 13:37:07 -04:00
Guldoman 235b1f0385 Avoid recreating `line_numbers` table when a recalc is needed 2021-08-30 17:58:22 +02:00
Guldoman 4d0656ad7e Avoid recreating tables when calculating the longest lines 2021-08-30 17:58:22 +02:00
Guldoman 92bbb30d06 Split vertical and horizontal scrollbar-related functions and variables 2021-08-30 17:58:22 +02:00
Guldoman 4a03aec073 Set horizontal scroll size to be more in line with other editors
Only scroll enough to see the whole line.
2021-08-30 17:58:22 +02:00
Guldoman 2d33fdc656 Show correct mouse cursor when hovering the horizontal scrollbar 2021-08-30 17:58:22 +02:00
Guldoman 5c7b133e0b Add horizontal scrollbar
Classes and plugins that relied on having only the vertical scrollbar 
should continue working.
2021-08-30 17:58:22 +02:00
Guldoman f106993d0e Fix discrepancy in max line length
The line length calculated in `Doc:load` didn't account for the newline 
that gets added.
2021-08-30 17:58:22 +02:00
Guldoman 3e6afeccc0 Remove line from longest lines table only if needed
Checking if a line needs to be removed is faster than just trying to 
remove it.
2021-08-30 17:58:22 +02:00
Guldoman c16145d562 Define horizontal scrollable size for `DocView` 2021-08-30 17:58:22 +02:00
Guldoman f1ca00fbed Extend `View` to allow horizontal scrolling 2021-08-30 17:58:22 +02:00
Guldoman e52362e55f Make `Doc` keep track of max line length 2021-08-30 17:58:22 +02:00
Adam 3eb6f1dbd4
Merge pull request #430 from adamharrison/vsc-multicursor-shortcuts
Added in two new VSC-style multicursor shortcuts.
2021-08-30 10:52:09 -04:00
Francesco Abbate e94718c5c4 Bring back min len autocomplete default to 3 2021-08-30 14:35:42 +02:00
Francesco Abbate dcf84c743d Add renderer build options in build-packages.sh 2021-08-30 14:29:20 +02:00
Timofffee 6e5452844c Fix macOS keymap 2021-08-30 16:21:16 +04:00
Zack A e9246bcb56 build script: check if .git is present 2021-08-30 09:15:44 +02:00