Francesco Abbate
865111738a
Treat watch dir errors and fix various things
...
Verity if dmon_watch returns an error.
Add a check if an added file for which we received a create event is
ignored based on the user's config.
Add some explanatory comments in the code.
2021-10-03 00:04:28 +02:00
Francesco Abbate
7aca4e6ba2
Remove the project scan thread
...
Since the directory monitoring is now basically working we remove the
project scan thread periodically scanning the project directory.
Each project's directory is scanned only once at the beginning when
calling the function `core.add_project_directory` and is updated
incrementally when directory change events are treated.
The config variable `project_scan_rate` is removed as well as the
function `core.reschedule_project_scan`.
2021-10-03 00:04:28 +02:00
Francesco Abbate
fe2d0b5237
First integration of dmon for directory monitoring
2021-10-03 00:04:28 +02:00
Francesco Abbate
72c950338c
Enable always show tabs by default
2021-10-02 18:44:05 +02:00
Guldoman
20ddbd6e9f
Load project module on project change ( #571 )
2021-10-02 18:39:23 +02:00
Guldoman
57bfb67f6a
Add option to disable caret blinking ( #572 )
2021-10-02 18:39:23 +02:00
Guldoman
f6b9d9ab67
Add option to disable scrolling past the end ( #566 )
2021-10-02 18:39:22 +02:00
Rongfei Wang
b0b3485152
Remove duplicate command declaration ( #565 )
2021-10-02 18:39:22 +02:00
Adam Harrison
291616df3f
Removed extra macros, used PLATFORM. Also removed MACOS, as it's redundant C code that's already encapsulated within PLATFORM.
2021-10-02 18:39:03 +02:00
Guldoman
d817944170
Force showing tabs when dragging them
2021-10-02 18:37:00 +02:00
Guldoman
dced6da03d
Implement tab drag and drop
2021-10-02 18:36:59 +02:00
Guldoman
86632b68de
Move single tab drawing to its own function
2021-10-02 18:36:59 +02:00
Guldoman
66bfff2e26
Fix wrong locked sibling check
...
Previously if the split type was "hsplit", but `locked_size_x` was
falsy, `locked_size_y` was wrongly used.
2021-09-15 22:38:09 +02:00
Guldoman
9bfec4aca5
Ensure that the primary node always has a `View`
2021-09-15 22:38:09 +02:00
Guldoman
fb955e4e12
Only check if sibling is locked in the split direction
...
If the sibling is not locked in the direction of the split, it should
fill the space.
2021-09-15 22:38:09 +02:00
Guldoman
1e8031a0e8
Fix checking if sibling is locked when removing `View`s
...
We only checked if sibling was locked in the `x` direction.
2021-09-15 22:38:09 +02: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
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
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
f9c7eeeeb8
Check if session file returned anything
2021-09-07 15:03:00 +02:00
Guldoman
59aa7f0090
Fix absolute path detection in `core.project_absolute_path`
2021-09-07 15:03:00 +02:00
Guldoman
de4072e207
Avoid checking for unique selections on non-`DocView`s
2021-09-07 15:03:00 +02:00
Adam Harrison
b7f2d1ad03
Forgot to return an 'n'.
2021-09-07 15:03:00 +02:00
Adam Harrison
7811660caf
Fixed replace to make it multicursor-aware.
2021-09-07 15:03:00 +02:00
Timofffee
604626fa32
Fix macOS keymap
2021-09-07 15:03:00 +02:00
Adam Harrison
1d61cf989f
Fixed cursor movement.
2021-09-07 15:03:00 +02:00
Adam Harrison
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
9d4e944549
Added in two new VSC-style multicursor shortcuts.
2021-09-07 15:03:00 +02:00
Guldoman
d3bd35b577
Use plain `string:find` when matching plugin directories
2021-09-07 15:03:00 +02:00
Guldoman
7f338fc993
Allow tabs to always be visible
2021-09-07 14:59:03 +02:00
Takase
fb907c9bf4
increase code readibility
2021-09-07 14:59:03 +02:00
takase1121
97493a1a4e
add doc:get_selection_text()
2021-09-07 14:59:03 +02:00
takase1121
30d3751632
remove unused variable
2021-09-07 14:59:03 +02:00
takase1121
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
622b162225
add core.get_log()
2021-09-07 14:59:03 +02:00
takase1121
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