Skip to content

Commit

Permalink
Add 'Rename Symbol' option on right-click (#2045)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniDagur committed Jan 22, 2023
1 parent 13db955 commit 5b2d412
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- [#1991](https://github.com/lapce/lapce/pull/1991): Implement rendering of images in markdown views
- [#2004](https://github.com/lapce/lapce/pull/2004): Add ToggleHistory command
- [#2033](https://github.com/lapce/lapce/pull/2033): Add setting for double click delay (Currently only works for opening file from the explorer)
- [#2045](https://github.com/lapce/lapce/pull/2045): Add 'Rename Symbol' option on right-click

### Bug Fixes
- [#1911](https://github.com/lapce/lapce/pull/1911): Fix movement on selections with left/right arrow keys
Expand Down
9 changes: 9 additions & 0 deletions lapce-ui/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,15 @@ impl LapceEditor {
enabled: true,
}),
MenuKind::Separator,
MenuKind::Item(MenuItem {
desc: None,
command: LapceCommand {
kind: CommandKind::Focus(FocusCommand::Rename),
data: None,
},
enabled: true,
}),
MenuKind::Separator,
MenuKind::Item(MenuItem {
desc: None,
command: LapceCommand {
Expand Down

0 comments on commit 5b2d412

Please sign in to comment.