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

Add option for label format string #46

Closed
4 tasks
aspiers opened this issue Dec 21, 2023 · 0 comments · Fixed by #116
Closed
4 tasks

Add option for label format string #46

aspiers opened this issue Dec 21, 2023 · 0 comments · Fixed by #116
Labels
enhancement New feature or request

Comments

@aspiers
Copy link
Member

aspiers commented Dec 21, 2023

Rather than just replacing the address with the label string, it could be replaced by a string generated from a format string specified as a user option. For example, if the format string was %s | 0x%6l...%4r then the address would be replaced by something like my wallet address | 0x123456...1234.

Potential substitution characters

  • %s -> the whole label string
  • %Ns -> label string, limited to at most the first N characters
  • %Nl -> left-most N characters of the address (excluding the initial 0x, to allow the user to omit that if they want)
  • %Nr -> right-most N characters of the address
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.

1 participant