-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Hosts file editor #20462
Hosts file editor #20462
Conversation
@niels9001 do you have time to help with UI/UX and icon? Not urgent at all 😃 A few questions for the core team:
|
I know it is a draft. But I like to give some ux ideas:
What are the symbols on the second column for? We can add a setting where to add comments (above the entry or behind). Does it save imidiatly? I don't like souch apps. Maybe a save changes feature would be good to have. We can add a start menu shortcut to make opening easy. This makes the utility available using start menu, start menu's search and PT Run. |
Thank you.
Do you mean a button that opens the hosts file in the default editor?
Ping result.
Comments are in line.
Yes, this is really a nice experience and aligned with PT settings.
Don't think this will be possible if we make the app running under PT runner and PT module interface. |
I don't want to have editing capabilities. But maybe a raw file view is a good addition. Maybe someone has to view the raw content for some reasons. It can be open in the default editor or a second page in the tool that shows the whole file content in a read only edit. (Then you don't have to navigate through the file system.) |
Loving this 😁👍. I can definitely help out on the UI, will pick this up next week. Mind if I push directly to this branch? |
Suggestion. Have a big warning at the top that can be a setting to turn off? “Warning! altering this file has direct real world impact of how this computer resolves URLs” On by default. |
Yeah, feel free to push directly. |
@davidegiacometti I had something like this in mind - thoughts? Some questions:
|
|
@niels9001 looks awesome!
It opens a popup that allows to add extra lines (including editing unparsed ones).
Still wondering how this app will interact with PT runner. Not really sure if will have a start menu shortcut.
I have already added a startup warning. |
@davidegiacometti , @niels9001 Maybe we should use an other icon. The current one is not really descriptive to indicate what you can do. I think about something with letters. |
@davidegiacometti |
I've added some commits:
|
I've merged main, added winappsdk and PowerToysInterop files so the shared ones are used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks a lot for the contribution! Will try to get this through the release CI to make sure everything is in place for the installer and signing as well.
@Aaron-Junker , is your feedback addressed already as well? The PR is blocking on your review, I think ;)
Thank you @jaimecbernardo 🚀 |
Installer looks good now. Ready to go in. |
@davidegiacometti think you should have the privilege of squashing and merging :) |
Just my 2 cents as a random user : I'd still like to have a shortcut to edit the file in the default editor (that would ideally open as administrator). The UI is really nice to add or enable/disable a couple of hosts, but when managing dozens of them sometimes I just want to be able to copy/paste a chunk of text or use column editing to comment out 20 lines at once. At least this is my current workflow with hostsman, which does have the option to open the hosts file in a text editor. |
Great feedback |
@crutkas , @nicolus , @davidegiacometti Let's create the following two issue for feature enhancements:
|
Summary of the Pull Request
New utility for managing the hosts file.
PR Checklist
Detailed Description of the Pull Request / Additional comments
TODO
Known issues
Validation Steps Performed