Commit graph

802 commits

Author SHA1 Message Date
mnv
abf5af727f
feat: improve Command implementation and error handling
- Replace raw_set with set for safer global table manipulation
- Add proper error handling for UserData type matching in make_stdio
- Use to_str() instead of to_string_lossy() for proper UTF-8 validation
- Improve code organization and readability
- Add missing lua context parameter in command constructor
- Remove redundant braces in args method

These changes make the Command implementation more robust and safer to use while maintaining the existing functionality. The improved error handling will help catch potential issues earlier in the development process.
2024-10-26 17:45:58 +08:00
三咲雅 · Misaki Masa
ef1a31a274
perf: using usize instead of *const OsStr reduces memory usage (#1839) 2024-10-26 17:09:27 +08:00
三咲雅 · Misaki Masa
96bcd820b8
refactor: add tests for Pattern::match_path (#1837) 2024-10-26 08:53:01 +08:00
三咲雅 · Misaki Masa
56f9a6a1eb
fix: reset image rendering and skip peeking if the TUI in the background (#1833) 2024-10-25 16:52:57 +08:00
三咲雅 · Misaki Masa
60cfa7dba9
feat: launch from preset settings if the user's config cannot be parsed (#1832) 2024-10-25 16:27:26 +08:00
sxyazi
81fd949016
chore: add discussion template 2024-10-25 08:48:52 +08:00
三咲雅 · Misaki Masa
e8c1d625ac
fix: use a unique Id for each tab (#1826) 2024-10-24 08:57:08 +08:00
三咲雅 · Misaki Masa
35d781e240
feat: allow customizing Zoxide's FZF options with YAZI_ZOXIDE_OPTS (#1822) 2024-10-23 10:45:41 +08:00
三咲雅 · Misaki Masa
0e118b5b3a
fix: use std copy function in a blocking thread (#1817) 2024-10-21 09:16:54 +08:00
三咲雅 · Misaki Masa
16881aab2f
feat: support reading non-UTF8 data with Child:read_line() API (#1816) 2024-10-21 02:59:38 +08:00
三咲雅 · Misaki Masa
24a77d8a5f
feat: add ICC profile to images for better color accuracy (#1808) 2024-10-19 21:07:41 +08:00
三咲雅 · Misaki Masa
11c5f3fed4
perf: apply rotate in place to images with orientation (#1807) 2024-10-19 10:29:36 +08:00
三咲雅 · Misaki Masa
df78827af5
fix: implement the file copy process for Linux and Android separately (#1805) 2024-10-19 08:58:06 +08:00
greg
53043313ba
feat: custom styles for the confirm component (#1789)
Co-authored-by: sxyazi <sxyazi@gmail.com>
2024-10-17 18:39:51 +08:00
三咲雅 · Misaki Masa
a6c9c93d58
refactor: remove migration code as it's no longer needed and causes errors (#1795) 2024-10-16 20:26:39 +08:00
三咲雅 · Misaki Masa
e58cf555da
feat: add a compatibility layer for ui.Paragraph to help users transition more smoothly to the new ui.Text (#1794) 2024-10-16 20:17:56 +08:00
三咲雅 · Misaki Masa
0824e11cd2
fix: images were not cleared when closing a tab in front of the current tab (#1792) 2024-10-16 19:11:48 +08:00
Sarveshwaar SS
17a1169ea2
feat: append the suffix to the end when generating unique filenames for directories, i.e., after not before the extension (#1784)
Co-authored-by: sxyazi <sxyazi@gmail.com>
2024-10-16 00:44:27 +08:00
三咲雅 · Misaki Masa
097e5abb82
refactor: replace Metadata with Cha in the file scheduler to improve interoperability with yazi-fs (#1785) 2024-10-15 20:38:34 +08:00
gaesa
3e8ac856cf
feat: prevent paths from being treated as options in file command (#1783) 2024-10-15 00:44:31 +08:00
三咲雅 · Misaki Masa
1acd7ca80f
feat!: decouple ui.List, ui.Bar, ui.Border, and ui.Gauge from coordinates (#1782) 2024-10-14 19:39:59 +08:00
三咲雅 · Misaki Masa
43b5ae0e6c
feat!: add ui.Text, ui.Table, remove ui.Paragraph and ui.ListItem (#1776) 2024-10-14 01:54:03 +08:00
三咲雅 · Misaki Masa
35c3c9e0f7
refactor!: rename the term select to toggle to reserve select for future use (#1773) 2024-10-13 18:47:12 +08:00
三咲雅 · Misaki Masa
13e307eab2
refactor: simplify module exports (#1770) 2024-10-12 21:05:12 +08:00
sxyazi
da1b2365b9
feat: add the plugin name to the deprecated API warning to make it more clear 2024-10-11 22:01:38 +08:00
三咲雅 · Misaki Masa
c84917c5e8
feat: yazi --debug supports detecting whether tmux is built with --enable-sixel (#1762) 2024-10-11 19:39:47 +08:00
三咲雅 · Misaki Masa
2014aee646
fix!: introduce a new btime term to align ctime with Unix (#1761) 2024-10-11 18:05:08 +08:00
三咲雅 · Misaki Masa
558d97d084
perf: merge multiple file operations into one to greatly speed up updates in large directories (#1745) 2024-10-08 19:33:38 +08:00
三咲雅 · Misaki Masa
064517665d
refactor: derive the Into<Opt> trait with procedural macros to avoid bloat (#1742) 2024-10-07 22:04:38 +08:00
三咲雅 · Misaki Masa
dcbe7873cd
fix: upserting operation should handle deleting in edge cases where the source and target URNs are different (#1737) 2024-10-06 13:04:52 +08:00
三咲雅 · Misaki Masa
87b159fb9d
fix: clamp when seeking a non-zero unit between -1 and 1 (#1736) 2024-10-05 22:32:18 +08:00
三咲雅 · Misaki Masa
491f8b8fb1
fix: compositors not supported by Überzug Wayland layer, or WSL not with WezTerm should fallback to Chafa (#1735) 2024-10-05 22:16:20 +08:00
三咲雅 · Misaki Masa
3321f47d46
refactor: use Kgp instead of Kitty since "Kitty" is a terminal emulator not a protocol name (#1732) 2024-10-04 23:43:36 +08:00
三咲雅 · Misaki Masa
3150fb10f7
refactor: turn RectRef, PaddingRef, PositionRef into Rect, Padding, Position (#1730) 2024-10-04 20:23:36 +08:00
三咲雅 · Misaki Masa
8c5d8aa589
fix: temporarily disable TIFF decoding (#1723) 2024-10-03 16:03:17 +08:00
三咲雅 · Misaki Masa
034c28bacb
feat: reuse the code previewer seeking behavior for json, archive, and empty (#1721) 2024-10-03 08:21:17 +08:00
XYenon
a96c60ce6a
feat!: make backspace command not close the input even when value is empty (#1680) 2024-10-03 07:41:28 +08:00
三咲雅 · Misaki Masa
e1773b11f1
feat: async micro task initialization error handling (#1710) 2024-10-01 18:38:37 +08:00
三咲雅 · Misaki Masa
40211df219
fix: replace control characters to printable characters in plain text preview (#1704) 2024-09-30 00:37:33 +08:00
sxyazi
a7b9275c06
feat: switch snap confinement to strict 2024-09-29 19:32:13 +08:00
三咲雅 · Misaki Masa
e6912da7d1
feat: add more context to error messages (#1701) 2024-09-29 15:56:28 +08:00
三咲雅 · Misaki Masa
3e4973dbbf
feat: allow overriding and rewriting the sync methods of builtin plugins (#1695) 2024-09-28 00:41:34 +08:00
三咲雅 · Misaki Masa
70fbe41cc2
fix: increase the revision when there is a change in Urn on updating (#1691) 2024-09-27 09:32:53 +08:00
Raphael Amorim
9f8109e02e
feat: adapt for image preview in the Rio terminal (#1690)
Co-authored-by: sxyazi <sxyazi@gmail.com>
2024-09-27 00:35:01 +08:00
dm9pZCAq
e2816716a0
feat: improve jemalloc memory efficiency (#1689) 2024-09-26 20:31:28 +08:00
venatio
ae53ef4443
fix: magick previewer for multi-layered image files with -flatten argument (#1684) 2024-09-26 09:14:13 +08:00
三咲雅 · Misaki Masa
c4ffdc08bb
fix: enter and leave commands should treat the search results as regular entities (#1687) 2024-09-26 08:50:07 +08:00
三咲雅 · Misaki Masa
5b66192332
fix: one file's mime-type changed multiple times without triggering a preview again (#1682) 2024-09-26 00:22:55 +08:00
三咲雅 · Misaki Masa
631afd09ee
fix: warnings should be output to stderr instead of stdout (#1669) 2024-09-21 20:12:35 +08:00
三咲雅 · Misaki Masa
1a1820cf77
feat: add the area() API for renderable elements (#1667) 2024-09-21 01:47:34 +08:00