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

Feature request - Allow placing files being fractalized _inside_ the folder #170

Open
cheapsteak opened this issue Apr 22, 2021 · 0 comments

Comments

@cheapsteak
Copy link

cheapsteak commented Apr 22, 2021

Was ecstatic that this project exists

Then crestfallen to find it follows that hackernoon article's interpretation of "fractal"

Would hugely appreciate an option to configure the rules to be a truer fractal

Since folders are displayed first in their own group, there's a problem where you have to scroll up and down and up and down between a file and its folder as a project scales horizontally to have more things

/src
   /[...]/
   /[...]/
   /[...]/
   ...
   /[...]/
   /[...]/
   /someComponent
   /someOtherComponent
  [....tsx]
  [....tsx]
  [....tsx]
  ...
  [....tsx]
  [....tsx]
  SomeComponent.tsx
  SomeOtherComponent.tsx

When I'm working in the region of SomeComponent.tsx, I would like to be able to zoom in to just SomeComponent.tsx and its dependency files without having to scroll past all of its siblings and its siblings dependencies

Consider also the case of storybooks and tests

Having the file being fractalized inside the folder and next to its storybook and tests imo makes so much more sense

/src
   /[...]/
   /[...]/
   /[...]/
   /[...]/
   /[...]/
   /someComponent
      SomeComponent.tsx
      SomeComponent.story.tsx
      SomeComponent.test.tsx
  [....tsx]
  [....tsx]
  [....tsx]
  [....tsx]
  [....tsx]

compared to

/src
   /[...]/
   /[...]/
   /[...]/
   /[...]/
   /[...]/
   /someComponent
      SomeComponent.story.tsx
      SomeComponent.test.tsx
  [....tsx]
  [....tsx]
  [....tsx]
  [....tsx]
  [....tsx]
  SomeComponent.tsx

This might be the "semicolon" of automated folder structures; perspectives will certainly vary, but imo allowing this to be an option that can be set would make it truly be the prettier (rather than the standardjs) for folder structures

(Thanks for bearing with my rant 🙏 )

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

No branches or pull requests

1 participant