Skip to content

Commit

Permalink
Add support to select current line (close #147)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcnunes committed May 16, 2016
1 parent 01bc057 commit 8322f43
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/renderer/components/query.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,18 @@ export default class Query extends Component {
editor.setFontSize(12);
},
},
{
name: 'selectCurrentLine',
bindKey: { win: 'Ctrl-L', mac: 'Command-L' },
exec: function(editor) {
const { row } = editor.selection.getCursor();
const endColumn = editor.session.getLine(row).length;
editor.selection.setSelectionRange({
start: { column: 0, row },
end: { column: endColumn, row },
});
},
},
];
}

Expand Down

0 comments on commit 8322f43

Please sign in to comment.