diff --git a/Cargo.lock b/Cargo.lock index 31827973..2b4b135d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1854,7 +1854,7 @@ checksum = "64e9829a50b42bb782c1df523f78d332fe371b10c661e78b7a3c34b0198e9fac" [[package]] name = "inlyne" -version = "0.4.0-main" +version = "0.4.0" dependencies = [ "anyhow", "base64 0.21.4", diff --git a/Cargo.toml b/Cargo.toml index ffd90de3..fc3031f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ members = [ [package] name = "inlyne" -version = "0.4.0-main" +version = "0.4.0" description = "Introducing Inlyne, a GPU powered yet browserless tool to help you quickly view markdown files in the blink of an eye." edition = "2021" authors = ["trimental"] @@ -14,7 +14,7 @@ license = "MIT" readme = "README.md" repository = "https://github.com/trimental/inlyne" homepage = "https://github.com/trimental/inlyne" -rust-version = "1.65" +rust-version = "1.72.1" exclude = [ "/ci/*", "/.github/*", diff --git a/README.md b/README.md index e42f1bb9..26d38d54 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ inlyne README.md --theme dark/light ```

- +

## About diff --git a/assets/img/example.png b/assets/img/example.png new file mode 100644 index 00000000..9ec36939 Binary files /dev/null and b/assets/img/example.png differ diff --git a/completions/_inlyne b/completions/_inlyne index db33a826..50b2e565 100644 --- a/completions/_inlyne +++ b/completions/_inlyne @@ -27,7 +27,7 @@ _inlyne() { '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ -'::file -- Path to the markdown file:_files' \ +':file -- Path to the markdown file:_files' \ && ret=0 } diff --git a/completions/_inlyne.ps1 b/completions/_inlyne.ps1 index b18ae0e4..1d766d62 100644 --- a/completions/_inlyne.ps1 +++ b/completions/_inlyne.ps1 @@ -31,7 +31,7 @@ Register-ArgumentCompleter -Native -CommandName 'inlyne' -ScriptBlock { [CompletionResult]::new('--page-width', 'page-width', [CompletionResultType]::ParameterName, 'Maximum width of page in pixels') [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('-V', 'V ', [CompletionResultType]::ParameterName, 'Print version') [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') break } diff --git a/completions/inlyne.bash b/completions/inlyne.bash index d4d0b065..a3f65029 100644 --- a/completions/inlyne.bash +++ b/completions/inlyne.bash @@ -19,7 +19,7 @@ _inlyne() { case "${cmd}" in inlyne) - opts="-t -s -c -w -h -V --theme --scale --config --page-width --help --version [FILE]" + opts="-t -s -c -w -h -V --theme --scale --config --page-width --help --version " if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -67,4 +67,4 @@ _inlyne() { esac } -complete -F _inlyne -o bashdefault -o default inlyne +complete -F _inlyne -o nosort -o bashdefault -o default inlyne diff --git a/completions/inlyne.fish b/completions/inlyne.fish index c5938dce..79e4d306 100644 --- a/completions/inlyne.fish +++ b/completions/inlyne.fish @@ -1,4 +1,4 @@ -complete -c inlyne -s t -l theme -d 'Theme to use when rendering' -r -f -a "{auto ,dark ,light }" +complete -c inlyne -s t -l theme -d 'Theme to use when rendering' -r -f -a "{auto '',dark '',light ''}" complete -c inlyne -s s -l scale -d 'Factor to scale rendered file by [default: OS defined window scale factor]' -r complete -c inlyne -s c -l config -d 'Configuration file to use' -r -F complete -c inlyne -s w -l page-width -d 'Maximum width of page in pixels' -r