Searching Yang Files in Windows OneDrive
In this article, we will discuss how to search for plain text files, specifically Yang files, in Windows OneDrive. Although Windows does not seem to natively understand the Yang file type, we will explore ways to register file types that Windows knows, enabling efficient searching for Yang files within OneDrive.
What are Yang files?
Yang (Yet Another Next Generation) files are data serialization formats used for configuration, state, and event data in network devices. They are plain text files with a .yang extension, describing the data models for network devices, services, and applications.
Registering file types in Windows
Before searching for Yang files in OneDrive, it is essential to register the file type with Windows. This enables Windows to recognize the .yang file extension, allowing for proper indexing and searching within OneDrive.
Step-by-step guide to registering file types
To register the Yang file type in Windows, follow these steps:
-
Right-click on a Yang file and select
Propertiesfrom the context menu. -
In the
Propertieswindow, click on theChangebutton next toOpens with:to change the file association. -
If the default program is not listed, click on
More appsand thenLook for another app on this PC. - Navigate to the folder containing your preferred text editor (e.g., Notepad++ or Visual Studio Code) and select the executable file.
-
Click
OKto close thePropertieswindow and apply the changes.
Searching for Yang files in OneDrive
Now that the Yang file type is registered with Windows, you can efficiently search for these files within OneDrive.
Using the OneDrive web interface
To search for Yang files using the OneDrive web interface, follow these steps:
-
Log in to your OneDrive account at
https://onedrive.live.comusing your Microsoft account. -
In the top-right corner of the page, click on the
Searchbox. -
Type
*.yangto search for all Yang files within your OneDrive storage.
Using the Windows File Explorer
To search for Yang files using the Windows File Explorer, follow these steps:
- Open the File Explorer and navigate to your OneDrive folder.
-
In the top-right corner of the File Explorer window, click on the
Searchbox. -
Type
*.yangto search for all Yang files within your OneDrive folder.
In this article, we have covered how to search for plain text Yang files in Windows OneDrive. By registering the Yang file type with Windows, we have enabled efficient searching for these files within OneDrive using either the OneDrive web interface or the Windows File Explorer.
References
-
Yang - Yet Another Next Generation: https://datatracker.ietf.org/wg/yang/about/ -
OneDrive Help & Learning: https://support.microsoft.com/en-us/onedrive