Skip to content

Commit

Permalink
Updated to Preview 0.7.4.0 See "0.7.4.0" tag for more info.
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxwizard committed Feb 21, 2023
1 parent 38a427c commit 1e16b8c
Show file tree
Hide file tree
Showing 64 changed files with 132 additions and 29 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
</a>

# What is Sky Notepad?
Sky Notepad is Simple, Modern, Free and Open Source **Text Editor** for Windows.

NOTE: Sky Notepad is still in development and preview. If you see an bug please create a new issue from [here](https://github.com/AlperAkca79/SkyNotepad/issues/new).
Sky Notepad is Simple, Modern, Free and Open Source **Text Editor** for Windows. Sky Notepad is still in development and preview. If you see an bug please create a new issue from [here](https://github.com/AlperAkca79/SkyNotepad/issues/new).

# About
- Version: Preview v0.7.0.0
- Developer: [AlperAkca79](https://github.com/AlperAkca79)
- Version: Preview v0.7.4.0
- First Build Date: Friday, February 10, 2023
- Last Update: Sunday, February 19, 2023 7:11 PM (UTC +03:00)
- Last Update: Tuesday, February 19, 2023 7:11 PM (UTC +03:00)
- License: [MIT License](https://github.com/AlperAkca79/SkyNotepad#License)
- Platform Architecture: x86, x64
- Supported OS(s): Windows 10/11
Expand All @@ -41,7 +40,9 @@ NOTE: Sky Notepad is still in development and preview. If you see an bug please
- Microsoft Bing
- Google
- DuckDuckGo
- Yandex
- Fluent Desing
- Lightweight

# Shortcuts
- **(CTRL + N)** Create New File
Expand All @@ -58,13 +59,14 @@ NOTE: Sky Notepad is still in development and preview. If you see an bug please
- **(F5)** Puts Systems Date/Time
- **(ALT + Z)** Toggle Word Wrapping
- **(ALT + X)** Toggle Spell Checking
- **(F11)** Full Screen Mode

# Changelog

See the changelog for all versions [here](docs/changelog.md).

# How to Download?
- Download **.cer** and **.msixbundle** files from [here](https://github.com/AlperAkca79/SkyNotepad/releases/tag/0.7.0.0).
- Download **.cer** and **.msixbundle** files from [here](https://github.com/AlperAkca79/SkyNotepad/releases/tag/0.7.4.0).
- Double click to open **.cer** file.
- Click **"Install Certificate..."**.
- Select **"Local Machine"** and click **"Next"**.
Expand Down
3 changes: 2 additions & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
| Preview v0.4.5.0 | :x: |
| Preview v0.6.0.0 | :x: |
| Preview v0.6.2.0 | :x: |
| Preview v0.7.0.0 | :while_check_mark: |
| Preview v0.7.0.0 | :x: |
| Preview v0.7.4.0 | :while_check_mark: |

## Reporting a Vulnerability
If you find a vulnerability in the **Sky Notepad** project, create a new issue titled "Vulnerability" and describe the security vulnerability in detail.
Binary file modified res/repo-preview-image-sky-notepad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/LargeTile.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/LargeTile.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/LargeTile.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/LargeTile.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/LargeTile.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/SmallTile.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/SmallTile.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/SmallTile.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/SmallTile.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/SmallTile.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/SplashScreen.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/SplashScreen.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/SplashScreen.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/SplashScreen.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/SplashScreen.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/Square150x150Logo.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/Square150x150Logo.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/Square150x150Logo.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/Square150x150Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/Square150x150Logo.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/SkyNotepad/Assets/Square44x44Logo.scale-100.png
Binary file modified src/SkyNotepad/Assets/Square44x44Logo.scale-125.png
Binary file modified src/SkyNotepad/Assets/Square44x44Logo.scale-150.png
Binary file modified src/SkyNotepad/Assets/Square44x44Logo.scale-200.png
Binary file modified src/SkyNotepad/Assets/Square44x44Logo.scale-400.png
Binary file modified src/SkyNotepad/Assets/Square44x44Logo.targetsize-16.png
Binary file modified src/SkyNotepad/Assets/Square44x44Logo.targetsize-24.png
Binary file modified src/SkyNotepad/Assets/Square44x44Logo.targetsize-256.png
Binary file modified src/SkyNotepad/Assets/Square44x44Logo.targetsize-32.png
Binary file modified src/SkyNotepad/Assets/Square44x44Logo.targetsize-48.png
Binary file modified src/SkyNotepad/Assets/StoreLogo.scale-100.png
Binary file modified src/SkyNotepad/Assets/StoreLogo.scale-125.png
Binary file modified src/SkyNotepad/Assets/StoreLogo.scale-150.png
Binary file modified src/SkyNotepad/Assets/StoreLogo.scale-200.png
Binary file modified src/SkyNotepad/Assets/StoreLogo.scale-400.png
Binary file modified src/SkyNotepad/Assets/Wide310x150Logo.scale-100.png
Binary file modified src/SkyNotepad/Assets/Wide310x150Logo.scale-125.png
Binary file modified src/SkyNotepad/Assets/Wide310x150Logo.scale-150.png
Binary file modified src/SkyNotepad/Assets/Wide310x150Logo.scale-200.png
Binary file modified src/SkyNotepad/Assets/Wide310x150Logo.scale-400.png
2 changes: 2 additions & 0 deletions src/SkyNotepad/Models/DocumentModel.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Project Librarys
using SkyNotepad.Helpers;
using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace SkyNotepad.Models
{
Expand Down
8 changes: 4 additions & 4 deletions src/SkyNotepad/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
<Identity
Name="778ade44-7283-4a36-a7ba-ecd392206e35"
Publisher="CN=AlperAkca79"
Version="0.7.0.0" />
Version="0.7.4.0" />

<mp:PhoneIdentity PhoneProductId="778ade44-7283-4a36-a7ba-ecd392206e35" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

<Properties>
<DisplayName>Sky Notepad</DisplayName>
<DisplayName>Sky Notepad Preview</DisplayName>
<PublisherDisplayName>AlperAkca79</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
Expand All @@ -30,9 +30,9 @@
<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="SkyNotepad.App">
EntryPoint="SkyNotepad.Preview.App">
<uap:VisualElements
DisplayName="Sky Notepad"
DisplayName="Sky Notepad Preview"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png"
Description="Simple, Modern, Free and Open Source Notepad for Windows."
Expand Down
4 changes: 2 additions & 2 deletions src/SkyNotepad/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.7.0.0")]
[assembly: AssemblyFileVersion("0.7.0.0")]
[assembly: AssemblyVersion("0.7.4.0")]
[assembly: AssemblyFileVersion("0.7.4.0")]
[assembly: ComVisible(false)]
1 change: 1 addition & 0 deletions src/SkyNotepad/SkyNotepad.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
<Compile Include="ViewModels\FormatViewModel.cs" />
<Compile Include="ViewModels\HelpViewModel.cs" />
<Compile Include="ViewModels\MainViewModel.cs" />
<Compile Include="ViewModels\ScreenViewModel.cs" />
<Compile Include="ViewModels\WebSearchViewModel.cs" />
<Compile Include="Views\Dialogs\AboutDialog.xaml.cs">
<DependentUpon>AboutDialog.xaml</DependentUpon>
Expand Down
11 changes: 11 additions & 0 deletions src/SkyNotepad/ViewModels/FileViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
using SkyNotepad.Helpers;
using SkyNotepad.Models;
using Windows.UI.Xaml.Controls;
using System.Runtime.CompilerServices;
using System.ComponentModel;

namespace SkyNotepad.ViewModels
{
Expand All @@ -39,6 +41,15 @@ public FileViewModel(DocumentModel document)
ExitCommand = new RelayCommand(Exit);
}

// Create new file while first run
public void CreateNewFile()
{
Document.FileName = "Untitled Text Document";
Document.FilePath = string.Empty;
Document.Text = string.Empty;
Document.IsSaved = false;
}

// New Command
private void NewFile()
{
Expand Down
5 changes: 5 additions & 0 deletions src/SkyNotepad/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,24 @@ namespace SkyNotepad.ViewModels
{
public class MainViewModel
{
// Model
public DocumentModel Document;

// View Model(s)
public FileViewModel File { get; set; }
public FormatViewModel Format { get; set; }
public WebSearchViewModel WebSearch { get; set; }
public ScreenViewModel Screen { get; set; }
public HelpViewModel Help { get; set; }

// Main Method
public MainViewModel()
{
Document = new DocumentModel();
File = new FileViewModel(Document);
Format = new FormatViewModel(Document);
WebSearch = new WebSearchViewModel();
Screen = new ScreenViewModel();
Help = new HelpViewModel();
}
}
Expand Down
39 changes: 39 additions & 0 deletions src/SkyNotepad/ViewModels/ScreenViewModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Librarys
using System.Windows.Input;
using Windows.UI.ViewManagement;

// From Project
using SkyNotepad.Helpers;

namespace SkyNotepad.ViewModels
{
public class ScreenViewModel
{
// Application View
private ApplicationView AppView = ApplicationView.GetForCurrentView();

// Menu Item Commands
public ICommand FullScreenModeCommand { get; }

// Main Method
public ScreenViewModel()
{
FullScreenModeCommand = new RelayCommand(ToggleFullScreen);
}

// Toggle Full Screen Mode
private void ToggleFullScreen()
{
bool isInFullScreenMode = AppView.IsFullScreenMode;

if (isInFullScreenMode)
{
AppView.ExitFullScreenMode();
}
else
{
AppView.TryEnterFullScreenMode();
}
}
}
}
22 changes: 12 additions & 10 deletions src/SkyNotepad/Views/Dialogs/AboutDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,37 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:SkyNotepad.Views.Dialogs"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" Loaded="Page_Loaded"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" xmlns:viewmodel="using:SkyNotepad.ViewModels"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<Page.DataContext>
<viewmodel:MainViewModel/>
</Page.DataContext>
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
Loaded="AboutDialog_Loaded">

<!-- Content -->
<Grid Background="White">
<!-- Version -->
<TextBlock Text="Version" x:Name="VersionInfo"
<TextBlock Text="Version" x:Name="VersionInfo" x:Uid="VersionInfo"
FontSize="14" FontStyle="Normal" FontWeight="Normal"
Margin="10,35,-10,50"/>

<!-- Developer -->
<TextBlock Text="Developer" x:Name="DeveloperInfo"
<TextBlock Text="Developer" x:Name="DeveloperInfo" x:Uid="DeveloperInfo"
FontSize="14" FontStyle="Normal" FontWeight="Normal"
Margin="10,10,-10,70"/>

<!-- Insider Channel -->
<TextBlock Text="InsiderChannel" x:Name="InsiderChannel" x:Uid="InsiderChannel"
FontSize="14" FontStyle="Normal" FontWeight="Normal"
Margin="10,60,-10,70"/>

<!-- License -->
<HyperlinkButton x:Name="HyperlinkButtonLicense" x:Uid="HyperlinkButtonLicense" Content="License"
NavigateUri="https://github.com/AlperAkca79/SkyNotepad/blob/master/LICENSE"
FontSize="14" Margin="0,73,0,0" VerticalAlignment="Top"/>
FontSize="14" Margin="0,90,0,0" VerticalAlignment="Top"/>

<!-- Source Code -->
<HyperlinkButton x:Name="HyperlinkButtonSourceCode" x:Uid="HyperlinkButtonSourceCode"
Content="Source Code" NavigateUri="https://github.com/AlperAkca79/SkyNotepad/"
FontSize="14" Margin="167,73,0,0" VerticalAlignment="Top"/>
FontSize="14" Margin="167,90,0,0" VerticalAlignment="Top"/>
</Grid>
</Page>
12 changes: 9 additions & 3 deletions src/SkyNotepad/Views/Dialogs/AboutDialog.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Windows.UI.Xaml;
// Librarys
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.ApplicationModel;
using SkyNotepad.Models;

// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238

Expand All @@ -13,11 +15,12 @@ public sealed partial class AboutDialog : Page
{
public AboutDialog()
{
this.InitializeComponent();
InitializeComponent();
}

private void Page_Loaded(object sender, RoutedEventArgs e)
private void AboutDialog_Loaded(object sender, RoutedEventArgs e)
{
DocumentModel document = new DocumentModel();
// Application Version Info
int AppVersionMajor = Package.Current.Id.Version.Major;
int AppVersionMinor = Package.Current.Id.Version.Minor;
Expand All @@ -28,6 +31,9 @@ private void Page_Loaded(object sender, RoutedEventArgs e)

// Application Author
DeveloperInfo.Text = "Developer: AlperAkca79";

// Insider Channel
InsiderChannel.Text = "Insider Channel: Preview";
}
}
}
12 changes: 11 additions & 1 deletion src/SkyNotepad/Views/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
mc:Ignorable="d" RequestedTheme="Light"
Background="{ThemeResource SystemControlAcrylicWindowBrush}"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:viewmodel="using:SkyNotepad.ViewModels"
xmlns:viewmodel="using:SkyNotepad.ViewModels" Loaded="MainPage_Loaded"
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls">

<!-- Data Context for Main Page -->
Expand Down Expand Up @@ -91,6 +91,7 @@
<MenuFlyoutItem x:Name="MenuItemMicrosoftBing" x:Uid="MenuItemMicrosoftBing" Text="Microsoft Bing" Click="MenuItemMicrosoftBing_Click"/>
<MenuFlyoutItem x:Name="MenuItemGoogle" x:Uid="MenuItemGoogle" Text="Microsoft Google" Click="MenuItemGoogle_Click"/>
<MenuFlyoutItem x:Name="MenuItemDuckDuckGo" x:Uid="MenuItemDuckDuckGo" Text="DuckDuckGo" Click="MenuItemDuckDuckGo_Click"/>
<MenuFlyoutItem x:Name="MenuItemYandex" x:Uid="MenuItemYandex" Text="Yandex" Click="MenuItemYandex_Click"/>
</MenuFlyoutSubItem>
<MenuFlyoutSeparator/>
<MenuFlyoutItem x:Name="MenuItemSelectAll" x:Uid="MenuItemSelectAll" Text="SelectAll" Click="MenuItemSelectAll_Click" Icon="SelectAll">
Expand Down Expand Up @@ -118,6 +119,15 @@
</ToggleMenuFlyoutItem.KeyboardAccelerators>
</ToggleMenuFlyoutItem>
</muxc:MenuBarItem>

<muxc:MenuBarItem x:Name="MenuView" x:Uid="MenuView" Title="View" DataContext="{Binding Screen}">
<MenuFlyoutItem x:Name="MenuItemFullScreen" x:Uid="MenuItemFullScreen" Text="Full Screen"
Command="{Binding FullScreenModeCommand}" Icon="FullScreen">
<MenuFlyoutItem.KeyboardAccelerators>
<KeyboardAccelerator Key="F11" IsEnabled="True"/>
</MenuFlyoutItem.KeyboardAccelerators>
</MenuFlyoutItem>
</muxc:MenuBarItem>

<!-- Help Menu -->
<muxc:MenuBarItem x:Name="MenuHelp" x:Uid="MenuHelp" Title="Help" DataContext="{Binding Help}">
Expand Down
28 changes: 26 additions & 2 deletions src/SkyNotepad/Views/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
using Windows.System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.ViewManagement;
using Windows.ApplicationModel.DataTransfer;

// From Project
using SkyNotepad.Views.Dialogs;
using Windows.ApplicationModel.DataTransfer;
using Windows.UI.ViewManagement;
using SkyNotepad.ViewModels;
using SkyNotepad.Models;
using System.Collections.Generic;


// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
Expand All @@ -24,6 +27,12 @@ public MainPage()
InitializeComponent();
}

// Load Event
private void MainPage_Loaded(object sender, RoutedEventArgs e)
{

}

// Undo Command
private void MenuItemUndo_Click(object sender, RoutedEventArgs e)
{
Expand Down Expand Up @@ -153,5 +162,20 @@ private async void MenuItemDuckDuckGo_Click(object sender, RoutedEventArgs e)
await Launcher.LaunchUriAsync(searchUri);
}
}

// Search With Yandex
private async void MenuItemYandex_Click(object sender, RoutedEventArgs e)
{
string searchString = TextBox.SelectedText;
if (searchString == string.Empty)
{
Uri defaultUri = new Uri("https://yandex.com/");
}
else
{
Uri searchUri = new Uri("https://yandex.com/search/?text=" + searchString);
await Launcher.LaunchUriAsync(searchUri);
}
}
}
}

0 comments on commit 1e16b8c

Please sign in to comment.