Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Implemented interactive buffers. #28

Merged
merged 4 commits into from
Jun 14, 2016
Merged

Implemented interactive buffers. #28

merged 4 commits into from
Jun 14, 2016

Conversation

ckwang
Copy link
Contributor

@ckwang ckwang commented Jun 10, 2016

Implements the feature in #9, except for the watchpoints.

In the end, I skip the syntax idea all together, and perform the regex myself. The ideal way is to extract substring using Vim's syntax mechanism, but the most I can do is looking up what syntax group a specific location belongs to. If I want to do anything more, I might need to scan the whole line, which makes things more complicated.

Also, I promoted "llnotify" to global namespace because it's now used in layout.vim as well. I understand this is probably something to hide from the user. Maybe we need another commit to re-organize the functions.

@critiqjo
Copy link
Collaborator

Thanks for the PR. I'll review this by June 13th.
On Jun 10, 2016 1:57 PM, "Chun-Kai Wang" notifications@github.com wrote:

Implements the feature in #9
https://github.com/critiqjo/lldb.nvim/issues/9, except for the
watchpoints.

In the end, I skip the syntax idea all together, and perform the regex
myself. The ideal way is to extract substring using Vim's syntax mechanism,
but the most I can do is looking up what syntax group a specific location
belongs to. If I want to do anything more, I might need to scan the whole
line, which makes things more complicated.

Also, I promoted "llnotify" to global namespace because it's now used in
layout.vim as well. I understand this is probably something to hide from

the user. Maybe we need another commit to re-organize the functions.

You can view, comment on, or merge this pull request online at:

https://github.com/critiqjo/lldb.nvim/pull/28
Commit Summary

  • Separated window-related settings to its own function.
  • Implemented interactive buffers.

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/critiqjo/lldb.nvim/pull/28, or mute the thread
https://github.com/notifications/unsubscribe/ABXrGS9aNVlibjUAwBrNf744jF82a9CYks5qKR_vgaJpZM4Iyuqa
.

@@ -1,4 +1,4 @@
function! s:llnotify(event, ...) abort
function! lldb#remote#llnotify(event, ...) abort
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably better named as lldb#remote#_notify (or even __notify).

@critiqjo
Copy link
Collaborator

Other than the comments I left, it looks great!

@critiqjo
Copy link
Collaborator

Looks good!

To properly take advantage of your code, I have mapped the a key in backtrace buffer to make it bt all in bt-ex branch.

Can you squash the last 2 of your commits and cherry-pick those 2 commits I added (after reviewing those changes)? I will merge it as soon as you are ready.

ckwang and others added 3 commits June 14, 2016 19:49
* Breakpoint buffer: delete buffer with 'x'
* Backtrace buffer: select frame with '<CR>'
* Thread buffer: select thread with '<CR>'
The 'llnotify' function is promoted to global namespace.
- Mapped `a` and `t` in backtrace and threads buffer
@ckwang
Copy link
Contributor Author

ckwang commented Jun 14, 2016

The 2 commits lgtm.

@critiqjo critiqjo merged commit f610d36 into dbgx:master Jun 14, 2016
@critiqjo
Copy link
Collaborator

Great! Thanks again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants