-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
Issue 4921 #5128
Issue 4921 #5128
Conversation
Thank you for opening your first PR! 🎉 We are very happy and would like to thank you very much for your contribution. If everything checks out, we'll make sure to review the PR as soon as possible and give feedback. In the meantime, to make the reviewing process as fast as possible, you can help us by checking the following things:
Furthermore, make sure that the linter does not complain, which will check your code on every new commit. If the linter task fails, make sure to run |
I just ran the unit tests, let's see where it complains. Then, this is a good suggestion, but there are settings that the user can check regarding what to view -- filename, first heading, or YAML title -- and you should respect them. These are simple Boolean toggles that you can access in commands using The state machine for these is relatively simple, I've implemented them in a bunch of renderers, just search for If you could implement that, then it should be good to go! |
Thanks Nathan, Ill get onto this :) |
@nathanlesage Im still unsure why the tests are failing, but I have reimplemented the code so that it satisfies the condition outlined above. Thanks :) |
No no the config option is supposed to be one of three strings:
The character in between doesn't matter so much, but that is why I do the "includes" check -- that will match both "heading" and "heading+title" and the same for the title property. |
But that being said, as you implemented it should work as well. Just two final changes and then it's ready to merge:
|
@nathanlesage Hello, sorry to ping. But I think I have redone this PR so that it fits what you describe. Please let me know how to progress at this stage |
Checklist
yarn test fails, but I can't really work out why
Description
Changes the file preview so that the title display is now the file yamlTitle or firstHeading rather than fileName. This should make the file preview more descriptive.
Changes
The file-find-and-return-meta data query now returns previewTitle in its 0th index rather than descriptor.name
Tested on: MacOs 14.3.1