Giter Site home page Giter Site logo

Alphabetize entries inside groups about synx HOT 16 OPEN

marklarr avatar marklarr commented on July 21, 2024
Alphabetize entries inside groups

from synx.

Comments (16)

eytanbiala avatar eytanbiala commented on July 21, 2024

+1 !

from synx.

foobra avatar foobra commented on July 21, 2024

+1

from synx.

ScottRobbins avatar ScottRobbins commented on July 21, 2024

I had mentioned this with @marklarr on twitter, but it would be great to get an option to not alphabetize with synx (or have alphabetizing as a flag to enable).

Having this will just be a little difficult with a team and longstanding project. Running it will reorganize a lot of the project file, which may cause issues and not everyone on my team is going to run synx (and surely won't alphabetize the files).

Synx works really well for me because I can organize my Xcode group however I want, and it will organize the file system which I never really wanted to manually touch. But forcing alphabetization doesn't follow this same pattern. For example: Maybe I have a "Views" group, and inside I have all .xib files, some of them are cells, some of them are view controllers, and I want to group them together like that instead of alphabetizing. (sure I could make a cells folder but is that formatting decision the job of synx)

from synx.

FiRiN59 avatar FiRiN59 commented on July 21, 2024

Please make sorting optional and switched off by default! Folder structure is one thing, but logical project organization is sacred for many of us.

P.S. Ideally you should have different options for groups and files.

from synx.

marklarr avatar marklarr commented on July 21, 2024

I asked around to the team at work, because I wanted to verify that it was a safe assumption that users of Synx would be a fan of Xcode mirroring the file system as closely as possible, but apparently we all assumed incorrectly 😆. Sorry to anyone that this has gotten in the way of -- the good news is, you can lock-in to synx v0.0.61 until I can rollout a flag for this. Honestly, unless the community as a whole feels strongly otherwise, I'd like to keep the flag on by default.

from synx.

FiRiN59 avatar FiRiN59 commented on July 21, 2024

You mean v0.0.61, right?

As for the flag... For me synx is a great tool that takes my project's logical structure and tries to mimic it on the disk as closely as possible. I don't expect it to alter the project itself. Another consideration is backward compatibility. You are adding a feature that changes default behaviour and that's not a good thing for existing users. So my vote is: "It's good to have this feature, but it should be off by default." But of course the tool is in 0.1.x stage, so for the long term vision "default on" might make more sense.

from synx.

marklarr avatar marklarr commented on July 21, 2024

Yes sorry, v 0.0.61, thanks for catching that. Edited.

Synx already alters the project itself -- you'll notice that, after running Synx on a disorganized project, the .pbxproj will have a lot of diff.

For me synx is a great tool that takes my project's logical structure and tries to mimic it on the disk as closely as possible

Wouldn't also alphabetizing groups/files help us get even closer to the disk?

As for backwards compatibility, people can just shut the flag off 😄

from synx.

FiRiN59 avatar FiRiN59 commented on July 21, 2024

I don't want to be closer to the disk, I want the disk to be closer to me (logical structure of the project). But anyways it's a great tool and I can live with "default on".

from synx.

ScottRobbins avatar ScottRobbins commented on July 21, 2024

Yeah I agree with @FiRiN59 , but I won't complain as it's a great tool that you've made for free :P I appreciate you considering adding a flag to not alphabetize

from synx.

AndrewSB avatar AndrewSB commented on July 21, 2024

I agree with @ScottRobbins & @FiRiN59, having a flag that turns off Alphabetizing would be awesome. Having my project order restructured is not fun

from synx.

rafalwojcik avatar rafalwojcik commented on July 21, 2024

@AndrewSB @FiRiN59 @marklarr @eytanbiala @foobra Done :)

from synx.

lukaskubanek avatar lukaskubanek commented on July 21, 2024

@rafalwojcik Great job, thank you! I've been silently waiting for this feature for so long.

from synx.

AndrewSB avatar AndrewSB commented on July 21, 2024

@rafalwojcik Made my morning 😊

from synx.

FiRiN59 avatar FiRiN59 commented on July 21, 2024

@rafalwojcik Amazing, thx!

from synx.

BluMist avatar BluMist commented on July 21, 2024

This is a tad nitpicky, but the sort order is different from what XCode does when "Sort By Name".

I believe the sort order is case insensitive in XCode, space/symbol before alphanumeric; Synx will order groups/folders first then add files, XCode will sort everything in one bucket. Just a couple inconsistencies that I have noticed.

from synx.

ScottRobbins avatar ScottRobbins commented on July 21, 2024

Very late, but @rafalwojcik You're a wonderful person.

from synx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.