Giter Site home page Giter Site logo

guedesfelipe / pls-cli Goto Github PK

View Code? Open in Web Editor NEW
136.0 2.0 11.0 793 KB

Minimalist and full configurable greetings and TODO list

Home Page: https://guedesfelipe.github.io/pls-cli/

License: MIT License

Python 93.55% Makefile 6.26% Shell 0.20%
cli please pls python pythoncli todo todo-cli pls-cli command-line terminal hacktoberfest

pls-cli's Introduction

๐Ÿ’ป PLS-CLI

If you are like me, and your terminal is your home, this CLI will make your life better, I hope ๐Ÿ˜„

๐Ÿ›  Installation

pip install pls-cli

โฌ†๏ธ Upgrade version

pip install pls-cli --upgrade

โš™๏ธ Configuration

To run pls-cli everytime you open your shell's:

Bash

echo 'pls' >> ~/.bashrc

Zsh

echo 'pls' >> ~/.zshrc

Fish

echo 'pls' >> ~/.config/fish/config.fish

Ion

echo 'pls' >> ~/.config/ion/initrc

Tcsh

echo 'pls' >> ~/.tcshrc

Xonsh

echo 'pls' >> ~/.xonshrc

Powershell

Add the following to the end of Microsoft.PowerShell_profile.ps1. You can check the location of this file by querying the $PROFILE variable in PowerShell. Typically the path is ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 or ~/.config/powershell/Microsoft.PowerShell_profile.ps1 on -Nix.

pls

โš ๏ธ Restart your terminal to apply the changes and start configuring your PLS-CLI. ๐ŸŽ‰

โŒจ๏ธ Commands

pls --help

Or for more information you can see in the documentation.

๐ŸŽจ Color Configuration

You can configure all colors with envs!!

Setting env on Linux, macOS, Windows Bash:

export PLS_ERROR_LINE_STYLE="#e56767"

Setting env on Windows PowerShell:

$Env:PLS_ERROR_LINE_STYLE = "#e56767"

All envs:

export PLS_ERROR_LINE_STYLE="#e56767"
export PLS_ERROR_TEXT_STYLE="#ff0000 bold"

export PLS_WARNING_LINE_STYLE="#FFBF00"
export PLS_WARNING_TEXT_STYLE="#FFBF00 bold"

export PLS_UPDATE_LINE_STYLE="#61E294"
export PLS_UPDATE_TEXT_STYLE="#61E294 bold"

export PLS_INSERT_DELETE_LINE_STYLE="#bb93f2"

export PLS_INSERT_DELETE_TEXT_STYLE="#a0a0a0"

export PLS_MSG_PENDING_STYLE="#61E294"
export PLS_TABLE_HEADER_STYLE="#d77dd8"
export PLS_TASK_DONE_STYLE="#a0a0a0"
export PLS_TASK_PENDING_STYLE="#bb93f2"
export PLS_HEADER_GREETINGS_STYLE="#FFBF00"
export PLS_QUOTE_STYLE="#a0a0a0"
export PLS_AUTHOR_STYLE="#a0a0a0"

export PLS_BACKGROUND_BAR_STYLE="bar.back"
export PLS_COMPLETE_BAR_STYLE="bar.complete"
export PLS_FINISHED_BAR_STYLE="bar.finished"

You can specify the background color like this:

export PLS_QUOTE_STYLE="#a0a0a0 on blue"

If you create some theme, share with us here โ™ฅ๏ธ.

๐Ÿ’„ Formatting a task

You can format your tasks with:

pls add "[b]Bold[/], [i]Italic[/], [s]Strikethrough[/], [d]Dim[/], [r]Reverse[/], [red]Color Red[/], [#FFBF00 on green]Color exa with background[/], :star:, โœจ"

image

๐Ÿšง TMUX integration

Using pls count-done and pls count-undone.

๐Ÿค Special thanks

PLS-CLI stands on the shoulders of giants:

  • Typer for the CLI tool.
  • Rich for the beautiful formatting in terminal.

pls-cli's People

Contributors

dependabot[bot] avatar dmb23 avatar guedesfelipe avatar igor-simoes avatar

Stargazers

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

Watchers

 avatar  avatar

pls-cli's Issues

Feature: possibility to choose tasks scope

I don't know if it's a good idea but sometimes I want to create tasks specifically for a unique project (inside a directory) so I propose to add a feature to set tasks scope, for example to start inside a directory you can just type pls init and all global tasks will not appear when I use pls tasks in the folder and its childs. So a settings file will be created inside the project directory.

Can't run pls

I'm installing pls at the second time and it gives me a error
Screenshot_20240124-131226.png

Apparently it can't find the "pkg_resources" module and don't start

Running locally

Hey man, great work with this project.

I have a Python CLI project with a similar setup and I'm wondering how you test changes locally since you're importing the package pls_cli instead of importing the local files?

Hope that makes sense!
Thanks

Translation of quotes into other languages

Hello

Do you currently accept PR? I can help to be able to choose the language of the quotes
(maybe it will help in practicing other languages, who knows ๐Ÿคท).
I can add this new feature and start translating in Spanish

Thanks for this nice tool ๐Ÿ˜Š

categories on pls

Hello,

Currently i'm using todoist GUI, I'm using categories or projects, I see that is not possible manage categories by this i Think to used different configuration files, is this possible o what alternative can suggest for get this?

Thank you.

Move command should not swap

Hi,

Currently when using move command example move 7 1. It does a swap. But what I am looking for something like insert operation which inserts the element to that index and then reorders the below items . I did not find a way around for this. Do you think its possible or should we have a new options say insert ?

Thank you :)

`pls quotes`

What is the expected output for pls quotes? All I'm getting is this:

Screen Shot 2022-11-10 at 2 51 13 pm

KeyError: 'tasks'

Hi there! ๐Ÿš€

I installed pls-cli with the following steps:

  1. pip install pls-cli -U.
  2. echo 'pls' >> ~/.zshrc.
  3. change my name: pls callme Orso.

Then I tried to add a task, as pls add "tester" and shooting this:

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ /Users/semora/opt/anaconda3/lib/python3.9/site-packages/pls_cli/please.py:181 in add             โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   178 โ”‚   """[bold green]Add[/bold green] a Task :sparkles: [light_slate_grey italic](Add tas    โ”‚
โ”‚   179 โ”‚   new_task = {'name': task, 'done': False}                                               โ”‚
โ”‚   180 โ”‚   settings = Settings().get_settings()                                                   โ”‚
โ”‚ โฑ 181 โ”‚   settings['tasks'].append(new_task)                                                     โ”‚
โ”‚   182 โ”‚   Settings().write_settings(settings)                                                    โ”‚
โ”‚   183 โ”‚   center_print(                                                                          โ”‚
โ”‚   184 โ”‚   โ”‚   Rule(f'Added "{task}" to the list', style=insert_or_delete_line_style),            โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ                                                 โ”‚
โ”‚ โ”‚ new_task = {'name': 'tester', 'done': False} โ”‚                                                 โ”‚
โ”‚ โ”‚ settings = {'user_name': 'Orso'}             โ”‚                                                 โ”‚
โ”‚ โ”‚     task = 'tester'                          โ”‚                                                 โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ                                                 โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
KeyError: 'tasks'

could you tell me what I done wrong? ๐Ÿ’ฅ

How to let the aphorisms don't show?

I don't like the aphorisms. In my opinion, it's useless(because i am not a native english speaker ๐Ÿคฃ),
I want to let it don't show. But i don't know how to do.

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.