Commit 7fc4c64d authored by Bram Schoenmakers's avatar Bram Schoenmakers

Change 'C' shortcut to 'N' for New.

parent 298b1e5f
...@@ -140,15 +140,15 @@ class UIApplication(CLIApplicationBase): ...@@ -140,15 +140,15 @@ class UIApplication(CLIApplicationBase):
if self.columns.focus_position > 0: if self.columns.focus_position > 0:
self.columns.focus_position -= 1 self.columns.focus_position -= 1
def _new_view(self): def _new_column(self):
self.viewwidget.reset() self.viewwidget.reset()
self._viewwidget_visible = True self._viewwidget_visible = True
def _edit_view(self): def _edit_column(self):
self.viewwidget.data = self.columns.focus.view.data self.viewwidget.data = self.columns.focus.view.data
self._viewwidget_visible = True self._viewwidget_visible = True
def _delete_view(self): def _delete_column(self):
try: try:
focus = self.columns.focus_position focus = self.columns.focus_position
del self.columns.contents[focus] del self.columns.contents[focus]
...@@ -170,9 +170,9 @@ class UIApplication(CLIApplicationBase): ...@@ -170,9 +170,9 @@ class UIApplication(CLIApplicationBase):
'h': self._focus_previous_column, 'h': self._focus_previous_column,
'right': self._focus_next_column, 'right': self._focus_next_column,
'l': self._focus_next_column, 'l': self._focus_next_column,
'C': self._new_view, 'N': self._new_column,
'E': self._edit_view, 'E': self._edit_column,
'D': self._delete_view, 'D': self._delete_column,
} }
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment