# Windows 11 Beets/Python Newbie EASY Question

**URL:** <https://discourse.beets.io/t/windows-11-beets-python-newbie-easy-question/2670>\
**Category:** Help\
**Created:** [November 10, 2024, 2:01am UTC](https://discourse.beets.io/t/windows-11-beets-python-newbie-easy-question/2670 "2024-11-10T02:01:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKM](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@MKM](https://discourse.beets.io/u/MKM)\
**Post date:** [November 10, 2024, 2:01am UTC](https://discourse.beets.io/t/windows-11-beets-python-newbie-easy-question/2670/1 "2024-11-10T02:01:23Z")

</div>

Windows 11 Python 3.12.5  
I can’t figure out how to set the default editor to “C:\Program Files\Notepad++\notepad++.exe”

When I run:  
C:\Users\mike\>beet config -e  
error: Could not edit configuration: [Errno 2] No such file or directory

I get a similar error running edit plug-in:  
beet edit

The edit plug-in says “Your text editor (i.e., the command in your `$VISUAL` or `$EDITOR` environment variable)” but for the life of me I cannot find where to set these environment variables.

I’ve also installed PyCharm Community since I’m assuming I’ll want to use it for $VISUAL

I have successfully imported most of my music:  
beet stats  
Tracks: 82358  
Total time: 31.3 weeks  
Approximate total size: 364.7 GiB  
Artists: 11276  
Albums: 5022  
Album artists: 1878

---

<div class="post-metadata">

**Author:** ![Wirlz](https://avatars.discourse-cdn.com/v4/letter/w/df788c/32.png) [@Wirlz](https://discourse.beets.io/u/Wirlz)\
**Post date:** [November 10, 2024, 2:59am UTC](https://discourse.beets.io/t/windows-11-beets-python-newbie-easy-question/2670/2 "2024-11-10T02:59:32Z")

</div>

I’m also new to beets (don’t think I’ll stick around since I can’t pad track/disc-numbers), but this might help you out; [Set Environment Variable in Windows {How-To} | phoenixNAP KB](https://phoenixnap.com/kb/windows-set-environment-variable)

I’m also on windows, but I use GitBash so I’m not very familiar with how windows normally handles it.

---

<div class="post-metadata">

**Author:** ![snejus](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@snejus](https://discourse.beets.io/u/snejus)\
**Post date:** [November 11, 2024, 12:41am UTC](https://discourse.beets.io/t/windows-11-beets-python-newbie-easy-question/2670/3 "2024-11-11T00:41:08Z")

</div>

Sorry to be off-topic, but @Wirlz I thought I’d mention this just in case this is what you’re after: my track numbers _in paths_ are padded with the following configuration using `inline` plugin and some template functions:

```yaml
...
plugins:
  ...
  inline
...
item_fields:
  track_identification: |
    if (track_alt := globals().get("track_alt")) and track_alt[0].isalpha():
      idx = track_alt
    elif track:
      idx = str(track).zfill(2)
    else:
      return ""

    if disctotal > 1:
      idx = f"{disc}_{idx}"

    return f"{idx}_"
  withdrawn: albumstatus == "Withdrawn"
paths:
  default: |
    %lower{
      $label/
      %if{$withdrawn,_withdrawn/}
      $album-%aunique{}/
      $track_identification${artist}_$title
    }
  ...
...

```

This way, I have paths like

```auto
...darksideofthemoon/03_pinkfloyd_ontherun.flac
...darksideofthemoon/02_pinkfloyd_breathe.flac
...darksideofthemoon/10_pinkfloyd_eclipse.flac
...darksideofthemoon/08_pinkfloyd_anycolouryoulike.flac
...darksideofthemoon/07_pinkfloyd_usandthem.flac
...darksideofthemoon/01_pinkfloyd_speaktome.flac
...darksideofthemoon/06_pinkfloyd_money.flac
...pulse/1_01_pinkfloyd_shineonyoucrazydiamond.flac
...darksideofthemoon/04_pinkfloyd_time.flac
...pulse/2_12_pinkfloyd_comfortablynumb.flac
...darksideofthemoon/09_pinkfloyd_braindamage.flac
...darksideofthemoon/05_pinkfloyd_thegreatgiginthesky.flac
...ase002/a1_spiderwrap_denial.flac

```

---

<div class="post-metadata">

**Author:** ![Wirlz](https://avatars.discourse-cdn.com/v4/letter/w/df788c/32.png) [@Wirlz](https://discourse.beets.io/u/Wirlz)\
**Post date:** [November 11, 2024, 5:59am UTC](https://discourse.beets.io/t/windows-11-beets-python-newbie-easy-question/2670/4 "2024-11-11T05:59:03Z")

</div>

I appreciate your intention, but the filenaming isn’t my gripe, it’s the tag numbering. You can’t pad tracks, at least I haven’t found a way.

I thought I might be able to using the Edit plugin, but it just reverts them to unpadded 1-9.

That really urks me the wrong way, but I might have to put up with it. I think I’ll just use Beets to do the initial tagging/filenaming, move the files elsewhere, then I’ll go in with another tool to fix the track/disc numbers. Won’t be keeping a .db with Beets.
