Change name of function that moves the active item to the top of the item stack.

This commit is contained in:
natalieogle
2016-02-23 19:02:45 -08:00
parent 48ef672524
commit 553b3f3300
5 changed files with 5 additions and 5 deletions

View File

@@ -74,7 +74,7 @@
'ctrl-pageup': 'pane:show-previous-item'
'ctrl-pagedown': 'pane:show-next-item'
'ctrl-tab': 'pane:show-next-recently-used-item'
'ctrl-tab ^ctrl': 'pane:move-item-to-top-of-stack'
'ctrl-tab ^ctrl': 'pane:move-active-item-to-top-of-stack'
'ctrl-shift-tab': 'pane:show-previous-item'
'cmd-=': 'window:increase-font-size'
'cmd-+': 'window:increase-font-size'

View File

@@ -47,7 +47,7 @@
'backspace': 'core:backspace'
'shift-backspace': 'core:backspace'
'ctrl-tab': 'pane:show-next-recently-used-item'
'ctrl-tab ^ctrl': 'pane:move-item-to-top-of-stack'
'ctrl-tab ^ctrl': 'pane:move-active-item-to-top-of-stack'
'ctrl-shift-tab': 'pane:show-previous-item'
'ctrl-pageup': 'pane:show-previous-item'
'ctrl-pagedown': 'pane:show-next-item'

View File

@@ -53,7 +53,7 @@
'backspace': 'core:backspace'
'shift-backspace': 'core:backspace'
'ctrl-tab': 'pane:show-next-recently-used-item'
'ctrl-tab ^ctrl': 'pane:move-item-to-top-of-stack'
'ctrl-tab ^ctrl': 'pane:move-active-item-to-top-of-stack'
'ctrl-shift-tab': 'pane:show-previous-item'
'ctrl-pageup': 'pane:show-previous-item'
'ctrl-pagedown': 'pane:show-next-item'

View File

@@ -334,7 +334,7 @@ class Pane extends Model
@itemStackIndex = @itemStack.length if @itemStackIndex is 0
# Moves the active item to the end of the itemStack once the ctrl key is lifted
moveItemToTopOfStack: ->
moveActiveItemToTopOfStack: ->
delete @itemStackIndex
@addItemToStack(@activeItem)

View File

@@ -3,7 +3,7 @@
module.exports = ({commandRegistry, commandInstaller, config}) ->
commandRegistry.add 'atom-workspace',
'pane:show-next-recently-used-item': -> @getModel().getActivePane().activateNextRecentlyUsedItem()
'pane:move-item-to-top-of-stack': -> @getModel().getActivePane().moveItemToTopOfStack()
'pane:move-active-item-to-top-of-stack': -> @getModel().getActivePane().moveActiveItemToTopOfStack()
'pane:show-next-item': -> @getModel().getActivePane().activateNextItem()
'pane:show-previous-item': -> @getModel().getActivePane().activatePreviousItem()
'pane:show-item-1': -> @getModel().getActivePane().activateItemAtIndex(0)