Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
開発効率を考えてみました。xsort
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
keisukeYamagishi
February 01, 2022
340
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
開発効率を考えてみました。xsort
keisukeYamagishi
February 01, 2022
More Decks by keisukeYamagishi
See All by keisukeYamagishi
RxAlert 結構便利だと思います。
keisukeyamagishi
0
220
Chart実装が楽になりました。
keisukeyamagishi
0
1.2k
NabigationControllerとの付き合い方
keisukeyamagishi
0
340
MVVMについて.pdf
keisukeyamagishi
0
510
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
515
110k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
380
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
510
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
520
The Cost Of JavaScript in 2023
addyosmani
55
10k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
500
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
From π to Pie charts
rasagy
1
370
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
WCS-LA-2024
lcolladotor
0
830
Transcript
開発効率を考えた、gemです
初めまして、山岸と申します。 Github: https://github.com/keisukeYamagishi Twitter: https://twitter.com/jelly_0_o Qiita: https://qiita.com/keisukeYamagishi/items/a055c4b33e2c42d667e7
Xcodeのファイルツリーのファイルの並び順が汚いとファイル が探しづらい
ファイルの名前順で並んでいない、拡張子の名前で並んでい ない、名前順で上から並んでいると分かりやすいと思いまし た。
Xcodeのファイルツリーはxcodeprojの中に同梱されている、 project.pbxprojで管理されています。 このファイルは、ビルドするファイルや、アプリで使う画像、依存する ライブラリー、ビルドの方法等々を管理します。 Xcodeのファイルツリーの順番もここで管理しております。
project.pbxprojはこんなファイルです。
D&Dで並び替えると間違えたり、してしまうので、どうし たものか、、、
None
Rubyで作ってみました🎉
project.pbxprojの文字列を抽出し、ファイル名と、拡張子の名 前で並び替えるロジックを作成しました。
iOSの開発者はほとんどがMacなので、Macのデフォルトでイ ンストールされている、Rubyのバージョンで動くGemになって ます。 インストール方法は
None
デフォルトの場合 コマンド:sudo gem install xsort gemがhome直下にある場合 コマンド: gem install xsort
実行するとファイル名と拡張子でソートできます。
私はファイルツリーの並び順がおかしくなりすぎた時に 使います。 ただ、数字を多様している場合は、数字でのソート機能 は一桁までしか対応できていません、 その旨ご留意下さい。
Contributor様大歓迎です🎉