All Projects → Solirs → iforgor

Solirs / iforgor

Licence: Unlicense license
A simple CLI productivity tool to quickly display the syntax of a desired piece of code

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to iforgor

flawesome
Productivity Tool
Stars: ✭ 56 (+180%)
Mutual labels:  productivity, productivity-tools, productivity-tool
VCore
VCore is a Swift collection containing objects, functions, and extensions that I use for my projects
Stars: ✭ 32 (+60%)
Mutual labels:  productivity, productivity-tool
Espanso
Cross-platform Text Expander written in Rust
Stars: ✭ 3,834 (+19070%)
Mutual labels:  productivity, productivity-tools
autoscreen
Automated screen capture utility
Stars: ✭ 76 (+280%)
Mutual labels:  productivity, productivity-tool
EmacsLife
Managing your life and work with Emacs
Stars: ✭ 55 (+175%)
Mutual labels:  productivity, productivity-tools
AnotherPomodoro
Modern and customizable productivity timer app that runs in your browser.
Stars: ✭ 126 (+530%)
Mutual labels:  productivity, productivity-tool
hyperkeys
Unleash you keyboard shorcuts
Stars: ✭ 35 (+75%)
Mutual labels:  productivity, productivity-tools
jira-cli
🔥 [WIP] Feature-rich interactive Jira command line.
Stars: ✭ 809 (+3945%)
Mutual labels:  productivity, productivity-tools
arvis
Extendable cross-platform launcher that aims to help you run, edit, create any workflow simply
Stars: ✭ 39 (+95%)
Mutual labels:  productivity, productivity-tools
Devo
A Chrome and Firefox extension that displays GitHub Trending, Hacker News, Product Hunt and Designer News on every new tab.
Stars: ✭ 236 (+1080%)
Mutual labels:  productivity
Sharex
ShareX is a free and open source program that lets you capture or record any area of your screen and share it with a single press of a key. It also allows uploading images, text or other types of files to many supported destinations you can choose from.
Stars: ✭ 18,143 (+90615%)
Mutual labels:  productivity
Dash
Analytical Web Apps for Python, R, Julia, and Jupyter. No JavaScript Required.
Stars: ✭ 15,592 (+77860%)
Mutual labels:  productivity
Crane
PHP Intellisense/code-completion for VS Code
Stars: ✭ 236 (+1080%)
Mutual labels:  productivity
Ohmyzsh
🙃 A delightful community-driven (with 1900+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
Stars: ✭ 138,057 (+690185%)
Mutual labels:  productivity
Mechvibes
Mechvibes
Stars: ✭ 226 (+1030%)
Mutual labels:  productivity
jiraworklogtool
A simple Chrome Extension that allows adding worklog in Jira easily.
Stars: ✭ 38 (+90%)
Mutual labels:  productivity
Ferdi
🧔🏽 Ferdi helps you organize how you use your favourite apps by combining them into one application
Stars: ✭ 4,089 (+20345%)
Mutual labels:  productivity
Archivy
Archivy is a self-hosted knowledge repository that allows you to safely preserve useful content that contributes to your own personal, searchable and extendable wiki.
Stars: ✭ 2,746 (+13630%)
Mutual labels:  productivity
keynavish
Control the mouse with the keyboard, on Windows.
Stars: ✭ 59 (+195%)
Mutual labels:  productivity
Terminal-Setup
Best Setup for your terminal for programming on macOS
Stars: ✭ 26 (+30%)
Mutual labels:  productivity

Iforgor

Iforgor is a customisable and easy to use command line tool to manage code samples. It's a good way to quickly get your hand on syntax you dont remember right from your terminal without wasting time looking on the internet.

Installation

Method :

Creates symlinks of iforgor.py and the snippets folder to /usr/local/bin. So that it can be run from anywhere on the terminal.

Requirements :

  • Python.
  • Git.
  • The colorama python module.

Step by step procedure :

  1. Open a terminal and cd into the directory you want to install the program into.

  2. Run "git clone https://github.com/Solirs/iforgor/"

  3. Cd into the newly created "iforgor" directory

  4. Run "./setup.sh" as root (it has to be run as root since it needs to create files in /usr/local/bin), add the ungit argument to remove github related files and folders like the readme and license.

  5. Run "iforgor -h"

If it works, the install was successful. You can then delete setup.sh

Uninstall:

To uninstall, simply delete the 'iforgor' and 'snippets' symlinks in /usr/local/bin.

Then delete the iforgor folder.

Iforgor 101

To display a piece of code, run the following.

iforgor LANGUAGE SNIPPET

The language argument represents a folder in the "snippets" directory. You can add any language you want by creating a folder in it.

The snippet argument represents a *.txt file in the specified language directory that containd the code sample you want to display. You can add any code sample by creating a *.txt in a desired language folder.

So if you want to add a function sample for the, lets say Rust language for example. You will have to create a directory named "rust" in the snippets folder. And create a function.txt file in the rust folder with the code you want inside.

You can then print it out by running iforgor rust function

Pro tips:

  • Languages and snippets are case insensitive. So you can run 'iforgor lAnGuAgE sNiPpeT'.

  • You dont need to do the setup process, but its required if you want to be able to run iforgor easily from anywhere.

  • There are default snippets yes, but iforgor is designed to be customized, dont hesitate to add your own custom snippets and languages.

Screenshots:

alt text

Compatibility

Linux

This should work on pretty much any linux distro, but i can make mistakes, so dont hesitate opening an issue if you face problems.

Iforgor was tested on:

Debian 11 : Working

Void Linux : Working

Arch Linux : Working

BSDs and other unix based operating systems.

Those are less certain to work, but you can still give it a try.

Tested on:

FreeBSD : Working

OpenBSD : Working

Want to contribute ?

Sure. All help is accepted.

The code is very commented if you want to take a look at it.

PLEASE dont forget to star the project if you find it interesting, it helps out a ton.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].