Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating to Yazi v0.4.0 #1772

Open
sxyazi opened this issue Oct 13, 2024 · 2 comments
Open

Migrating to Yazi v0.4.0 #1772

sxyazi opened this issue Oct 13, 2024 · 2 comments
Labels
feature New feature request

Comments

@sxyazi
Copy link
Owner

sxyazi commented Oct 13, 2024

Note

v0.4 is still under development, and this issue will be updated accordingly as progress is made.


1. Reserve the term select for future use

See #1773 for details.

1.1 - Renamed select command to toggle

# keymap.toml
[manager]
- { on = "<Space>", run = "select --state=none" },
+ { on = "<Space>", run = "toggle" },
# keymap.toml
[manager]
- { on = "<C-r>", run = "select_all --state=none" },
+ { on = "<C-r>", run = "toggle_all" },

- { on = "<C-a>", run = "select_all --state=true" },
+ { on = "<C-a>", run = "toggle_all on" },

The documentation is now available for the two new commands: toggle command and toggle_all command.

1.2 - Renamed the select component to pick component

# yazi.toml / keymap.toml / theme.toml
- [select]
+ [pick]

2. Correct the misuse of the term ctime and unify others

See #1761 for details.

2.1 - Renamed ctime to btime for the linemode command

# keymap.toml
[manager]
- { on = [ "m", "c" ], run = "linemode ctime"  }
+ { on = [ "m", "b" ], run = "linemode btime" }

2.2 - Renamed created to btime, modified to mtime for the sort_by option

# yazi.toml
[manager]
- sort_by = "created"
+ sort_by = "btime"

- sort_by = "modified"
+ sort_by = "mtime"

2.3 - Renamed created to btime, modified to mtime for the sort command

# keymap.toml
[manager]
- { on = [ ",", "c" ], run = "sort created" }
+ { on = [ ",", "b" ], run = "sort btime" },

- { on = [ ",", "m" ], run = "sort modified" }
+ { on = [ ",", "m" ], run = "sort mtime" }
@sxyazi sxyazi added the feature New feature request label Oct 13, 2024
@sxyazi sxyazi pinned this issue Oct 13, 2024
@sxyazi
Copy link
Owner Author

sxyazi commented Nov 1, 2024

Lua API breaking changes

Renamed the created, modified, accessed, length, and permissions properties of the Cha

  • created => btime
  • modified => mtime
  • accessed => atime
  • length => len
  • permissions => perm

Note that the old names are still available, but a deprecation warning will shown — they will be completely removed in the next major version 0.4.2. See #1761 for details.

@sxyazi
Copy link
Owner Author

sxyazi commented Nov 21, 2024

Packaging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

1 participant