Giter VIP home page Giter VIP logo

krunner-vscodeprojects's Introduction

VSCode Projects Runner

This plugin uses the Project Manager plugin from VSCode to read the projects.

Required Dependencies (KF5)

Debian/Ubuntu:
sudo apt install cmake extra-cmake-modules build-essential libkf5runner-dev libkf5textwidgets-dev qtdeclarative5-dev gettext

openSUSE
sudo zypper install cmake extra-cmake-modules libQt5Widgets5 libQt5Core5 libqt5-qtlocation-devel ki18n-devel ktextwidgets-devel kservice-devel krunner-devel gettext-tools kconfigwidgets-devel
Fedora
sudo dnf install cmake extra-cmake-modules kf5-ki18n-devel kf5-kservice-devel kf5-krunner-devel kf5-ktextwidgets-devel kf5-kconfigwidgets-devel qt5-qtdeclarative-devel gettext

Build instructions

For archlinux users there is AUR or AUR (git).

The easiest way to install is:
curl https://raw.githubusercontent.com/alex1701c/krunner-vscodeprojects/master/install.sh | bash

Or you can clone the repository and run the install.sh script.

After this you should see your runner in the system settings:

systemsettings5 (Head to "Search")

You can also launch KRunner via Alt-F2 and you will find your runner.
Credit for icon: https://github.com/microsoft/vscode

Screenshots

Overview of projects

Overview of projects

Search for project

Overview of projects

Search from overview

This might be useful if you have other search plugins
Overview of projects

krunner-vscodeprojects's People

Contributors

alex1701c avatar sergeyshevch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

krunner-vscodeprojects's Issues

License

Please add a license file.

will this extension use git added projects?

I discovered this awesome extension for krunner today, played a bit with it, and I have some questions and maybe proposals.

  1. If you write a little bit more info about how this integration works in the readme it will be awesome.
    Currently, I had to dig into src to find why my projects aren't showing up in krunner.
    So yeah, if you add a link to Project Manager, which this extension uses, and tell that "you need to install it in order for this extension to work" that will be awesome.
  2. I guess, no plug n play here?
    I really hope that after installing the vscode extension I wouldn't have to manually add every project that I work on to it's projects.json. Like a monkey, "click and save, click and save"...
    I see that Project Manager allows to specify where to look for git repositories and then it generates a projects_cache_git.json file with paths and projects names. It's just an array with "fullPath" and "name" variables, so maaaaaybe you can add support for it too? This will be awesome too!
  3. How's the situation with native VSCode's "Recent Projects" list? Or there are problems retrieving this list in your plugin?

Thanks again!

KDE Fedora 36 needs 2 more dependencies

I tried installing this module on my new Fedora 36-based system with KDE and got the following errors:
image

And
image

After googling, the first issue was resolved by installing qt5-qtdeclarative-devel package and the second by installing kf5-kconfigwidgets-devel package.

If you can test and verify this in a VM and/or update dependencies section it will be great!

Thanks.

Installation not working on manjaro

Running commands (based on the install.sh)

❯ mkdir -p build
cd build

cmake -DQT_PLUGIN_INSTALL_DIR=`kf5-config --qt-plugins` -DCMAKE_BUILD_TYPE=Release  ..
make -j$(nproc)

Results in the following output

-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:5 (find_package):
  Could not find a package configuration file provided by "ECM" with any of
  the following names:

    ECMConfig.cmake
    ecm-config.cmake

  Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
  to a directory containing one of the above files.  If "ECM" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/dan/Downloads/krunner-vscodeprojects-master/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.

Versions:

Kernel: 5.10.18-1-MANJARO 
OS: Manjaro Linux x86_64
DE: Plasma 5.21.2

Running the install.sh file directly resulted in the same output.

This plugin does not work correctly with VSCodium.

I set the projects file to the correct path (/home/sylvester/.config/VSCodium/User/globalStorage/alefragnani.project-manager/projects.json) and the projects do show up in KRunner, however when I select them nothing happens. I'm assuming that this plugin is using the code binary to launch the project, but on VSCodium this should be the codium binary.

KF6

I miss this plugin since I daily-drive Plasma 6; could you port it? I gave it a brief try but got lost in missing KF6 dependencies.

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.