2.7.0 (2024-12-07)
Features
- bigfile: disable matchparen, set foldmethod=manual, set conceallevel=0 (891648a)
- dashbard: explude files from stdpath data/cache/state in recent files and projects (b99bc64)
- dashboard: allow items to be hidden, but still create the keymaps etc (7a47eb7)
- dashboard: allow terminal sections to have actions. Closes #189 (78f44f7)
- dashboard: hide title if section has no items. Fixes #184 (d370be6)
- dashboard: make buffer not listed (#191) (42d6277)
- dashboard: when a section has a title, use that for action and key. If not put it in the section. Fixes #189 (045a17d)
- debug: added
Snacks.debug.run()
to execute the buffer or selection with inlined print and errors (e1fe4f5) - gitbrowse: added
line_count
. See #186 (f03727c) - gitbrowse: opts.notify (a856952)
- gitbrowse: url pattern can now also be a function (0a48c2e)
- notifier: reverse notif history by default for
show_history
(5a50738) - scratch:
opts.ft
can now be a function and defaults to the ft of the current buffer or markdown (652303e) - scratch: change keymap to execute buffer/selection to
<cr>
(7db0ed4) - scratch: use
Snacks.debug.run()
to execute buffer/selection (32c46b4) - snacks: added
Snacks.profiler
(8088799) - snacks: added new
scratch
snack (1cec695) - toggle: toggles for the profiler (999ae07)
- util: encode/decode a string to be used as a filename (e6f6397)
- util: simple function to get an icon (7c29848)
- win: added
opts.fixbuf
to configure fixed window buffers (1f74d1c) - win: backdrop can now be made opaque (681b9c9)
- win: width/height can now be a function (964d7ae)
Bug Fixes
- dashboard: calculate proper offset when item has no text (6e3b954)
- dashboard: prevent possible duplicate recent files. Fixes #171 (93b254d)
- dashboard: take hidden items into account when calculating padding. Fixes #194 (736ce44)
- dashboard: take indent into account when calculating terminal width (cda695e)
- dashboard: truncate file names when too long. Fixes #183 (4bdf7da)
- debug: better way of getting visual selection. See #190 (af41cb0)
- gitbrowse: opts.notify (2436557)
- gitbrowse: removed debug (f894952)
- gitbrowse: use line_start and line_end directly in patterns. Closes #186 (adf0433)
- profiler: startup opts (85f5132)
- scratch: always set filetype on the buffer. Fixes #179 (6db50cf)
- scratch: floating window title/footer hl groups (6c25ab1)
- scratch: make sure win.opts.keys exists. See #190 (50bd510)
- scratch: sort keys. Fixes #193 (0df7a08)
- scratch: weirdness with visual selection and inclusive/exclusive. See #190 (f955f08)
- statuscolumn: add virtnum and relnum to cache key. See #198 (3647ca7)
- statuscolumn: don't show signs on virtual ligns. See #198 (f5fb59c)
- util: better support for nvim-web-devicons (ddaa2aa)
- util: make sure to always return an icon (ca7188c)
- win: allow resolving nil window option values. Fixes #179 (0043fa9)
- win: don't force close modified buffers (d517b11)
- win: update opts.wo for padding instead of vim.wo directly (446f502)
- win: update window local options when the buffer changes (630d96c)