Commit graph

786 commits

Author SHA1 Message Date
raj kumar
7fc3587a0d
Change naming convention for folders to append index after the name
### Summary
This pull request modifies the `unique_name` function in the `path.rs` file to change the naming convention for folders. Instead of inserting an index before the last dot in the folder name, the index is now appended at the end of the folder name. This change aims to improve the clarity and usability of folder names when duplicates are created.

### Changes Made
- Updated the logic in the `unique_name` function to check if the path is a directory.
- For directories, the index is now appended at the end of the name (e.g., `a.b.c` becomes `a.b.c_1`).
- Maintained the existing behavior for file names.

### Testing
- The changes have been tested to ensure that both file and folder naming conventions work as expected.
2024-10-15 22:04:27 +05:30
raj921
3179257068 Change naming convention for folders to append index after the name 2024-10-15 21:26:08 +05:30
三咲雅 · 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
三咲雅 · Misaki Masa
ac196f211e
feat: support calling methods in builtin plugins with arbitrary types of arguments (self can now be omitted) (#1666) 2024-09-21 00:23:46 +08:00
三咲雅 · Misaki Masa
e858d11ce0
refactor: ensure that each Url contains the full location information (#1659) 2024-09-20 22:21:32 +08:00
三咲雅 · Misaki Masa
7222e178a3
perf: introduce URN to speed up large directory file updates (#1652) 2024-09-19 20:43:03 +08:00
Tyarel
dfe2884110
feat: support setting different input titles for create --dir (#1650)
Co-authored-by: sxyazi <sxyazi@gmail.com>
2024-09-17 00:03:17 +08:00
三咲雅 · Misaki Masa
28083d805e
perf: introduce URN to speed up large directory locating (#1648) 2024-09-16 18:55:03 +08:00
三咲雅 · Misaki Masa
49639aa34c
perf: avoid unnecessary allocations in base64 encoding of IIP (#1639) 2024-09-15 00:39:38 +08:00
Diego Dorado
0acf5c288e
feat: support transparent image preview (#1556)
Co-authored-by: sxyazi <sxyazi@gmail.com>
2024-09-15 00:00:43 +08:00
Dirk Wang
276f69128d
feat: make the builtin extract plugin support compressed tarballs (*.tar.gz, *.tar.bz2, etc.) (#1583)
Co-authored-by: sxyazi <sxyazi@gmail.com>
2024-09-14 21:19:17 +08:00
三咲雅 · Misaki Masa
2453539fb5
feat: add list_meta() method to archive plugin (#1638) 2024-09-14 19:00:03 +08:00
三咲雅 · Misaki Masa
bc68d1eb01
feat: complete and consistent support for the ui.Style() API (#1637) 2024-09-12 18:45:10 +08:00
三咲雅 · Misaki Masa
61c0db8630
fix: set a dedicated Mimetype agency to reconcile regular files and search results (#1627) 2024-09-10 13:39:44 +08:00
三咲雅 · Misaki Masa
b87361023f
fix: set allow-passthrough always to all instead of on to prevent overriding a user setting with a higher priority all (#1626) 2024-09-10 12:28:48 +08:00
三咲雅 · Misaki Masa
3ee1209d3c
perf: introduce URN to speed up large directory file sorting (#1622) 2024-09-10 00:41:33 +08:00
三咲雅 · Misaki Masa
d20b3d8408
refactor: privatize url of the File (#1619) 2024-09-10 00:31:21 +08:00
sxyazi
9483798459
fix: update rustix to fix the enable_raw_mode() error on WSL/Android
https://github.com/crossterm-rs/crossterm/pull/926#issuecomment-2334770989
2024-09-07 13:52:45 +08:00
三咲雅 · Misaki Masa
0cdaff98d0
fix: match icon by extension case-insensitive (#1614) 2024-09-05 23:14:38 +08:00