Skip to content

Commit

Permalink
v0.2.1
Browse files Browse the repository at this point in the history
mostly extension stuff
  • Loading branch information
Localghost385 committed Jun 1, 2024
1 parent ee57ee5 commit 65cd812
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/dist
/memo
/vscode_extension/node_modules
/vscode_extension/fmt_core
/vscode_extension/core
/vscode_extension/dist
/package

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### v0.2.1
- massively improved extension flow by replacing font step with a dropdown

### v0.2.0
- complete restructure to combine vscode extension branch
- seperated cli binary and the core library to make integration with library easier
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "glyphrs"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
description = "A text art generator written in Rust"
license = "MIT"
Expand Down
2 changes: 2 additions & 0 deletions core/fonts/font_handling.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use serde::Deserialize;
use std::collections::HashMap;
use wasm_bindgen::prelude::*;

// ▄▀▀ ▀█▀ █▀▄ █ █ ▄▀▀ ▀█▀ ▄▀▀ █▀ ▄▀▄ █▀▄ ▀█▀ ▄▀▄ █▄ ▄█ █ █▄█ ▄▀▄ █▄ █ █▀▄ █ █ █▄ █ ▄▀
// ▄██ █ █▀▄ ▀▄█ ▀▄▄ █ ▄██ █▀ ▀▄▀ █▀▄ █ ▀▄▀ █ ▀ █ █▄▄ █ █ █▀█ █ ▀█ █▄▀ █▄▄ █ █ ▀█ ▀▄█
Expand All @@ -17,6 +18,7 @@ struct Font {

// ▄▀ ██▀ ▀█▀ ▄▀▄ █ █ █▀ ▄▀▄ █▄ █ ▀█▀ ▄▀▀
// ▀▄█ █▄▄ █ █▀█ █▄▄ █▄▄ █▀ ▀▄▀ █ ▀█ █ ▄██
#[wasm_bindgen]
pub fn get_fonts() -> Vec<String> {
let fonts = define_fonts();
let mut font_list: Vec<String> = vec![];
Expand Down
2 changes: 1 addition & 1 deletion vscode_extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "glyphrs",
"displayName": "glyph.rs",
"description": "A text art generator written in Rust",
"version": "0.1.3",
"version": "0.1.5",
"engines": {
"vscode": "^1.77.0"
},
Expand Down
6 changes: 2 additions & 4 deletions vscode_extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ export async function activate(context: vscode.ExtensionContext) {
})
.then(async (contentValue) => {
content = contentValue
const fontOptions = module.get_fonts()
await vscode.window
.showInputBox({
prompt: 'font',
placeHolder: 'font',
})
.showQuickPick([...fontOptions])
.then(async (fontValue) => {
font = fontValue
await vscode.window
Expand Down

0 comments on commit 65cd812

Please sign in to comment.