statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
31 stars 1 forks source link

Add hints to YAML files for manual reordering #966

Open wturrell opened 1 year ago

wturrell commented 1 year ago

I've mentioned in https://github.com/statamic/ideas/issues/965 I hate re-ordering with a trackpad.

One approach for a static CMS would be to do it in a text editor.

But files like /content/trees/collections/pages.yaml only have the UUID, which is useless for humans because you can't recognise what it is.

When the YAML file is written, could you add a comment line above with (if present) the title field and slug? This would make it trivial to move things around in the IDE / Vim / Notepad...

It would also provide an audit trail in Git commits.

The comments would be rebuilt with each reorder in the UI.