• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

atomtoix

urlencode,change slash,camel case,del duplicates, and much more...
  • #transform
  • #insert
  • #case
  • #slash
  • #encode
a-bentofreire
0.2.0 108
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Atom Utility Belt

Strap on the belt and become a Ninja Developer with these 26 utilities.

This version is a port of vsctoix 1.1. except for the selection Policies, which in this version is more limited than vsctoix.
This extension is also available for Brackets(bracketsix).

Utilities

Utility Example
Capitalize before:classNameFuncafter:ClassNameFunc
Camel Case before:ClassNameFuncafter:classNameFunc
Dash Case before:ClassNameFuncafter:class-name-func
Add Space before UppercaseUseful to transform functions names into documentation before:doActionBeforeafter:do Action Before
Url Encode before:https://github.comafter:https%3A%2F%2Fgithub.com
Url Decode before:https%3A%2F%2Fgithub.comafter:https://github.com
Reverse AssignmentReverses the terms of assignments or equal/different comparisons before:x == y[x] + 5after:y[x] + 5 == x
Unix To Win SlashConverts slashes to backslashes before:chocolate/candyafter:chocolate\candy
Win To Unix SlashConverts backslashes to slashes before:chocolate\candyafter:chocolate/candy
Single To Double Slash before:find\nagainafter:find\\\nagain
Double To Single Slash before:find\\\nagainafter:find\nagain
RegnizeAdds slash to regular expression metachars before:(\w+)[A-Z]a*b+textafter:\(\\w\+\)\[A-Z\]a\*b\+text
Header To BookmarkConverts markdown header text to Html Bookmark before:Is this the header 你好?after:is-this-the-header-你好
MixerMixes lines of different sections. before:// sectionabccde// end-section // section123345after:abc123cde345
Remove Duplicated LinesRemoves consecutive duplicated lines before:firstsecondsecondafter:firstsecond
Remove Empty Lines before:firstsecondafter:firstsecond
Join LinesJoins lines adding the computed expression at the end of every line before:redgreenafter:expr:(x\c{X0A}),red(x0A),green(x0B)
Split LinesSplit lines by an expression. Dynamic values aren't supported before:red,greenafter:expr: = \c{1}red = 1green = 2
Sort Numerically AscendingFor each line uses the first number as sort key before:10. red2. greenafter:2. green10. red
Indent One SpaceAdds one space to the beginning of each line
Outdent One SpaceRemoves one space to the beginning of each line
Insert ISO Date 2018-02-08
Insert ISO TimeDate 2018-02-08 10:12:15
Insert UUID 7fff60f8-91e8-40ba-9053-56b0f3a487f0
Insert Text At End before:redgreenafter:expr: = \c{1}red = 1green = 2
Insert Text At Start before:redgreenafter:expr: const \e{upper} =const RED = redconst GREEN = green

Selection Policies

This version only supports one cursor, and operates only if the text is selected,
except for Insert Text Utilities, which insert the text at the cursor position if no text is selected.

Expressions

Some of the utilities support expressions
An expression is a text supporting the following metachars:

  • \n - newline

  • \t - tab

  • \c{start-value} - counter with optional start value

    • \c 0,1,2,...
    • \c{10} 10,11,12,...
    • \c{x00a} x00a,x00b,x00c,...
    • \c{XF} xF,x10,x11,...
  • \e{func} - transforms the selected text (line by line)
    function list:

    • upper - UpperCase
    • lower - LowerCase
    • length - Selected text length
    • capitalize
    • isodate
    • isotimedate
    • uuid

Contribute

Suggestions for more utilities and bug reports are welcome but don't forget the golden rule: Be Polite!

License

MIT License+uuid License

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by