[Suggestion]: Use forwardslash everywhere

Discussion related to "Everything" 1.5 Alpha.
Post Reply
DerekZiemba
Posts: 42
Joined: Thu Sep 27, 2018 4:46 pm

[Suggestion]: Use forwardslash everywhere

Post by DerekZiemba »

To use forward slash everywhere so that backslash can be used for escaping.
  • Display all paths with forward slash
  • When a path is pasted, auto-convert backslash to forward slash (unless backslash is escaped with backslash in front of it)
  • When a path is copied, use the forward slash representation.
    • Already works fine in Explorer
    • Works fine in every shell/terminal except cmd & that's being replaced by pwsh anyway.
    • Works in browsers
    • As a dev, I won't have to manually convert to forwardslash when pasting into a JSON file, etc.
  • Perhaps, to simplify things, go as far as making the internal path representation always be forward slash & converting as needed when interacting with win32 APIs.
Once that's settled, do what every other normal program does and use backslash as an escape hatch. Could then potentially open up more advanced globbing, with `\` escaping the literal representation

----------------------
However In the meantime, simpler things:
  • Add a setting to copy paths with forward slashes.
    Or to copy with backslashes already escaped, ie: `C:\\Windows\\System32\\some\\folder`
  • Some way to glob for numbers.
    • I'd suggest `#` but that's a valid path character.
    • `:` is unused but may conflict with the macro/property system.
    • `< | >` already work nicely (in the search bar, not sure if it works everywhere though like the Index Exclude List).
    • This leaves `"` as the only remaining invalid path character, but is already used to group things with spaces in them.
      But... If there was an escape char `\`.... a lot of options open up
horst.epp
Posts: 1445
Joined: Fri Apr 04, 2014 3:24 pm

Re: [Suggestion]: Use forwardslash everywhere

Post by horst.epp »

WE are in a Windows environment, which clearly uses \ for paths.
There are enough other ways to escape some characters without changing fundamental things.
void
Developer
Posts: 16734
Joined: Fri Oct 16, 2009 11:31 pm

Re: [Suggestion]: Use forwardslash everywhere

Post by void »

I have put on my TODO list to add an option to convert \ to /

I will consider more globbing options and \ escaping.

Thank you for the suggestions.
Post Reply