Skip to content

v0.13.0

Latest

Choose a tag to compare

@mirzakhany mirzakhany released this 04 Nov 22:07
3086b2d

Chapar v0.13.0

A much stronger editor for bodies and scripts, and gRPC messages bigger than 4 MB.

New

gRPC message size

Responses over 4 MB used to fail with ResourceExhausted, with no way around it. A gRPC request's Settings tab now has Max response size (MB) and Max request size (MB). Zero keeps gRPC's defaults: 4 MB for responses, no limit for requests. The limits apply to server reflection as well.

Editor

Body, script and response editors pick up a set of code-editor features:

  • Multiple cursors: ⌥-click adds a caret, ⌘D adds the next occurrence of the selection, ⌘⇧L selects every occurrence, ⌘⌥↑/↓ add a caret above or below, and ⌥⇧-drag selects a column. Typing, deleting, cut, copy and paste act on every cursor; Escape drops the extras.
  • Code folding: fold blocks by brackets or indentation from chevrons in the gutter, ⌥⌘[ / ⌥⌘] at the caret, or ⌘K ⌘0 / ⌘K ⌘J for everything. A folded block shows as { … }.
  • Find and replace: a redesigned find bar with match case, whole word, regex (with $1 groups), preserve case, find in selection and an "N of M" counter. Its fields are real text fields, so select all, copy, paste and undo work in them. Replace All is one undo step.
  • Line commands: duplicate (⇧⌥↑/↓), move (⌥↑/↓) and delete (⌘⇧K) lines, and toggle a line comment (⌘/).
  • Moving around: by word (⌥←/→), to line start and end, with Home switching between the first non-blank and column 0, and to the start and end of the file. ⇧-click extends the selection.
  • Undo brings back every cursor an edit had.
  • On Windows and Linux, the same shortcuts use Ctrl in place of ⌘ (word moves use Ctrl+←/→).

Syntax colors

Go, Python, Rust, JavaScript and TypeScript scripts color functions, methods, properties, parameters, constants and builtins apart. Protocol Buffers, Java, TOML, C, C++, C#, Lua, Ruby, PHP, Zig and Makefiles are now highlighted too.