-
Notifications
You must be signed in to change notification settings - Fork 8
記事のソートをタイトル順にする #123
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
base: canary
Are you sure you want to change the base?
記事のソートをタイトル順にする #123
Conversation
@kiitosu ご提案ありがとうございます!また、ご連絡が遅くなりすみません。順次確認しますのでお待ち下さい 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the article sorting behavior to allow sorting by title instead of the default file path order.
- Introduces a new configuration (zenn-preview.sortArticle) that enables title-based sorting.
- Modifies the PreviewTreeItem.sortTreeItems method to remove emojis from labels before sorting.
- Updates package.json to define the new configuration option with enum values.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
src/treeview/previewTreeItem.ts | Updated sorting logic to support title-based sorting. |
package.json | Added configuration definition for sortArticle option. |
const aCleanLabel = getCleanLabel(a); | ||
const bCleanLabel = getCleanLabel(b); | ||
|
||
if (aCleanLabel || bCleanLabel) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider using an explicit non-empty string check (e.g., aCleanLabel !== '' || bCleanLabel !== '') to clarify the intended condition and improve code readability for future maintainers.
if (aCleanLabel || bCleanLabel) { | |
if (aCleanLabel !== '' || bCleanLabel !== '') { |
Copilot uses AI. Check for mistakes.
@kiitosu ご対応いただきありがとうございます! 内容自体は良さそうですが、package.json のインデントが2から4に変わっているため差分が分かりにくくなっています。お手数ですがインデント2に修正をお願いいたします 🙇 |
すみません気づいてませんでした! |
@kiitosu 忘れていないです、すいません、もう少々お待ち下さい🙇 |
📑 Summary
articleの表示順をタイトル順でソートするようにしました。
以下に作業内容を整理しました。
Resolves #
📋 Tasks
プルリクエストを作成いただく際、お手数ですが以下の内容についてご確認をお願いします。
canary
ブランチに対するプルリクエストであるより詳しい内容は Pull Request Policy を参照してください。