Skip to content

Conversation

@michaelcosj
Copy link
Contributor

Addresses #49

@sudo-tee sudo-tee merged commit a17400c into sudo-tee:main Oct 7, 2025
@sudo-tee
Copy link
Owner

sudo-tee commented Oct 7, 2025

Thanks for the PR.

I also like it better that way

DanRioDev pushed a commit to DanRioDev/opencode.nvim that referenced this pull request Oct 20, 2025
commit 601cc82
Author: Cameron Ring <cameron@cs.stanford.edu>
Date:   Thu Oct 9 15:52:47 2025 -0700

    fix(config): add config metatable (sudo-tee#59)

    Fixes sudo-tee#58

    Makes config access less error prone and more ergonomic

commit ca0ff90
Author: Francis Belanger <francis.belanger@gmail.com>
Date:   Thu Oct 9 09:50:28 2025 -0400

    chore: update .luarc.json for better support of emmylua_ls

commit a82b08c
Author: Francis Belanger <francis.belanger@gmail.com>
Date:   Thu Oct 9 09:49:28 2025 -0400

    fix: prefix replacement not working properly

commit 9d949e7
Author: Francis Belanger <francis.belanger@gmail.com>
Date:   Thu Oct 9 08:43:57 2025 -0400

    feat: add a keymap_prefix to configure the default `<leader>o`

commit 8c65d9b
Author: Cameron Ring <cameron@cs.stanford.edu>
Date:   Thu Oct 9 03:29:02 2025 -0700

    feat(config)!: modern keymap format + mode support (sudo-tee#52)

    This is a complete overhaul of the keymaps,

    The old config should still work but with a warning for migration

    The new format shoud now be:
    ```lua
     keymap = {
        editor = {
          ['<leader>og'] = { 'toggle' }, -- I don't think we really need to support just string, it makes things more complex for nothing
          ['<leader>oi'] = { 'open_input' },
          ['<leader>oI'] = { 'open_input_new_session' },
          ['<leader>oo'] = { 'open_output' },
          ['<leader>ot'] = { 'toggle_focus' },
          ['<leader>oq'] = { 'close' },
          ['<leader>os'] = { 'select_session' },
          ['<leader>op'] = { 'configure_provider' },
          ['<leader>od'] = { 'diff_open' },
          ['<leader>o]'] = { 'diff_next' },
          ['<leader>o['] = { 'diff_prev' },
          ['<leader>oc'] = { 'diff_close' },
          ['<leader>ora'] = { 'diff_revert_all_last_prompt' },
          ['<leader>ort'] = { 'diff_revert_this_last_prompt' },
          ['<leader>orA'] = { 'diff_revert_all' },
          ['<leader>orT'] = { 'diff_revert_this' },
          ['<leader>orr'] = { 'diff_restore_snapshot_file' },
          ['<leader>orR'] = { 'diff_restore_snapshot_all' },
          ['<leader>oC'] = { 'open_configuration_file' },
          ['<leader>ox'] = { 'swap_position' },
          ['<leader>opa'] = { 'permission_accept' },
          ['<leader>opA'] = { 'permission_accept_all' },
          ['<leader>opd'] = { 'permission_deny' },
        },
        output_window = {
          ['<leader>something'] = {function ()
                       -- custom code
          end},
          ['<esc>'] = { 'close' },
          ['<C-c>'] = { 'stop' },
          [']]'] = { 'next_message' },
          ['[['] = { 'prev_message' },
          ['<tab>'] = { 'toggle_pane', mode = { 'n', 'i' } },
          ['<C-i>'] = { 'focus_input' },
          ['<leader>oS'] = { 'select_child_session' },
          ['<leader>oD'] = { 'debug_message' },
          ['<leader>oO'] = { 'debug_output' },
          ['<leader>ods'] = { 'debug_session' },
        },
        input_window = {
          ['<cr>'] = { 'submit_input_prompt', mode = { 'n', 'i' } },
          ['<esc>'] = { 'close' },
          ['<C-c>'] = { 'stop' },
          ['~'] = { 'mention_file', mode = 'i' },
          ['@'] = { 'mention', mode = 'i' },
          ['/'] = { 'slash_commands', mode = 'i' },
          ['<tab>'] = { 'toggle_pane', mode = { 'n', 'i' } },
          ['<up>'] = { 'prev_prompt_history', mode = { 'n', 'i' } },
          ['<down>'] = { 'next_prompt_history', mode = { 'n', 'i' } },
          ['<M-m>'] = { 'switch_mode' },
          ['<leader>oS'] = { 'select_child_session' },
          ['<leader>oD'] = { 'debug_message' },
          ['<leader>oO'] = { 'debug_output' },
          ['<leader>ods'] = { 'debug_session' },
        },
        permission = {
          accept = 'a',
          accept_all = 'A',
          deny = 'd',
        },
    ```

commit fb33ce6
Author: Francis Belanger <francis.belanger@gmail.com>
Date:   Tue Oct 7 10:22:36 2025 -0400

    refactor: simplify keymaps by having a corresponding api function

commit fa31457
Author: Francis Belanger <francis.belanger@gmail.com>
Date:   Tue Oct 7 13:23:32 2025 -0400

    feat: restore mentions when navigating history

commit 123d62b
Author: Francis Belanger <francis.belanger@gmail.com>
Date:   Tue Oct 7 12:53:11 2025 -0400

    fix: permission not displaying for subagents

commit 8a54af6
Author: Francis Belanger <francis.belanger@gmail.com>
Date:   Tue Oct 7 10:41:09 2025 -0400

    feat: display edit tool preview when asking for permission

commit a17400c
Author: Michael <osajehmichael@gmail.com>
Date:   Tue Oct 7 13:20:10 2025 +0100

    fix: use consistent window positioning commands for splits (sudo-tee#50)

commit 2357f86
Author: Francis Belanger <francis.belanger@gmail.com>
Date:   Tue Oct 7 08:06:14 2025 -0400

    feat: support arguments for commands after completion

commit 13b9e88
Author: Francis Belanger <francis.belanger@gmail.com>
Date:   Tue Oct 7 07:11:49 2025 -0400

    feat: allow arguments passing to user commands

commit 4eab392
Author: Francis Belanger <francis.belanger@gmail.com>
Date:   Fri Oct 3 15:57:45 2025 -0400

    chore: remove dead code

commit 42490ec
Author: Francis Belanger <francis.belanger@gmail.com>
Date:   Mon Oct 6 07:02:50 2025 -0400

    feat: implement basic permissions worflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants