Skip to content

LaoYouTiao is a multifunctional integrated plugin which is designed to remove repetitive activities at daily work

License

Notifications You must be signed in to change notification settings

caofanCPU/LaoYouTiao

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaoYouTiao

GitHub commit activity stars issues PRs Welcome open-source-organization license

IDEA Code Plugin • For Common Version

中文说明

Attention

The latest version is 4.0 which is submitted and under the official approval on 27th, March.
If you can't fetch it, then click here to download .zip file.
By the way, I hope you use happy and give me a 🌟, thx!
NEXT Developing plan is DSP(D8ger Series Plan).

Preface

As JetBrains' said, I believe that you should be good use of tools will save you precious hours on your busing work.

I always wonder, "If someone else has already solved the repeating work, why do I need to repeat it again?"

Well, that's a valid question for my drive to find the repeat parts at daily work and develop this plugin to save my time.

Convention

  • The general problem provides standard solutions
  • The personalized problem only provides example solutions

Original design intention

  • Remove the fixed duplication coding for improving efficiency in development
  • Provide available code templates that can be used without modification
  • Support code directory configuration, only by self-guided package intelligent programming can be done in one-click
  • Support user-defined configuration, you can specify which file to be generated

Features

  • Camel-Underline-Uppercase-Uncapitalize-Lowercase can be converted to each other by shortcut alt + shift + cmd + U, even timestamp-datetime convert
  • JSON formatting and single line text conversion, supporting section and whole document, default shortcut alt+shift+cmd+J | S
  • MySQL formatting, supporting section and whole document, default shortcut alt+shift+cmd+J | B
  • Reserve easter eggs, edit the blank file in IDEA and enter nasa to get the NASA configuration file template. This is very useful and efficient for handling multi-lines, especially SQL field naming processing.
  • Reserve easter eggs, edit the blank file in IDEA and enter regex to get some commonly used regular expressions. Other code Easter eggs will be added later.
  • Reserve easter eggs, you can try to edit the blank file in IDEA and type ohmyzsh to get some useful shell commands and functions

Using manual

  1. JSON formatting and Text simplify

    • Select the specified text string in any file, press alt + shift + cmd + J, then complete JSON conversion
    • Select the specified text string in any file, press alt + shift + cmd + S, then remove blank characters: line breaks, tabs, spaces
    • If nothing is being select, the whole file content will be handled with shortcut alt + shift + cmd + J(or 'S')
    • For text in non-JSON format, no changes will be made
    • A egg is hidden for converting JSONString into JSON Object
  2. Camel-Underline-Uppercase-Uncapitalize-Lowercase circle convert by one-click

    • Choose word text in any editing file, press alt + shift + cmd + U, you`ll find the changed word
    • If not satisfied just press the shortcut again and again util you are.
    • Here is the welfare, for the datetime and timestamp conversion, the operation is the same as above, and the supported formats:
      • 'yyyy-MM-dd HH:mm:ss' -> timestamp, 2020-09-14 15:45:57 -> 1600069557000
      • 'yyyy-MM-dd HH:mm:ss:SSS' -> timestamp, 2020-09-14 15:45:57:000 -> 1600069557000
      • 'yyyy-MM-dd HH:mm:ss.SSS' -> timestamp, 2020-09-14 15:45:57.000 -> 1600069557000
      • 'yyyy年MM月dd日HH时mm分ss秒' -> timestamp, 2020年09月14日15时45分57秒 -> 1600069557000
      • timestamp -> 'yyyy-MM-dd HH:mm:ss.SSS', 1600069557000 -> 2020-09-14 15:45:57.000
  3. MySQL formatting:

    • Select the specified text string in any file, press alt + shift + cmd + B, then complete convert
    • If nothing is being select, the whole file content will be handled with shortcut alt + shift + cmd + B
    • For text in non-SQL format, no changes will be made
  4. Easter egg:

    • Regex template
      • Choose any blank file, Type regex and click on Tools-> D8ger-> D8gerMore, and you will find some surprise
    • NASA template for easter egg:
      • Choose any blank file, Type nasa and click on Tools-> D8ger-> D8gerMore, and you will get the NASA manual
      • Follow the manual, custom your config and write your own multi-lines need to be batch handled, then you will find some surprise
    • Shell commands and functions, Type ohmyzsh and click on Tools-> D8ger-> D8gerMore, and you will get the surprise
  5. QRCode for creating QRCode, 'cmd' + 'alt' + 'shift' + 'K'

  6. Time::Calculate for time estimating

    • For example 1: +10Y9M8d7h6m54s321, means the current time should execute: +10years+9months+8days+7hours+6minutes+54seconds+321milliseconds
    • For example 2: -34h67m89s999999, means the current time should execute: -34hours-67minutes-89seconds-999999milliseconds
    • For example 3: -5s1Y321000, means the current time should execute:-1year-5seconds-321000milliseconds Talk seems cheap, gif
  7. Enhanced JSON formatting, remove JSON escape characters, as an enhanced supplement to JSON formatting, let you say goodbye to annoying escape characters

    • select the specified text string in any file, press the shortcut key alt + shift + cmd + I to remove escape characters

By the way, these default shortcuts used in Mac OS, if you use Windows just take cmd into ctrl.

How to install

Get from Marketplace
  • Preference --> Plugins --> Marketplace --> type LaoYouTiao --> install
  • IDEA official plugin library installation
  • As for Source installation requires you're familiar with Gradle, I will add more details about how to develop a plugin by Gradle later

Bug & Question

No one util now, but wait for you

VersionRoadHistory

If you like LaoYouTiao, please 🌟 the source project and download plugin for supporting me, thanks!

  • 4.0

    • BugFix: JSONGroovy::Enhance('cmd' + 'alt' + 'shift' + 'I') , now can capable of more complex JSON data scenarios
  • 3.4

    • Add: JSONGroovy::Enhance supports convert JSONString to JSON Object(include JSONObject and JSONArray), 'cmd' + 'alt' + 'shift' + 'I'
    • BugFix: Camel::Underline('cmd' + 'alt' + 'shift' + 'U') now supports '-' and '_'
  • 2.6

    • Add: Time::Calculate for time estimate, 'cmd' + 'alt' + 'shift' + 'H', one of the scenarios is to easily calculate when the Redis cache is written, and the accuracy is supported to the ms level
    • My expectation: It is not easy to insists on open source about 8 versions, but there are only a few 🌟 for this project, so I ask for your help: Give me a star 🌟, and share it with more friends about the funny from one-click!
      • Basic grammar 1: '+' for estimating the future time, the current time will add the input data when calculating; '-'(default: non '+' nor '-') for estimating the past time, the current time will subtract the input data when calculating
      • Basic grammar 2: Time unit definition: 'Y'=Year, 'M'=Month, 'd'=day, 'h'=hour, 'm'=minute, 's'=second, millisecond(default) with no time unit mark
      • Basic grammar 3: Support any combination of time units, which is no order between 'YMdhms'(but I recommended maintain order), besides, it doesn't need to appear all the time utils, just use what you need
      • For example 1: +10Y9M8d7h6m54s321, means the current time should execute: +10years+9months+8days+7hours+6minutes+54seconds+321milliseconds
      • For example 2: -34h67m89s999999, means the current time should execute: -34hours-67minutes-89seconds-999999milliseconds
      • For example 3: -5s1Y321000, means the current time should execute:-1year-5seconds-321000milliseconds
      • Attention 1: The millisecond data must be put to the end if you need it
      • Attention 2: The parsing rules limit the first input of the same time unit as a valid value, and the later data input will be ignored, for example: '2d3m4d5d9m' will only be parsed as '2d3m'
      • Talk seems cheap, gif
  • 2.5

  • 2.4

    • Optimize: Graph::Easy will keep the user's original sentence, and then generate graphical text code comments, which is convenient for subsequent adjustments, 'cmd' + 'alt' + 'shift' + 'T'
    • Update: Graph::Easy now fully supports one-click generation of graphical text code comments, 'cmd' + 'alt' + 'shift' + 'T'
      • Basic grammar: '.' is the key symbol of grammar parsing
      • For example: A.some text.B means that node 'A' points node 'B' and the comment upper the arrow is 'some text'
      • Talk seems cheap, so show you a gif
  • 2.3

    • Update: Graph::Easy now fully supports one-click generation of graphical text code comments, 'cmd' + 'alt' + 'shift' + 'T'
      • Basic grammar: '.' is the key symbol of grammar parsing
      • For example: A.some text.B means that node 'A' points node 'B' and the comment upper the arrow is 'some text'
      • Talk seems cheap, so show you a gif
  • 2.2

  • 2.1

  • 2.0

    • Add: Support Graph::Easy for easier DSL, default shortcut is alt + shift + cmd + T
    • Adjust tool menus
    • D8ger renamed to ByteCry
    • BeautifulJSON renamed to Beautiful::JSON
    • Add new tool item named Graph::Easy
    • CamelUnderlineConvert renamed to Camel::Underline
    • SimplifyOneLine renamed to Simplify::OneLine
    • BeautifulMySQL renamed to Beautiful::MySQL
    • D8gerNote renamed to Byte::NoDance
    • About DSP(D8ger Series Plan)
  • 1.1

    • Camel-Underline-Uppercase-Uncapitalize-Lowercase can be converted to each other by shortcut alt + shift + cmd + U, even timestamp-datetime convert
    • JSON formatting and single line text conversion, supporting section and whole document, default shortcut alt+shift+cmd+J | S
    • MySQL formatting, supporting section and whole document, default shortcut alt+shift+cmd+J | B
    • Reserve easter eggs, edit the blank file in IDEA and enter nasa to get the NASA configuration file template. This is very useful and efficient for handling multi-lines, especially SQL field naming processing.
    • Reserve easter eggs, edit the blank file in IDEA and enter regex to get some commonly used regular expressions. Other code Easter eggs will be added later.
    • Reserve easter eggs, you can try to edit the blank file in IDEA and type ohmyzsh to get some useful shell commands and functions

Contribute

  • Please give me a 🌟
  • Raise demand, write the repetitive problems you often handled at daily work in issue
  • Invite me to sit at the 🍦 shop

微信


支付宝


MiXin

Thanks

JetBrains
With JetBrains team's open source certificate supporting, this project will continue to develop in the spirit of open source

About

LaoYouTiao is a multifunctional integrated plugin which is designed to remove repetitive activities at daily work

Resources

License

Stars

Watchers

Forks

Packages

No packages published