Rev Editor

Want to edit something? We can help! 
Filed under

revolution

 

Greater tRev-to-Rev interoperability and more!

Watch as I run through the new tRev features and enhancements noted below:

(download)

You should click here to see the Basic tRev API in PDF format hosted on my iWork shared documents site.

You may have noticed a new link in the upper right of the editor window in the video above. The Latest Post link appears when there is only one open tab. It uses the Twitter API to filter my Tweets for ones relevant to tRev users. The mechanism for updating this link operates completely asynchronously, so it will not interfere with our normal programming (pun intended).

You should click below to...

Loading mentions Retweet
Filed under  //   feature friday   interoperability   revolution   tRev   video  
Posted by Jerry Daniels 

Comments [8]

Lotsa nice little stuff!

The incredible video:

(download)

The amazing overview:

You should click below to...

Loading mentions Retweet
Filed under  //   browser   christmas   code   easter egg   feature friday   handlers   object browser   revolution   snaps   tRev  
Posted by Jerry Daniels 

Comments [3]

Drag-n-drop your way out of relayering hell!

tRev's Object Browser will now let you:

  1. Drag an object in the Object Browser to re-layer it.
  2. Shift+drag an object to clone and relayer it.
  3. Double-click an object name in Browser to re-name it.
  4. Set the content of a label field WHILE you re-name it.

(download)

Double-clicking has changed

To edit the name of a control listed as a line item in the Object Browser, you must double-click on the actual name of the control. Clicking anywhere else will edit the object itself.

