Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Conversation

Sharsie
Copy link
Contributor

@Sharsie Sharsie commented Mar 5, 2024

I have done a rewrite of my previous implementation into the new API, I know it is a more complex plugin than the other options, but my long standing goal is to support the Project Manager extension without relying too much on the recently opened files.

Additionally this implementation provides optional configuration to open VS Code through terminal for advanced use, e.g. where users need to load an environment prior to opening VS Code for example.
My usecase is direnv + nix shell, I have separate environments in each of my projects and entering those directories in shell loads all necessary dependencies and binaries needed for that specific project. This also requires VS Code to be opened from that directory in order to have the correct environment inside the IDE.

So here it is, if you find it useful, I'm happy to support it going forward, if not, I'll just support myself :)

@ManuelSchneid3r
Copy link
Member

Hi, quite a bunch of lines but i guess people will love it. Just a note: py api v2.3 is out. theres a matcher which does imlicit normalization and such.

@Sharsie Sharsie force-pushed the feature/vscode_projects branch from 1f8753d to 2e8d6c0 Compare June 29, 2024 13:05
@Sharsie
Copy link
Contributor Author

Sharsie commented Jun 29, 2024

I updated the plugin to use the latest version and the matcher, but noticed the iconUrls defined on the plugin itself stopped working with 0.24.1 (this is not just this plugin, but all of them). Icons on the item results work fine.

Are there any notes on how to migrate these? I noticed in the c++ version of the Timer plugin, that this is provided through a .qrc file

@ManuelSchneid3r
Copy link
Member

Are there any notes on how to migrate these? I noticed in the c++ version of the Timer plugin, that this is provided through a .qrc file

thats the c++ way to ship a plugin as a single module. icon urls should actually work as expected. they work on my system. but yes I changed the icon provider api and maybe introduced a bug. i have to check it on a linux box.

@Sharsie Sharsie force-pushed the feature/vscode_projects branch from 969dcb7 to 6892f1c Compare July 1, 2024 10:34
@ManuelSchneid3r ManuelSchneid3r requested a review from a team July 4, 2024 08:11
@Sharsie Sharsie force-pushed the feature/vscode_projects branch from 412b6bc to 814b7bf Compare August 30, 2024 06:54
@Sharsie Sharsie force-pushed the feature/vscode_projects branch from f2c4700 to f7638ce Compare October 12, 2024 19:46
@ManuelSchneid3r
Copy link
Member

ManuelSchneid3r commented Mar 26, 2025

@Sharsie you can drop the string normalization. the matcher does this already unless configured otherwise. see this

@Sharsie Sharsie force-pushed the feature/vscode_projects branch from 6174011 to 1a4507d Compare March 26, 2025 21:00
@Sharsie
Copy link
Contributor Author

Sharsie commented Mar 26, 2025

Oh, very cool, dropped

@ManuelSchneid3r
Copy link
Member

import unicodedata is still there

@Sharsie Sharsie force-pushed the feature/vscode_projects branch from 1a4507d to 0e6f108 Compare March 26, 2025 22:17
@Sharsie
Copy link
Contributor Author

Sharsie commented Mar 26, 2025

damn, that's what happens when you do a quick edit in terminal :) Thanks for catching it, fixed

Sharsie added 8 commits May 1, 2025 09:23
Provide a search of VSCode recent files and its
Project Manager extension

[vscode_projects:1.1] Upgrade the interface version to 2.2

Better explain the plugin settings

[vscode_projects:1.2] Always add action to open workdir through VSCode

If terminal command is specified, it becomes the default action while allowing
the user to still open the workdir using default VSCode action without running
through terminal

[vscode_projects:1.3] Use new Matcher introduced in interface version 2.3

[vscode_projects:1.3] Remove unnecessary slashes in the icons url

[vscode_projects:1.3] Use cached iconUrls when building the standard item result
Resolve symlinks to make sure only unique results are returned
@Sharsie Sharsie force-pushed the feature/vscode_projects branch from 0e6f108 to e57af0e Compare May 5, 2025 21:46
@Silureth
Copy link

Silureth commented Jun 28, 2025

@Sharsie thanks for returning! Been using your extension for a long time with early versions of Albert. Just fixing/clobbering it enough to work with the current versions (have my own Frankenstein repo) but since I'm not too comfortable in python never tried to added it to the official plugins.
I'll try it out later and report if there is any problem.

@ManuelSchneid3r ManuelSchneid3r merged commit cb6326c into albertlauncher:main Jun 30, 2025
@ManuelSchneid3r
Copy link
Member

this has been open way to long. sad that nobody wants to spend some minutes to review plugins. i skimmed over it. lgtm, although I did no review in detail really. just merged it now. maybe some more reviews will follow.

@ManuelSchneid3r
Copy link
Member

thank you and thank you for your patience.

@Sharsie
Copy link
Contributor Author

Sharsie commented Jul 1, 2025

Wow, merged after 4 years. Yea I get the frustration, maybe it's just too niche.

I'll support it to the best of my ability, will probably make some updates to support vscode forks too, since nowdays I keep another version locally.

@Silureth I've been trying to keep it up to date for years now, but feel free to ping me if something breaks.

@ManuelSchneid3r
Copy link
Member

ManuelSchneid3r commented Jul 1, 2025

I am sorry but I don't use it. As such I am not really a suitable reviewer. Generally I don't merge unreviewed code and don't review code I can't understand.

I just wonder if it is not that niche why not a single reviewer took the effort.

@Silureth
Copy link

Silureth commented Jul 2, 2025

Ok, I've been testing it for a while and two things i found:

1st
The trigger is in the input action text, my trigger is "vc" and it shows as vc 'search query' vc vc:
image
it can be fixed easily by modifying on line 362
inputActionText=f"{query.trigger}{project.displayName}",
->
inputActionText=f"{project.displayName}",
this is problematic because tabbing it completes it with "vc vc" in the front of the selected item which won't work that way

2nd the recents wont show up, it's not bothering me because I would have disabled it from the start

1st i could fix with a pull if it's all right.

@Sharsie
Copy link
Contributor Author

Sharsie commented Jul 2, 2025

1st - Oh dear, I fixed that in my other local plugin and forgot to update this one. If you don't mind, send a PR please.

2nd - Thanks, I'll take a look, there are occasional changes and for one of the vscode forks, this actually stopped working recently and recents can only be queried through sqlite instead of parsing the config file. I'll check if that's the case and update it

@Sharsie
Copy link
Contributor Author

Sharsie commented Jul 3, 2025

@Silureth Got some time now, I'll send a PR

#224

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants