• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

try

Paste fragment of code into try buffer then try it!
t9md
0.5.0 348
7
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Try

Paste texts to predetermined place.

gif

Why?

While I'm reading code and encounter the code which I can not understand how it works.
What I should do in such situation is try that code and see how it works.
This package improve your repetitive copy and paste workflow into one step.

  1. Select buffer
  2. Invoke try:paste command.
  3. Your selected code is pasted at bottom of try buffer.
  4. Start try&see by running script runner package like script.

Features

  • Paste selected text to bottom of try buffer by default.
  • Without selection, simply open try buffer.
  • try buffer is merely simple file, not special scratch buffer.

Commands

  • try:paste: paste to try file.
  • try:open-file: open try file by reading extension from user interactively.

How to use

Select text in editor then

  • Invoke try:paste via command palette or keymap.

Keymap

No keymap by default.

e.g.

  • With F10
'atom-text-editor:not([mini])':
  'f10': 'try:paste'
  • if you are using vim-mode-plus, following are suggestion which I use.
'atom-text-editor.vim-mode-plus.normal-mode':
  'space T': 'try:open-file'
  'T': 'try:paste'
'atom-text-editor.vim-mode.visual-mode':
  'T': 'try:paste'

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