Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
開発効率を考えてみました。xsort
Search
keisukeYamagishi
February 01, 2022
0
320
開発効率を考えてみました。xsort
keisukeYamagishi
February 01, 2022
Tweet
Share
More Decks by keisukeYamagishi
See All by keisukeYamagishi
RxAlert 結構便利だと思います。
keisukeyamagishi
0
190
Chart実装が楽になりました。
keisukeyamagishi
0
1.1k
NabigationControllerとの付き合い方
keisukeyamagishi
0
310
MVVMについて.pdf
keisukeyamagishi
0
480
Featured
See All Featured
Paper Plane (Part 1)
katiecoart
PRO
0
5.5k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
700
Building the Perfect Custom Keyboard
takai
2
710
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
480
WCS-LA-2024
lcolladotor
0
480
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
320
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.5k
It's Worth the Effort
3n
188
29k
Docker and Python
trallard
47
3.8k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.7k
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様大歓迎です🎉