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

problem file name: both short & full #436

Open
goyalyashpal opened this issue May 16, 2024 · 1 comment
Open

problem file name: both short & full #436

goyalyashpal opened this issue May 16, 2024 · 1 comment

Comments

@goyalyashpal
Copy link

hi!

problem solution

  • thanks a lot for this wonderful extension.
  • cph.general.useShortCodeForcesName does "instead of" i.e. either 144C or C_Anagram_Search
  • would it be possible to use both the short and full name? so like: 144C_Anagram_Search

cph.general.useShortCodeForcesName
Use a short ID for problem file generated ( like 144C ) instead of the complete problem name for codeforces problems

implementation details

it can be implemented in 2 ways:

  1. (preferred imo) changing the option cph.general.useShortCodeForcesName to be multivalued instead of boolean
    so, smth like: cph.generatl.fileName: short, full, both, custom

  2. (bad UX imo:) giving different boolean options for each field (shortcode, fullname) and picking some default (like fullname) when all (both for now) are disabled. the format will be: short_full

environment & versions

$ codium --list-extensions --show-versions | grep agrawal
divyanshuagrawal.competitive-programming-helper@6.1.0

$ codium -v
1.89.1
a045dcfceda27f896936bfd8cbf524f6a93a2f46
x64

$ systeminfo | grep -Ei "^os (n|v)|system type"
OS Name:                   Microsoft Windows 10 Home Single Language
OS Version:                10.0.19045 N/A Build 19045
System Type:               x64-based PC

Extension Version: see above
VS Code Version: see above
Operating System: see above

Browser Version: Vivaldi 6.7.3329.31 (Stable channel) (64-bit)
Chrome/124.0.0.0

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

No branches or pull requests

1 participant