material-theme-issues icon indicating copy to clipboard operation
material-theme-issues copied to clipboard

[Bug]: Project Title Bar eats the first underscore

Open danielsamuels opened this issue 1 year ago • 0 comments

Describe the bug

When using a project or file name containing underscores, the first one is always removed. This means that a_b_c becomes ab_c.

To Reproduce

  1. Have a project with underscores e.g. material_theme_repro
  2. (Optional) Have a filename with underscores e.g. example_file.py
  3. Look at the Project Title Bar at the top, notice the first underscore is missing.
  4. This applies whether it's set to {project}, {file} or {path}, or if those variables exist in a longer format.

Expected behavior

The project and file names should be shown as they are, without any missing underscores.

Material Theme Version

v9.2.1

IDE

PyCharm

System Info

PyCharm 2024.1 (Professional Edition)
Build #PY-241.14494.241, built on March 28, 2024
Licensed to Hewlett-Packard Ltd. / Daniel Finch
Subscription is active until September 2, 2024.
Runtime version: 17.0.10+8-b1207.12 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Registry:
  ide.balloon.shadow.size=0
  editor.focus.mode.color.light=474747
  editor.focus.mode.color.dark=474747
  debugger.new.tool.window.layout=true
  ide.new.editor.tabs.vertical.borders=true
  ide.animate.toolwindows=true
  ide.experimental.ui=true
  ide.editor.tab.selection.animation=true
Non-Bundled Plugins:
  AWSCloudFormation (241.14494.150)
  com.intellij.ideolog (222.3.2.0)
  Batch Scripts Support (1.0.13)
  dev.meanmail.plugin.nginx-intellij-plugin (2022.1.1)
  org.sylfra.idea.plugins.linessorter (1.0.1)
  org.intellij.plugins.hcl (241.14494.313)
  XPathView (241.14494.140)
  com.intellij.plugin.adernov.powershell (2.6.1)
  com.intellij.aqua (241.14494.288)
  GrepConsole (12.25.0-IJ2023.3)
  com.intellij.grazie.pro (0.3.298)
  net.seesharpsoft.intellij.plugins.csv (3.3.0-241)
  com.github.copilot (1.5.2.5345)
  com.mallowigi (95.0.0)
  mobi.hsz.idea.gitignore (4.5.3)
  ru.adelf.idea.dotenv (2024.1)
  com.leinardi.pycharm.mypy (0.16.2)
  com.chrisrm.idea.MaterialThemeUI (9.2.1)
  jones.restarteslintaction.restart-eslint-action (0.0.1)

Logs/Screenshots

pycharm64_2024-04-24T124503

pycharm64_2024-04-24T124514

danielsamuels avatar Apr 24 '24 11:04 danielsamuels