Adam Harrison
e9f48ce949
Added in sample plugin and tested things out. Works.
2021-09-14 00:13:30 -04:00
Adam Harrison
a66a76f9c9
Added in searcher.
2021-09-13 23:40:01 -04:00
Francesco Abbate
218999dff8
Avoid bug when replacement stop at end of string
...
Detect when we are past the end of the string to avoid by
checking if byte is not nil.
Fix #510 .
2021-09-10 14:55:04 +02:00
Francesco Abbate
afd0672197
Use line/col to identify selection in replace command
2021-09-10 14:54:55 +02:00
Francesco Abbate
cec1e4efb9
Do not fail search if there was an option change
2021-09-09 23:30:18 +02:00
Francesco Abbate
d9afc40a17
Bring back command find-replace:select-next
...
Bring back the command like before to keep single selection but with
ctrl+f3 keybindings. Change the name of the new multi-cursor command
but keep the ctrl+d keybinding.
2021-09-09 21:40:41 +02:00
Guldoman and Francesco Abbate
aa0e083cb9
Allow find-replace:select-next to select more occurrences after wrap
...
The initial position for the search is defined by the last selection
towards the end of the file.
After reaching the end of the file, it would always select the same
selection to start the search from.
Now, we start the search from each selection, until a new occurrence is
found.
2021-09-09 21:38:12 +02:00
Francesco Abbate
04250a206a
Add previous find and replace in session
2021-09-09 15:42:16 +02:00
Francesco Abbate
403b7f6fb6
Add missing remove tooltip call
2021-09-09 15:42:16 +02:00
Francesco Abbate
b440a22581
Remeber initial user text for hidden suggestions
...
When using hidden suggestions remember the text user was typing when
navigating suggestions.
Ensure also that in the previously searched expressiosn we have no
duplicate entries.
2021-09-09 15:42:16 +02:00
Francesco Abbate
fa8b3b33b1
Use hidden suggestions also for replace dialog
2021-09-09 15:42:16 +02:00
Francesco Abbate
4bcc1cc07c
Fix error with hidden suggestions
...
Avoid indexing a nil if there are no suggestions.
2021-09-09 15:42:16 +02:00
Francesco Abbate
f85fe102d9
Implement hidden suggestions for find dialog
2021-09-09 15:42:16 +02:00
Francesco Abbate
dfb64fbdf1
Do not add selection with newlines in replace
...
If the selected text containes newlines it doesn't make sense to
use it as the initial text in the "replace text" command view.
Do not use the selected text if a newline is found in the selection.
Fix #511 .
2021-09-09 15:39:41 +02:00
takase1121
5cc23348a1
reverse the order of args in keymap.unbind
2021-09-08 23:17:50 +08:00
takase1121
7e4236a82f
add keymap.unbind(), update contextmenu to use keymap.get_binding()
...
This is something probably people are looking for...
2021-09-08 23:11:36 +08:00
Guldoman and Francesco
0a52861129
Revert horizontal scroll implementation
2021-09-08 07:11:50 +02:00
Francesco Abbate
2b277bb502
Fix problem with -psn argument on macOS
2021-09-07 06:44:15 -07:00
Francesco Abbate
67d7b894ae
Add initial suggestion in open-project-folder
2021-09-07 15:23:41 +02:00
Francesco Abbate
90c721b823
Adopt bigger fonts by default
2021-09-07 15:11:20 +02:00
Guldoman and Francesco Abbate
f9c7eeeeb8
Check if session file returned anything
2021-09-07 15:03:00 +02:00
Guldoman and Francesco Abbate
59aa7f0090
Fix absolute path detection in core.project_absolute_path
2021-09-07 15:03:00 +02:00
Guldoman and Francesco Abbate
de4072e207
Avoid checking for unique selections on non-DocViews
2021-09-07 15:03:00 +02:00
Adam Harrison and Francesco Abbate
b7f2d1ad03
Forgot to return an 'n'.
2021-09-07 15:03:00 +02:00
Adam Harrison and Francesco Abbate
7811660caf
Fixed replace to make it multicursor-aware.
2021-09-07 15:03:00 +02:00
Timofffee and Francesco Abbate
604626fa32
Fix macOS keymap
2021-09-07 15:03:00 +02:00
Adam Harrison and Francesco Abbate
1d61cf989f
Fixed cursor movement.
2021-09-07 15:03:00 +02:00
Adam Harrison and Francesco Abbate
d352eb1cb9
Fixed cursors moving around with removal and inserts with cursors. Also fixed drawing line highlights with multicursors.
2021-09-07 15:03:00 +02:00
Adam Harrison and Francesco Abbate
9d4e944549
Added in two new VSC-style multicursor shortcuts.
2021-09-07 15:03:00 +02:00
Guldoman and Francesco Abbate
d3bd35b577
Use plain string:find when matching plugin directories
2021-09-07 15:03:00 +02:00
Guldoman and Francesco Abbate
7f338fc993
Allow tabs to always be visible
2021-09-07 14:59:03 +02:00
Takase and Francesco Abbate
fb907c9bf4
increase code readibility
2021-09-07 14:59:03 +02:00
takase1121 and Francesco Abbate
97493a1a4e
add doc:get_selection_text()
2021-09-07 14:59:03 +02:00
takase1121 and Francesco Abbate
30d3751632
remove unused variable
2021-09-07 14:59:03 +02:00
takase1121 and Francesco Abbate
14565b5226
more changes to logview
...
- remove draw_text_elipsis
- remove clip rect operations
- fix text drawing when expanded
- simplify code
2021-09-07 14:59:03 +02:00
takase1121 and Francesco Abbate
622b162225
add core.get_log()
2021-09-07 14:59:03 +02:00
takase1121 and Francesco Abbate
afaf0a718d
improve logview
...
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-09-07 14:59:03 +02:00
Francesco Abbate
28e8a98ffc
Fix error in change-project-folder command
2021-09-07 05:21:45 -07:00
Francesco Abbate
3cc4cd1ada
Fix error when opening root directory
2021-09-07 05:09:26 -07:00
Guldoman
371914af67
Check if session file returned anything
2021-09-04 00:32:01 +02: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
46d1203d08
Fix absolute path detection in core.project_absolute_path
2021-09-02 18:58:24 +02:00
Guldoman
f31312fd16
Avoid checking for unique selections on non-DocViews
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 Harrison
e541236c22
Forgot to return an 'n'.
2021-08-31 16:21:40 -04:00
Adam Harrison
1c4a4e763e
Fixed replace to make it multicursor-aware.
2021-08-30 22:56:33 -04:00
Adam and GitHub
8d6ac47cd0
Merge pull request #451 from Timofffee/fix-macos-keymap
...
Fix macOS keymap
2021-08-30 13:37:07 -04:00
Guldoman and Francesco
235b1f0385
Avoid recreating line_numbers table when a recalc is needed
2021-08-30 17:58:22 +02:00
Guldoman and Francesco
4d0656ad7e
Avoid recreating tables when calculating the longest lines
2021-08-30 17:58:22 +02:00
Guldoman and Francesco
92bbb30d06
Split vertical and horizontal scrollbar-related functions and variables
2021-08-30 17:58:22 +02:00