question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[UX] Implement a Pasted Path Conversion feature

See original GitHub issue

Description of the new feature/enhancement

Inspired by this Issue in PowerShell https://github.com/PowerShell/PowerShell/issues/12900 I think that we should have an experimental/opt in feature that allows a pasted bit of text like

C:\Program Files\

to auto convert to

'C:\Program Files\'

with an optional ability for on paste to auto run Test-Path via a configuration option to confirm that the path exists first for commands like Set-Location as not to throw an error (by Set-Location) when an attempt to set-location is to a non existing location.

I personally don’t think this should be added to PowerShell natively & felt that it was better added here instead.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
lzybkrcommented, Jun 10, 2020

A simpler sample might be warranted. If the pasted text resolves to a path (call Test-Path) and has whitespace, just add quotes. This also seems more useful, e.g. when calling external commands.

1reaction
daxian-dbwcommented, Jun 10, 2020

@SeeminglyScience wow, awesome! Can you submit a PR to add this to SamplePSReadLineProfile.ps1?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Happy Path in UX Design?
Designing happy paths is every designer's priority. Happy paths create positive user experiences, increasing product adoption and retention.
Read more >
How UI/UX Website Design Increases Conversion Rates
10-Minute Quickview on UI/UX design and how it impacts website conversions. Learn how to implement the right approach toward increasing ...
Read more >
Advanced UX Analysis: What Are Funnels & How to Use ...
Funnels allow product managers to track conversion rates between funnel steps and identify areas where users are getting stuck or dropping off.
Read more >
Mastering Photoshop With Paths
You can create your paths in Illustrator and easily import them by Copying (Command + C) and Pasting (Command + V) in Photoshop....
Read more >
12 Best UX Tools & Software to Perfect the User Experience
Learn about the most useful UX tools to improve the user experience, the different types of tools, which ones are right for you,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found