Double-clicking the object type ("grc" for example) or a neutral area of the highlighted line (where there's no text) will result in editing the control's code. As before, depressing the shift key while double-clicking in these areas will open the object's property inspector in Rev IDE.

FIXED: Double clicking the number of lines of code in an Object Browser line item will not edit the name of the object. Instead, it will edit the code.

Use your keyboard to the max!

To edit, accept changes and navigate the Object Browser, type the following:

  • command+return to edit the name of an object if you're in browse mode.
  • command+return while editing to accept the edit and return to browse mode.
  • enter while editing to accept the edit. (cmd+return if no enter key)
  • return to accept the edit and edit the next line (if there is one).
  • down arrow to accept the edit and edit the next line.
  • up arrow to accept the edit and edit the previous line.
  • tab to accept the edit and edit the next line.
  • right arrow at the end of the edited name will accept the edit and edit next line.
  • left arrow at the beginning of the edited name will accept the edit and edit previous line.
This is one of those processes that's MUCH easier to do than to explain. Keyboarding is the only way to do re-naming en masse.

The Hat Trick

With inline editing you can name your label fields and set their content at the same time:

Step 1

Step 2:

Step 3:

Bonus: if you type shift+return to accept the edited name of any field, its new name will appear as its text content.

Why doesn't the Revolution application browser do all this?

The developers of the Rev IDE have to worry about what version of the engine you're running. This precludes using some of the newer features like the new drag and drop messages and the formattedTop property--all of which make allow us to do relayering and inline editing in tRev's Object Browser.

tRev can run the most recent engine and never worry about the IDE, since it runs in its own application partition. That means you don't have to worry about the IDE, either!

You should click below to...

 

Loading mentions Retweet
Filed under  //   clone   drag and drop   drag-n-drop   edit object name   feature friday   inline editing   layering   layers   new features   object browser   relayer   revolution   tRev   video  
Posted by Jerry Daniels 

Comments [9]

tText - extend it with Rev-built plugins!

Here's the part I've been dying to tell you about...I especially like the segment in this Feature Friday (Nov 13) video where the plugin places its results in a new tab! It's my fav feature—and requires only a one line call to the tText API.

(download)

The world's first text editor to use Revolution plugins!

That's right, kids...you can write your own plugin extensions to our great new text editor tText—do it right in Revolution! And there's a handy Plugin Manager that makes the process painless and super easy. It even opens your plugin in Rev for you. Just put tText next to the version of Rev you want to use.

Check this out:
  • Create, delete, rename and launch your plugin in Revolution via the Plugin Manager. 
  • Add any existing stack to tText and start using it as a plugin, too!
  • Reorder your plugins via drag-and-drop to change the way they appear in tText's Plugins menu.
  • You get two sample plugins with the product. Code open and easy to mod.
Remember
  • plugins are separate stacks—not substacks of the tText app
  • Plugins are individual stack files residing in a folder. 
  • Even the Plugin Manager is a plugin!
Three plugins are included with tText:

Our starting price for this great product is only $12 USD! But it won't be that low forever.
  • You should CLICK HERE to purchase tText. Take advantage of my temporary insanity.
  • This $12 is not a yearly license fee and incremental updates are included. New, big versions will have a reasonable upgrade fee.
We are shipping Mac and PC versions!

Loading mentions Retweet
Filed under  //   editor   feature friday   plugins   revolution   text editor   tText   video  
Posted by Jerry Daniels 

Comments [7]

Save from Object Browser + Color Preference!

Save from within the Object Browser with a single keystroke...and other goodies!

(download)
NOTE: Object Browser single keystroke shortcuts don't work if the Find Panel is visible.

You should click below to...

Loading mentions Retweet
Filed under  //   feature friday   new features   revolution   tRev   video  
Posted by Jerry Daniels 

Comments [3]

Statistics on your code now available!

Today's video:

(download)

The new Stats are illuminating:

You can use Stats to find out the following:

  • Am I commenting enough?
  • Do I have enough handlers to warrant a folder?
  • Do I have too many handlers in a folder to be useful?
  • How many actual lines of code do I have?

Would you like more white space in your code and object browser?

Click Plus to increase your line height!

You should click below to...

Loading mentions Retweet
Filed under  //   auto-complete   comment lines   lines of code   new features   optimized   plus   revolution   statistics   stats   tRev   video   white space  
Posted by Jerry Daniels 

Comments [1]

Optimized version available!

(download)

I ran out of time at the end of that video because Jing cut me off! I was going to say that clicking on a var name in tRev's Decoder now places the var's data directly into the clipboard. More importantly, when you hover over a var's data in the Decoder, tooltips appear telling you about this click-to-copy-data feature. BONUS: tooltips for var data also tell you when you already have a var's data in the clipboard!

Some anomalies you'll see in the lists below are fairly arcane and hard to describe. Some are hard to replicate, too. However, this doesn't mean they aren't aggravating if allowed to persist!

List of Enhancements

Auto-complete:
  • Handlers dependably auto-complete after return.
  • After a multiline auto-complete or carriage return, text now scrolls into view, if insertion point is lower than bottom of field.
  • Clairvoyance is much faster — I've been unable to accumulate text in front of insertion point as I type.
  • Auto-complete works reliably when calling recently-created handlers.
  • Auto-completed switch control structures now have "break" statement within the case statement.
  • Block comments that are not Raptor handlers no longer get transformed into Raptor handlers when you type a carriage return within them.
  • Auto-complete is no longer case-sensitive, meaning you can type in any case you wish and it will figure out what you're trying to type. NOTE: once you accept an suggested string, if it is a Rev term, for the time being it will become lower case.
Coding:
  • Typing control+space (both platforms!) when the pointer is outside the tRev editor window will pick up the full name of the object below the pointer and insert into any active field. Add the shift key and it does same but inserts the short name of the object beneath your pointer. This has always been the case. Read on.
  • Typing control+space when the pointer is inside the tRev editor window now picks up the text beneath the pointer and inserts it into the active field. Hold down the shift key and get the quoted string instead of the word within the quoted string. This is great for copying a handler name from the handler list into your code—or from elsewhere within your code to the selection/insertion point. Bonus: copy stuff from your code into find field!
Error handling:
  • The code field (not its text, but the object) is no longer selected after some errors.
  • Execution errors occurring while in edit group mode no longer lock up tRev in a repeat loop.
Raptor handlers:
  • When Raptor handler property values are implicitly changed from something you do in Rev, you are no longer asked if it's ok to overwrite when you edit that object's script and it's already open in a tab. Bottom line: the bug is fixed.
  • basic.properties are now inserting properly from the Edit menu item call, under all circumstances—even if you already have --> *props at the top.
Decoder:
  • When opening the decoder or definitions pane, the selected code is no longer obscured by the decoder or definitions pane.
  • Variable and array element data can now be copied by clicking var or element data—all of which are now links.
  • When links to var or array data longer than 42 chars (or containing a carriage return) are clicked, they now open a special variable data dialog that displays full data available for selecting and copying with mouse and Edit menu shortcuts.
  • Stack file names containing commas no longer confuse the Decoder as they do in the Rev 3.5 debugger.
  • The < and > chars no longer show up in the Decoder pane as their urlEncoded values.
Tabs
  • Closing an inactive tab no longer activates the tab to its left by default.
  • Every object edited in tRev now gets a tRevUniqueID that is the sum of the object's revUniqueID and ID properties. This means your last position and selection within an object's code is now stored under a new record id and your old positions are no longer used. No big deal.
  • Tabs are now tagged with tRev's new, unique ID to prevent object ID dysphoria where the Overwrite this script? dialog appears when it should not. This is a big deal.
General:
  • Many more actions are now undoable. Eventually everything will be undo-able, but not 12 layers of undo/redo. I'm too fond of typing quickly in large bodies of code to do that.
  • We now have much more reliable restoring of last position in script
  • Handler links to recently-created handlers appear reliably, but only after compiling the code.
  • When inspecting from Rev with opt+cmd click, editor no longer resizes to bottom right of screen.
  • You can now select and copy any text residing in the Errors, Decoder or Definitions panes.
Screens

Click variables in the Decoder to copy them into your clipboard:

Click variables with truncated data and get the new Decoder dialog that lets you select data with your mouse and/or Edit menu shortcuts:

The components containing these fixes are now available. Check for Updates or click the Updates Available link in the lower left of the editor.

NOTE: The Data/Message Broker is one of the components that has been updated, so  you will need to restart tRev after updating!

You should click below to...

Loading mentions Retweet
Filed under  //   auto-complete   clairvoyance   enhanced   error handling   feature friday   handler links   optimized   raptor handlers   revolution   tabs   trev   video  
Posted by Jerry Daniels 

Comments [14]

Modest, but meaningful enhancements

Here's what's new in tRev today:
  • Search tRev Support Site... Help menu item
  • Definitions expanded with more synonyms
  • Select Structure now supports every weird form of IF-THEN-ELSE you can imagine
  • Backspace, return key now dependably trigger their object's dirty flag
  • go to and toplevel commands now supported in Raptor Handlers
Here's a video demonstrating said new features:

(download)

After making this video, I made the Select Structure command work a little better on if structures where the then is on the next line. See what you think.

Also, if you try to put a go to command in a button's Raptor Handler, you'll find it will not provide you with a link. That command only becomes a link when you're editing a stack or a card. Same principle holds with toplevel...it won't become a link (and thus work) in anything but a stack object's code.

This is a component update that will give you a couple new agents, a new broker and a new editor. Just click the Updates Available link at lower left of editor or select Check for Updates from your Help menu to get the update.

This update is compatible with tRev build 110. This build has been available for some time. If your tRev about box does not have the words build 110 in the title, then you will need to download a new tRev application from this site. Links for both platforms are on the right side when viewing the main page.

NOTE: because there is a new broker component, you will need to restart tRev, but not Revolution.

You should click below to...

Loading mentions Retweet
Filed under  //   definitions   feature friday   go to   new features   revolution   search from tRev   select structure   toplevel   trev   video  
Posted by Jerry Daniels 

Comments [0]

Getting to the bottom of a handler

NOTE: If you have the insertion point (or text selection) part way into a handler's code, and you click the handler's name in the handler list, you will see the bottom line of the handler selected rather than the top. This maneuver—as well as the others depicted above, works on Raptor handlers as well as the more ordinary variety.

The feature was added on Sun, Sep 6 @ 10:30AM CDT/US. You will need to Check for Updates in order to use it. You are not required to restart tRev to use this feature, but if you have not updated lately, you may want to restart it in case the message broker was modified in a previous update that you didn't have.

 

You should click below to...

 

Loading mentions Retweet
Filed under  //   bottom of handler   handler list   handlers   navigation   revolution   top of handler   trev  
Posted by Jerry Daniels 

Comments [1]

Add basic props to code with a keystroke!

Add basic properties to the scripts of all new objects using a new tRev preference, or add them to the script of any object with one keystroke!

(download)

Not mentioned in the video
  • tRev now provides basic properties for every type of object via its Raptor feature. These are the same properties, displayed in the same order as in Revolution's property inspector.
  • When Raptor-based basic properties appear in an object's script that is otherwise empty (via the feature show above), those property comments don't become part of the object's script until you either edit a property or explicitly compile the script.

New preference:

To start using these new features, Check for Updates and afterwards, quit and restart tRev.

 

You should click below to...

 

Loading mentions Retweet
Filed under  //   basic properties   feature friday   new features   new preference   preferences   raptor   revolution   trev   video  
Posted by Jerry Daniels 

Comments [10]