Commit graph

1584 commits

Author SHA1 Message Date
Igor Támara
2390590279 feat: add shorcuts for buffers in helix mode
## Added Behaviour for buffers

:n create a new buffer - Uses language selection from flow <3
:bc close current buffer
:bn next buffer
:bp previous buffer
:rl reload current buffer
:qa! abandon without saving any buffer
2025-09-25 22:24:00 +02:00
Igor Támara
21384b7a5f feat: add % for select_all and zz to scroll_view_center in helix mode 2025-09-25 22:24:00 +02:00
Igor Támara
9db6bf56c1 feat: add :x alias for :wq in helix mode 2025-09-25 22:24:00 +02:00
7c49138eac
feat: add :qa! aliase for quit_without_saving in vim mode 2025-09-25 14:56:26 +02:00
6c385bc35a
fix: missing padding in buffer_palette 2025-09-25 14:55:57 +02:00
203f05fef7
feat: make select_next_sibling select the node at the cursor if there is no selection 2025-09-25 10:56:16 +02:00
bfa3ea007c
feat: make shrink_selection select the node at the cursor if there is no selection 2025-09-25 10:55:33 +02:00
bcef17a466
fix: make sure we don't destroy file_path before navigating in open_file mini mode 2025-09-24 13:59:56 +02:00
622d65497a
feat: add helix mode keybindings for keypad keys 2025-09-23 22:58:52 +02:00
82c11c64f3
feat: add keybindings for keypad navigation keys 2025-09-23 22:52:21 +02:00
14dbc08bcf
feat: add string mappings for keypad key events 2025-09-23 22:31:12 +02:00
Jonathan Marler
5cc6724a07 win32 gui: center double-wide characters 2025-09-23 22:14:29 +02:00
Jonathan Marler
921f094509 workaround crash when rendering some utf8 on win32 gui
closes #194

Ignores cells that have graphemes with more than 1 codepoint rather than
crash.
2025-09-23 22:14:29 +02:00
Jonathan Marler
2790dcfd11 add some new text to the font test 2025-09-23 22:14:29 +02:00
Jonathan Marler
05b87b1406 finish win32 gui support for double-wide characters 2025-09-23 22:14:29 +02:00
8278a080af fix: actually use staging_size in WindowState.generateGlyph 2025-09-23 22:14:29 +02:00
a9d4fed205 feat: support wide characters in win32 gui
closes #132
2025-09-23 22:14:29 +02:00
f7496654ae
feat: add vim mode aliases for buffer commands
This adds these vim mode specific commands:

:bd (Close file)
:bw (Delete buffer)
:bnext (Next buffer/tab)
:bprevious (Previous buffer/tab)
:ls (List/switch buffers)

closes #296
2025-09-23 15:52:18 +02:00
be758be087
feat: make delete_buffer command with no argument delete the current buffer 2025-09-23 15:51:27 +02:00
52996ed57d
feat: make AST keybindings more intuitive 2025-09-22 13:07:03 +02:00
1ef77601e3
feat: allow next/previous sibling functions to work with no selection 2025-09-22 13:06:53 +02:00
8100e7d52b
refactor: improve const correctness in AST navigation functions 2025-09-22 12:58:10 +02:00
30af629a1a
refactor: expose CurSel.to_selection method 2025-09-22 12:55:31 +02:00
99dc805817
feat: add flow mode keybinds for unnamed AST sibling movement 2025-09-22 12:26:43 +02:00
60016a3d03
feat: improve expand_selection by selecting top selection matching node 2025-09-22 12:26:43 +02:00
4035cefcaf
feat: add optional integer arguments to goto and goto_offset commands 2025-09-17 23:05:21 +02:00
2461717f11
feat: add support for byte offsets in file links to navigate command 2025-09-17 22:47:50 +02:00
7228a604b0
feat: add byte offset support to vim style '+' cli arguments
This adds support for using `+b{offset}` on the command line.
2025-09-17 22:46:35 +02:00
219b8cd00a
feat: support byte offsets in file links
This adds support for a 'b' prefix to the first file link argument
to denote a byte offset.

`{path/to/file.ext}:b{offset}`
2025-09-17 22:42:25 +02:00
7c5a22c959
feat: add goto_offset keybind "b" in goto mini mode
This effectively makes `ctrl+g b` the goto_offset keybinding.
2025-09-17 22:18:45 +02:00
30a457158c
feat: add goto_offset mini mode and command 2025-09-17 22:18:20 +02:00
18cd62ba7e
feat: add editor goto_byte_offset command 2025-09-17 22:17:48 +02:00
935b178d89
feat: add Buffer.Node.byte_offset_to_line_and_col and testcase 2025-09-17 22:17:00 +02:00
933126e2a0
feat: add support for {row}:{column} syntax in goto mini mode 2025-09-17 20:39:45 +02:00
59921d8e10
feat: restore cursor column when cancelling goto mini mode
This commit refactors the numeric_input mini mode to make the input value
type generic. This allows the goto mini mode to store the origin column
along with the row. Also, this will allow more complex numeric_input modes,
for example a goto mini mode that supports column and row.
2025-09-17 10:04:27 +02:00
9bdc3e0a0a
fix: handle completion items with no type icon
superhtml fix
2025-09-13 20:06:44 +02:00
76600bc6bd
fix: handle completion items with no insert and/or replace coordinates
superhtml fix
2025-09-13 20:06:04 +02:00
67b214675f
refactor: log issues in LSP completion item messages 2025-09-13 20:05:28 +02:00
4eda1fec0c
feat: set beam_blick as the default cursor shape if we have mutil cursor support 2025-09-13 16:09:59 +02:00
2d55bd0326
feat: use block cursor in flow mode select submode 2025-09-13 16:09:41 +02:00
3d90b199ad
fix: do not return zero width codepoints from egc_at
Skip them and return the next non-zero width codepoint. This makes more sense and
prevents endless loops in code that scans by egc width using egc_at, like
Cursor.move_right_until for example.
2025-09-13 15:45:17 +02:00
a299d27b1f
feat: add F# language support
closes #291
2025-09-09 22:30:54 +02:00
000aaf9685
fix: ignore trailing whitespace in bracketed file links 2025-09-09 12:41:21 +02:00
04951e7e9b
feat: add support for bracketed file link syntax
These file links are produced by MS compilers.

e.g: dir/file.cs(12,15):
2025-09-09 11:58:19 +02:00
fda9338a06
fix: clamp to end of last line if the cursor is past the end of the buffer
closes #289
2025-09-09 09:24:18 +02:00
251c74a23b
feat: set secondary cursors color from theme in multi cursor mode 2025-09-08 22:07:10 +02:00
44e19d2193
feat: update multi cursor support for latest kitty 2025-09-08 21:38:13 +02:00
76ef0aff3a
fix: minor off-by-one bug in View.is_visible 2025-08-25 21:32:58 +02:00
6ac8ecd2f0
fix: run zig fmt 2025-08-25 21:16:12 +02:00
dd5bdfdf8a
fix(win32): add missing multi cursor function stubs 2025-08-25 21:13:33 +02:00