Git Product home page Git Product logo

poe-m's Introduction

Albert launcher extension Poem

Background

I was looking for a Command palette which can easily remember cmds and have the possibility to add some basic prompts to some scripts and to recall them later.

Solution Poe-Manager

Poem is able to

  • index shell scripts or python poetry tasks
  • define paths where to crawl for the files
  • pyproject.toml working with python / poe:
    • parsed parameters: name, command, helptext
    • activate virtual environment before execution
    • all tasks from poetry get listed as commands
  • shell scripts:
    • all usages in the header get listed as commands
    • parsed parameters: name, command
  • create a new shell script from template (type "poem new script")
  • create a complete new python project with venv and configurations (type "poem new project")
  • execute the commands in albert launcher
  • creates aliases so that you can use commands in shell: ~/.poem-aliases

in union the benefits of:

Todo

  • explain how to setup poe
  • check for icon in the same folder
  • check for icon by path
  • update python projects
  • option to reindex and rewrite the alias file (currently only at startup)
  • add gitignore for the projects

Documentation

Using bash aliases

The extension can write a static alias file in the location you define in the settings. Limitation: At the moment the file is only written once at startup.

Then add the following line in your ~/.bashrc to source the file: . <your filename>

Afterwards you can refresh the shell and use:

poem <your command> <your arguments>

Using Poetry tasks for python projects

The project needs to use a virtual environment and poetry and poethepoet

If you do need to install the virtual environment yourself follow the basic steps (even it is recommended to use the script to initiate a new project)_

  1. Initiate the virtual environment with your favorite tool

There are different styles how to add your tasks to the pyproject.toml

Update this extension

Changelog

Release 0.16

  • Add confirmation for creating projects for poetry and main.py
  • Add .gitignore if wanted for projects

Release 0.15

  • Initial

poe-m's People

Contributors

rokdd avatar

Watchers

 avatar

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.