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

If entry data is changed, file name should also be changed #11316

Open
koppor opened this issue May 20, 2024 · 6 comments
Open

If entry data is changed, file name should also be changed #11316

koppor opened this issue May 20, 2024 · 6 comments
Assignees
Labels
FirstTimeCodeContribution Triggers GitHub Greeter Workflow good first issue An issue intended for project-newcomers. Varies in difficulty.

Comments

@koppor
Copy link
Member

koppor commented May 20, 2024

  • An entry has a file attached
  • The filename matches "rename to the defined pattern" (meaning auto generated file name; configured in Preferences -> Linked files -> Linked file name conventions)
  • I change the data also changing the name generated the defined pattern
  • JabRef should rename the file, too

Tasks:

  1. Add a preference Linked files -> Linked file name conventions -> [ ] Auto rename files if entry changes (false as default)
  2. Listen to entry change events and check preference and rename file (if preference allows and file name matches)

Note that an empty pattern should not result in any action (because the file name does not match)

@koppor koppor added the good first issue An issue intended for project-newcomers. Varies in difficulty. label May 20, 2024
@abimael-turing
Copy link

abimael-turing commented May 20, 2024

@koppor Can I work on this issue?

Could you please provide the steps to reproduce the behavior?

@ThiloteE ThiloteE added the FirstTimeCodeContribution Triggers GitHub Greeter Workflow label May 20, 2024
Copy link
Contributor

Welcome to the vibrant world of open-source development with JabRef!

Newcomers, we're excited to have you on board. Start by exploring our Contributing guidelines, and don't forget to check out our workspace setup guidelines to get started smoothly.

Having any questions or issues? Feel free to ask here on GitHub. Need help setting up your local workspace? Join the conversation on JabRef's Gitter chat. And don't hesitate to open a (draft) pull request early on to show the direction it is heading towards. This way, you will receive valuable feedback.

Happy coding! 🚀

@abimael-turing
Copy link

@ThiloteE I am currently working on it.

@ThiloteE
Copy link
Member

The steps to reproduce the behaviour have already been given, but if something is a little unclear, maybe the documentation about "entries" and "linked files" will be of help:

We are talking about the "file" field, which is a JabRef-specific field.

@it-harsh
Copy link

@abimael-turing , are you still working on it ?

@narasimhareddyputta94
Copy link

@abimael-turing is currently working on this issue. If you would like to collaborate or have any input, feel free to comment on the issue thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FirstTimeCodeContribution Triggers GitHub Greeter Workflow good first issue An issue intended for project-newcomers. Varies in difficulty.
Projects
Status: Reserved
Status: Reserved
Development

No branches or pull requests

5 participants