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 : custom filename #187

Closed
Yoanndp opened this issue Dec 4, 2022 · 4 comments · Fixed by #189
Closed

Feature request : custom filename #187

Yoanndp opened this issue Dec 4, 2022 · 4 comments · Fixed by #189
Assignees
Labels
enhancement New feature or request

Comments

@Yoanndp
Copy link

Yoanndp commented Dec 4, 2022

Hello, I'm suggesting a feature which allow the end user to customize the record name. In my case, I'd like to show the contact name at first. Could you add this feature please ?

@Yoanndp
Copy link
Author

Yoanndp commented Dec 4, 2022

Yikes, I just saw in the read me "never be implemented [...] Changing the filename format"

@Yoanndp Yoanndp closed this as completed Dec 4, 2022
@chenxiaolong
Copy link
Owner

I thought about this and I think I might implement it. However, in order to keep BCR's code simple, there will be no GUI setting for it.

Users will be able to change the filename template by creating a file named filename_template.txt in the output directory. The template will be fully customizable: the fields can be reordered or removed and additional text can be added.

@chenxiaolong chenxiaolong reopened this Dec 6, 2022
@chenxiaolong chenxiaolong self-assigned this Dec 6, 2022
@chenxiaolong chenxiaolong added the enhancement New feature or request label Dec 6, 2022
chenxiaolong added a commit that referenced this issue Dec 8, 2022
This is a hidden feature and will not be exposed via BCR's GUI. A user
can customize the output filename by copying the default template to
<output directory>/bcr.properties and then editing the file.

Fixes: #187

Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com>
@chenxiaolong
Copy link
Owner

This has been implemented and will be available in version 1.26.

To customize the output template, you can copy https://github.com/chenxiaolong/BCR/blob/master/app/src/main/res/raw/filename_template.properties to bcr.properties inside the output directory and then edit the file (or you can create a new text file from scratch if you prefer).

To move the phone number to the end, you can take the default template and move ${phone_number} to the last item. For example:

filename.0.text = ${date}

filename.1.text = ${direction}
filename.1.prefix = _

filename.2.text = ${sim_slot}
filename.2.prefix = _sim

filename.3.text = ${contact_name}
filename.3.prefix = _

filename.4.text = ${caller_name}
filename.4.prefix = _

filename.5.text = ${phone_number}
filename.5.prefix = _

@drkhemu
Copy link

drkhemu commented Dec 25, 2022

hello developer, i am so sorry to tell you that , i could not find any bcr.properties file to edit in output directory folder. and when i create the text file using the template given and rename is as bcr.properties , nothing happened so pls could guide us more on this

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

Successfully merging a pull request may close this issue.

3 participants