forked from Botanical/BotanJS
Added a beep sound
This commit is contained in:
parent
db922421be
commit
acb5d72d89
@ -21,38 +21,14 @@
|
||||
}
|
||||
};
|
||||
|
||||
/* @param {Components.Vim.LineFeeder} */
|
||||
var ContentPosition = function( f )
|
||||
{
|
||||
var line = f.cursor.getLine();
|
||||
var n = line.lineNum;
|
||||
|
||||
var p = 0;
|
||||
if( 0 < n )
|
||||
{
|
||||
p = f.content.indexOf( "\n" );
|
||||
for( i = 1; p != -1 && i < n; i ++ )
|
||||
{
|
||||
p = f.content.indexOf( "\n", p + 1 );
|
||||
}
|
||||
|
||||
if( f.wrap )
|
||||
{
|
||||
// wordwrap offset
|
||||
p ++;
|
||||
}
|
||||
}
|
||||
|
||||
p += f.cursor.aX;
|
||||
return p;
|
||||
};
|
||||
|
||||
/** @type {Components.Vim.Cursor.IAction} */
|
||||
var INSERT = function( Cursor )
|
||||
{
|
||||
/** @type {Components.Vim.Cursor} */
|
||||
this.__cursor = Cursor;
|
||||
|
||||
this.__startX = Cursor.aPos;
|
||||
|
||||
// Initialize this stack
|
||||
this.__rec( "", true );
|
||||
};
|
||||
@ -70,6 +46,7 @@
|
||||
var insertLength = this.__insertLength;
|
||||
var contentUndo = this.__contentUndo;
|
||||
var startPos = this.__startPosition;
|
||||
var startX = this.__startX;
|
||||
|
||||
return function() {
|
||||
var contentRedo = feeder.content.substr( startPos, insertLength );
|
||||
@ -105,7 +82,7 @@
|
||||
this.__insertLength = 0;
|
||||
this.__contentUndo = "";
|
||||
this.__stack = new Stack();
|
||||
this.__startPosition = ContentPosition( this.__cursor.feeder );
|
||||
this.__startPosition = this.__cursor.aPos;
|
||||
}
|
||||
|
||||
if( c == "\n" )
|
||||
@ -129,7 +106,7 @@
|
||||
|
||||
cur.moveX( -1, true, true );
|
||||
|
||||
var f = ContentPosition( feeder );
|
||||
var f = cur.aPos;
|
||||
|
||||
if( this.__insertLength <= 0 )
|
||||
{
|
||||
@ -147,7 +124,7 @@
|
||||
|
||||
break;
|
||||
case 46: // Delete
|
||||
var f = ContentPosition( feeder );
|
||||
var f = cur.aPos;
|
||||
|
||||
this.__contentUndo += feeder.content.substr( f, 1 );
|
||||
|
||||
@ -179,7 +156,7 @@
|
||||
var cur = this.__cursor;
|
||||
var feeder = cur.feeder;
|
||||
|
||||
var f = ContentPosition( feeder );
|
||||
var f = cur.aPos;
|
||||
|
||||
feeder.content =
|
||||
feeder.content.substring( 0, f )
|
||||
|
@ -2,6 +2,7 @@
|
||||
var ns = __namespace( "Components.Vim" );
|
||||
|
||||
var debug = __import( "System.Debug" );
|
||||
var beep = ns[ NS_INVOKE ]( "Beep" );
|
||||
|
||||
var SHIFT = 1 << 9;
|
||||
var CTRL = 1 << 10;
|
||||
@ -18,7 +19,49 @@
|
||||
var U = 85; var V = 86; var W = 87; var X = 88; var Y = 89;
|
||||
var Z = 90;
|
||||
|
||||
var Controls = function( sender, e )
|
||||
var Controls = function()
|
||||
{
|
||||
this.__keyChains = [];
|
||||
};
|
||||
|
||||
Controls.prototype.__comboG = function( e )
|
||||
{
|
||||
var keyON = this.__keyChains[ 0 ] == G;
|
||||
if( keyON )
|
||||
{
|
||||
switch( e.keyCode )
|
||||
{
|
||||
default:
|
||||
this.__keyChains = [];
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if( e.keyCode == G )
|
||||
{
|
||||
this.__keyChains[ 0 ] = G;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
Controls.prototype.__comboT = function( e ) { return false; };
|
||||
|
||||
// <
|
||||
Controls.prototype.__comboLeftShift = function( e ) { return false; };
|
||||
|
||||
// >
|
||||
Controls.prototype.__comboRightShift = function( e ) { return false; };
|
||||
|
||||
Controls.prototype.__comboKey = function( e )
|
||||
{
|
||||
return this.__comboG( e )
|
||||
|| this.__comboT( e )
|
||||
|| this.__comboLeftShift( e )
|
||||
|| this.__comboRightShift( e );
|
||||
};
|
||||
|
||||
Controls.prototype.handler = function( sender, e )
|
||||
{
|
||||
// Neve capture these keys
|
||||
if( e.altKey
|
||||
@ -28,10 +71,16 @@
|
||||
|
||||
// Action Mode handled by the actions themselves
|
||||
var cfeeder = sender.contentFeeder;
|
||||
|
||||
// Esc OR Ctrl + c
|
||||
var Escape = e.keyCode == 27 || ( e.ctrlKey && e.keyCode == 67 );
|
||||
|
||||
// Clear the keychains in combo commands
|
||||
if( Escape ) this.__keyChains = [];
|
||||
|
||||
if( cfeeder.cursor.action )
|
||||
{
|
||||
// Esc OR Ctrl + c
|
||||
if( e.keyCode == 27 || ( e.ctrlKey && e.keyCode == 67 ) )
|
||||
if( Escape )
|
||||
{
|
||||
e.preventDefault();
|
||||
cfeeder.cursor.closeAction();
|
||||
@ -48,39 +97,64 @@
|
||||
+ ( e.shiftKey || e.getModifierState( "CapsLock" ) ? SHIFT : 0 )
|
||||
+ ( e.ctrlKey ? CTRL : 0 );
|
||||
|
||||
// Handles long commands
|
||||
|
||||
if( this.__comboKey( kCode ) ) return;
|
||||
|
||||
var cfeeder = sender.contentFeeder;
|
||||
var sfeeder = sender.statusFeeder;
|
||||
|
||||
var ccur = cfeeder.cursor;
|
||||
|
||||
var cMoveX = function( a, b, c )
|
||||
{
|
||||
var x = ccur.X;
|
||||
ccur.moveX( a, b, c );
|
||||
if( ccur.X == x ) beep();
|
||||
};
|
||||
|
||||
var cMoveY = function( a )
|
||||
{
|
||||
var y = ccur.Y + cfeeder.panY;
|
||||
ccur.moveY( a );
|
||||
if( y == ( ccur.Y + cfeeder.panY ) )
|
||||
{
|
||||
if( 0 < a && !cfeeder.EOF ) return;
|
||||
beep();
|
||||
}
|
||||
};
|
||||
|
||||
switch( kCode )
|
||||
{
|
||||
// Cursor movements
|
||||
case BACKSPACE: // Backspace, go back 1 char, regardless of line
|
||||
cfeeder.cursor.moveX( -1, true );
|
||||
cMoveX( -1, true );
|
||||
break;
|
||||
case H: // Left
|
||||
cfeeder.cursor.moveX( -1 );
|
||||
cMoveX( -1 );
|
||||
break;
|
||||
case L: // Right
|
||||
cfeeder.cursor.moveX( 1 );
|
||||
cMoveX( 1 );
|
||||
break;
|
||||
case K: // Up
|
||||
cfeeder.cursor.moveY( -1 );
|
||||
cMoveY( -1 );
|
||||
break;
|
||||
case J: // Down
|
||||
cfeeder.cursor.moveY( 1 );
|
||||
cMoveY( 1 );
|
||||
break;
|
||||
|
||||
// Insert
|
||||
case A: // Append
|
||||
cfeeder.cursor.moveX( 1, true, true );
|
||||
cfeeder.cursor.openAction( "INSERT" );
|
||||
cMoveX( 1, true, true );
|
||||
ccur.openAction( "INSERT" );
|
||||
break;
|
||||
case I: // Insert
|
||||
break;
|
||||
case U: // Undo
|
||||
cfeeder.cursor.openRunAction( "UNDO", e );
|
||||
ccur.openRunAction( "UNDO", e );
|
||||
break;
|
||||
case CTRL + R: // Redo
|
||||
cfeeder.cursor.openRunAction( "REDO", e );
|
||||
ccur.openRunAction( "REDO", e );
|
||||
break;
|
||||
case X: // Del
|
||||
break;
|
||||
@ -104,12 +178,12 @@
|
||||
case SHIFT + L: // Last line buffer
|
||||
break;
|
||||
case SHIFT + _4: // $, End
|
||||
cfeeder.cursor.lineEnd();
|
||||
ccur.lineEnd();
|
||||
break;
|
||||
case SHIFT + _5: // %, Find next item
|
||||
break;
|
||||
case SHIFT + _6: // ^, Start
|
||||
cfeeder.cursor.lineStart();
|
||||
ccur.lineStart();
|
||||
break;
|
||||
case SHIFT + J: // Join lines
|
||||
break;
|
||||
@ -120,5 +194,5 @@
|
||||
|
||||
};
|
||||
|
||||
ns[ NS_EXPORT ]( EX_FUNC, "Controls", Controls );
|
||||
ns[ NS_EXPORT ]( EX_CLASS, "Controls", Controls );
|
||||
})();
|
||||
|
@ -313,6 +313,33 @@
|
||||
return w;
|
||||
} );
|
||||
|
||||
// The absolute content position
|
||||
__readOnly( Cursor.prototype, "aPos", function()
|
||||
{
|
||||
var f = this.feeder;
|
||||
var line = this.getLine();
|
||||
var n = line.lineNum;
|
||||
|
||||
var p = 0;
|
||||
if( 0 < n )
|
||||
{
|
||||
p = f.content.indexOf( "\n" );
|
||||
for( i = 1; p != -1 && i < n; i ++ )
|
||||
{
|
||||
p = f.content.indexOf( "\n", p + 1 );
|
||||
}
|
||||
|
||||
if( f.wrap )
|
||||
{
|
||||
// wordwrap offset
|
||||
p ++;
|
||||
}
|
||||
}
|
||||
|
||||
p += this.aX;
|
||||
return p;
|
||||
} );
|
||||
|
||||
__readOnly( Cursor.prototype, "message", function()
|
||||
{
|
||||
if( this.__pulseMsg )
|
||||
|
@ -53,7 +53,12 @@
|
||||
|
||||
var _self = this;
|
||||
|
||||
stage.addEventListener( "KeyDown", KeyHandler( this, VimControls ) );
|
||||
var controls = new VimControls();
|
||||
stage.addEventListener(
|
||||
"KeyDown"
|
||||
, KeyHandler( this, controls.handler.bind( controls ) )
|
||||
);
|
||||
|
||||
stage.addEventListener( "Focus", function() { _self.__active = true; } );
|
||||
stage.addEventListener( "Blur", function() { _self.__active = false; } );
|
||||
|
||||
|
@ -45,6 +45,178 @@
|
||||
return GetString( errors, key, restArgs );
|
||||
};
|
||||
|
||||
var bAudio = new Audio(
|
||||
/*{{{ Audio Data */
|
||||
"data:audio/ogg;base64,"
|
||||
+ "T2dnUwACAAAAAAAAAADXYAAAAAAAADs1WuYBHgF2b3JiaXMAAAAAAkSsAAAAAAAAAHECAAAAAAC4AU9n"
|
||||
+ "Z1MAAAAAAAAAAAAA12AAAAEAAAB6JNs9Ejv/////////////////////kQN2b3JiaXMrAAAAWGlwaC5P"
|
||||
+ "cmcgbGliVm9yYmlzIEkgMjAxMjAyMDMgKE9tbmlwcmVzZW50KQAAAAABBXZvcmJpcylCQ1YBAAgAAAAx"
|
||||
+ "TCDFgNCQVQAAEAAAYCQpDpNmSSmllKEoeZiUSEkppZTFMImYlInFGGOMMcYYY4wxxhhjjCA0ZBUAAAQA"
|
||||
+ "gCgJjqPmSWrOOWcYJ45yoDlpTjinIAeKUeA5CcL1JmNuprSma27OKSUIDVkFAAACAEBIIYUUUkghhRRi"
|
||||
+ "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mInp4L1BqtWwAZiAesc8W5/pmJGaCryY1imGLmQLRcm7NnKZKT"
|
||||
+ "ve+siU6SaPnXUSsNvNOGAvBvNlBwyvnBFsbnNLvFXJrew/a77NzR4eflpJp35yTe2YZmlhFkLwCAx90B"
|
||||
+ "O5eQ/vI5w/jpgAcAAHAAAGw5AOCRyKs81/YAAHCAAQAAqHCtBOAAPmb8g+q8T6804p5zXyA0ZvyL2yyW"
|
||||
+ "dW0HR2F4axqQRbXm5KOH20MBs4/MqoIAQCgjpBAEAAAAAP/fyiDOdHoccpv5bZtvr29nXeXs8+ns3thn"
|
||||
+ "wTnfeTi/ky6Wi9P1hZf3jNilgm6280RqceAB+6umGRjJw/GQ9zPM8/K8dMZSLGBxvLy+HXo68sqPaPMa"
|
||||
+ "P6ZqNx8lq+yRkdG6WEbhYlkA01PJ1FW7s7TP/1mXWZubheZq8+rq6uq/q1cCz4EDANZmAABg5emTVX0F"
|
||||
+ "AADA+zAAAAAwBVztbAIODg4="
|
||||
/*}}}*/
|
||||
);
|
||||
|
||||
var Beep = function()
|
||||
{
|
||||
// Beep Async
|
||||
setTimeout(function() {
|
||||
bAudio.pause();
|
||||
bAudio.currentTime = 0;
|
||||
bAudio.play();
|
||||
}, 0 );
|
||||
};
|
||||
|
||||
ns[ NS_EXPORT ]( EX_FUNC, "Message", Message );
|
||||
ns[ NS_EXPORT ]( EX_FUNC, "Error", Error );
|
||||
ns[ NS_EXPORT ]( EX_FUNC, "Beep", Beep );
|
||||
})();
|
||||
|
@ -38,6 +38,8 @@ Components.Vim.Cursor.X;
|
||||
/** @type Number */
|
||||
Components.Vim.Cursor.Y;
|
||||
/** @type Number */
|
||||
Components.Vim.Cursor.aPos;
|
||||
/** @type Number */
|
||||
Components.Vim.Cursor.cols;
|
||||
/** @type message */
|
||||
Components.Vim.Cursor.string;
|
||||
|
Loading…
Reference in New Issue
Block a user