Code Monkey home page Code Monkey logo

vscode-swissknife's Issues

Suggestion: Add HEX to HSL/HSB conversion and inverse

Hi,
So far I'm loving your extension, it's becoming more and more useful over time for me.

I'm mostly using the color conversion utilities, so some things I'd love to see in this extension would be:

  • HEX to HSL conversion
  • HSL to HEX conversion
  • HEX to HWB conversion
  • HWB to HEX conversion

I'm not sure if this is possible, but it would be great if you could add these conversions as well, it'd be even more useful than it already is.

Thanks in advance,
Matteo

Shortcut for MD5?

It is possible to create a shortcut to replace String with your MD5 function ?

Undo behavior

Hello,

I use Swissknife a lot to convert timestamps to dates and dates to timestamps, it is great; especially great with multiple cursor 👍.

However, if I select 50 different timestamp on 50 different cursors and convert them to dates, then I see than I made a mistake on my selection and I want to undo this operation, I will have to undo 50 times!! 1 time for each conversion.

Would it be possible to change this behavior to be able to undo the whole batch at once?

Thank you!!

[Suggestion] - Add the ability to replace the whole RGB color in hex

Hi, I'd like to suggest a quality of life improvement.
At the moment, the RGB to HEX (and viceversa) only works correctly when just the color values are selected.
I think that converting the colors even when the whole color is selected (including the function name and brackets) would be more useful.

Thanks in advance
Matteo

[SUGGESTION] RGBA conversion

Hi,
seeing that the extension has RGB/HEX conversion, would it be possible to add RGBA/HEX (in #rrggbbaa format) conversion? I think it could be really useful

Thanks in advance,
Matteo

history comment lost

Type: Bug

the swissknife.notesEnabled" is true for both user profil and workspace.

we can add, edit notes, view it in the panel as well as in the file, making reports....
Everything seems to work well but since you close the windows, everything is lost.
We keep nothing.

Extension version: 1.8.1
VS Code version: Code 1.90.0 (89de5a8d4d6205e5b11647eb6a74844ca23d2573, 2024-06-04T19:33:54.889Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz (16 x 2904)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.74GB (15.59GB free)
Process Argv --crash-reporter-id 88e1caaa-aaa0-49e5-8596-d5d6d007330c
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vstes627:30244334
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelc:31048052
dsvsc021:30996838
724cj586:31013169
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
pythonprt:31056678
dwnewjupyter:31046869
26j00206:31048877

Bug in RGB→HEX conversion

Hi, I've noticed a bug in converting RGB colors to HEX.
When one of the values is 0 or the converted hex value has a trailing zero (i.e. 0C). the trailing zero isn't added.
An example:
The color rgb(208, 162, 0) becomes #D0A20, in this case the trailing zero for the blue channel gets lost

Thanks in advance!

Bug Report: Decorate File/Folder Not Working

Description:

The Swissknife extension is not functioning when attempting to decorate a file or folder in the Explorer. No changes occur upon attempting to use this feature. The error happens regardless if a file or folder are selected. It always seems to append a '/' to the path.

Steps to Reproduce:

  1. Open Visual Studio Code.
  2. Navigate to a file or folder in the Explorer.
  3. Attempt to use the Swissknife extension to decorate the selected item.
  4. Observe that no decoration is applied.

Expected Behavior:

The selected file or folder should be decorated as specified by the Swissknife extension.

Actual Behavior:

No decoration is applied to the selected file or folder.

Extension Version:
1.8.1

Error Log:

2024-06-26 10:55:05.635 [error] Error: ENOENT: no such file or directory, lstat '/c:/tmp/cert.pem.crt' at lstatSync (node:fs:1656:3) at Object.t.lstatSync (node:electron/js2c/node_init:2:4191) at FileDecorator.decorate (path_to_extension\out\extension.js:105851:27) at path_to_extension\out\extension.js:105559:98 at h (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:153:200476) at h.$executeContributedCommand (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:153:201336) at E.S (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:5970) at E.Q (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:5736) at E.M (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:4762) at E.L (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:3589) at n.value (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:2282) at l.y (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:82:664) at l.fire (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:82:881) at s.fire (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:107:14502) at n.value (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:176:8481) at l.y (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:82:664) at l.fire (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:82:881) at s.fire (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:107:14502) at MessagePortMain.<anonymous> (path_to_vscode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:176:6631) at MessagePortMain.emit (node:events:514:28) at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2285)

System Info:

Version: 1.90.2 (user setup)
Commit: 5437499feb04f7a586f677b155b039bc2b3669eb
Date: 2024-06-18T22:34:26.404Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045**

Multi-cursor "lorem ipsum" generation is broken

Hi.
On Visual Studio Code, when using multiple cursors and launching the "Lorem Ipsum" generators, i get one prompt per cursor (expected), but only the first value is picked.
Example:
With 4 cursors, i call the generator and insert the values: [2, 3, 4, 5].
The result is that only 2 words are generated, and only in the last cursor position.

I hope my explanation is clear enough, english is not my first language

Extension host terminated unexpectedly

Swissknife v1.3.1, available from the Microsoft Visual Studio Code Marketplace, crashes immediately with the error message "Extension host terminated unexpectedly". The last update in the Microsoft Visual Studio Code Marketplace was in April 2021 and the most recent commit on GitHub was in February 2022. I can reproduce the issue on Manjaro Linux and Mac OS using the latest version of Microsoft Visual Studio Code. The issue started with an update of Microsoft Visual Studio Code in February 2022. Maybe updating Swissknife in the official Microsoft Visual Studio Code Marketplace could help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.