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

troubleshooting: clarify WSL startingDirectory entry #516

Merged
merged 3 commits into from
Mar 8, 2022

Commits on Mar 1, 2022

  1. troubleshooting: Linux paths support in 'startingDirectory' was added…

    … in 1.11.2921.0
    
    In 7cd48bc (startingDirectory path for WSL no longer requires prefix,
    2022-01-07), the "Set your WSL distribution to start in the home
    directory" section of the troubleshooting guide was updated to mention
    that WSL paths can now be directly referenced, following
    microsoft/terminal@a2a6050 (When launching wsl, promote the starting
    directory to --cd (#9223), 2021-08-02).
    
    The text mentions this feature was added in Windows Terminal
    1.12.3472.0, but it actually dates back to v1.11.2421.0 (Preview) and
    v1.11.2921.0 (Stable).
    
    Update the text to mention the stable version, and link to this version
    in the GitHub releases. Also slightly improve the wording (s/are now/can
    now be/).
    phil-blain committed Mar 1, 2022
    Configuration menu
    Copy the full SHA
    6dfd63f View commit details
    Browse the repository at this point in the history
  2. troubleshooting: remove confusing 'Important' note about WSL 'startin…

    …gDirectory'
    
    In e7f739e (Docs updates for 1.11 release (MicrosoftDocs#397), 2021-08-31), an
    "Important" note was added to the "Set your WSL distribution to start in
    the home directory" section of the troubleshooting page to mention that
    'startingDirectory' now accepts Linux-style paths, following
    microsoft/terminal@a2a6050 (When launching wsl, promote the starting
    directory to --cd (#9223), 2021-08-02).
    
    The note mentions that Linux-styled paths were accepted "on newer
    versions of Windows", presumably meaning newer than 1903. Indeed, that
    version was at the time mentioned in the text as the first Windows
    vesion supporting the '//wsl$/' P9 prefix (it had been mentioned since
    the WSL startingDirectory troubleshooting entry was created in da815cc
    (Review troubleshooting page, 2020-05-04).
    
    The text of the section was updated in 7cd48bc (startingDirectory path
    for WSL no longer requires prefix, 2022-01-07) to add an example with a
    Linux-style path, and to mention that this feature was added in Windows
    Terminal itself (not in Windows), thus removing the mention of Windows
    1903. However, the "Important" note was left, and it still confusingly
    mentions that Linux-style paths are accepted on "newer" versions of
    Windows, without mentioning newer than what.
    
    Remove the note altogether.
    phil-blain committed Mar 1, 2022
    Configuration menu
    Copy the full SHA
    d5a2d5c View commit details
    Browse the repository at this point in the history
  3. .gitattributes: mark '*.md' as Markdown files

    Denote Markdown files as such with the 'diff' Git attribute [1]. This
    allows various Git commands (diff [2, 3], grep [4, 5], log [6], blame
    [7]) to show in which part of the "code" the changes are located in the
    hunk header, i.e. the previous commit would be shown as
    
        diff --git a/TerminalDocs/troubleshooting.md
        b/TerminalDocs/troubleshooting.md
        index 4a880fa..2c9d14d 100644
        --- a/TerminalDocs/troubleshooting.md
        +++ b/TerminalDocs/troubleshooting.md
        @@ -40,8 +40,6 @@ ## Set your WSL distribution to start in the home `~` directory when launched
         }
         ```
    
        -> [!IMPORTANT]
        -> On newer versions of Windows, `startingDirectory` can accept Linux-style paths.
    
         ## Setting the tab title
    
    Notice how the hunk header indicates the changes are in the "Set your
    WSL distribution to start in the home" section.
    
    The history of that specific entry can now be interrogated using
    
        git log -L:"Set your WSL distribution":TerminalDocs/troubleshooting.md
    
    [1] https://git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header
    [2] https://git-scm.com/docs/git-diff#_generating_patch_text_with_p
    [3] https://git-scm.com/docs/git-diff#Documentation/git-diff.txt--W
    [4] https://git-scm.com/docs/git-grep#Documentation/git-grep.txt--p
    [5] https://git-scm.com/docs/git-grep#Documentation/git-grep.txt--W
    [6] https://git-scm.com/docs/git-log#Documentation/git-log.txt--Lltfuncnamegtltfilegt
    [7] https://git-scm.com/docs/git-blame#Documentation/git-blame.txt--Lltfuncnamegt
    phil-blain committed Mar 1, 2022
    Configuration menu
    Copy the full SHA
    396c847 View commit details
    Browse the repository at this point in the history