|
| 1 | +local m = require('orgmode.config.mappings.map_entry') |
| 2 | + |
| 3 | +return { |
| 4 | + global = { |
| 5 | + org_agenda = m.action('agenda.prompt', { opts = { buffer = false } }), |
| 6 | + org_capture = m.action('capture.prompt', { opts = { buffer = false } }), |
| 7 | + }, |
| 8 | + agenda = { |
| 9 | + org_agenda_later = m.action('agenda.advance_span', { args = { 1 } }), |
| 10 | + org_agenda_earlier = m.action('agenda.advance_span', { args = { -1 } }), |
| 11 | + org_agenda_goto_today = m.action('agenda.reset'), |
| 12 | + org_agenda_day_view = m.action('agenda.change_span', 'day'), |
| 13 | + org_agenda_week_view = m.action('agenda.change_span', 'week'), |
| 14 | + org_agenda_month_view = m.action('agenda.change_span', 'month'), |
| 15 | + org_agenda_year_view = m.action('agenda.change_span', 'year'), |
| 16 | + org_agenda_quit = m.action('agenda.quit'), |
| 17 | + org_agenda_switch_to = m.action('agenda.switch_to_item'), |
| 18 | + org_agenda_goto = m.action('agenda.goto_item'), |
| 19 | + org_agenda_goto_date = m.action('agenda.goto_date'), |
| 20 | + org_agenda_redo = m.action('agenda.redo'), |
| 21 | + org_agenda_todo = m.action('agenda.change_todo_state'), |
| 22 | + org_agenda_clock_in = m.action('agenda.clock_in'), |
| 23 | + org_agenda_clock_out = m.action('agenda.clock_out'), |
| 24 | + org_agenda_clock_cancel = m.action('agenda.clock_cancel'), |
| 25 | + org_agenda_set_effort = m.action('agenda.set_effort'), |
| 26 | + org_agenda_clock_goto = m.action('clock.org_clock_goto'), |
| 27 | + org_agenda_clockreport_mode = m.action('agenda.toggle_clock_report'), |
| 28 | + org_agenda_priority = m.action('agenda.set_priority'), |
| 29 | + org_agenda_priority_up = m.action('agenda.priority_up'), |
| 30 | + org_agenda_priority_down = m.action('agenda.priority_down'), |
| 31 | + org_agenda_toggle_archive_tag = m.action('agenda.toggle_archive_tag'), |
| 32 | + org_agenda_set_tags = m.action('agenda.set_tags'), |
| 33 | + org_agenda_deadline = m.action('agenda.set_deadline'), |
| 34 | + org_agenda_schedule = m.action('agenda.set_schedule'), |
| 35 | + org_agenda_filter = m.action('agenda.filter'), |
| 36 | + org_agenda_show_help = m.action('org_mappings.show_help'), |
| 37 | + }, |
| 38 | + capture = { |
| 39 | + org_capture_finalize = m.action('capture.refile'), |
| 40 | + org_capture_refile = m.action('capture.refile_to_destination'), |
| 41 | + org_capture_kill = m.action('capture.kill'), |
| 42 | + org_capture_show_help = m.action('org_mappings.show_help'), |
| 43 | + }, |
| 44 | + org = { |
| 45 | + org_refile = m.action('capture.refile_headline_to_destination'), |
| 46 | + org_timestamp_up_day = m.action('org_mappings.timestamp_up_day'), |
| 47 | + org_timestamp_down_day = m.action('org_mappings.timestamp_down_day'), |
| 48 | + org_timestamp_up = m.action('org_mappings.timestamp_up'), |
| 49 | + org_timestamp_down = m.action('org_mappings.timestamp_down'), |
| 50 | + org_change_date = m.action('org_mappings.change_date'), |
| 51 | + org_todo = m.action('org_mappings.todo_next_state'), |
| 52 | + org_priority = m.action('org_mappings.set_priority'), |
| 53 | + org_priority_up = m.action('org_mappings.priority_up'), |
| 54 | + org_priority_down = m.action('org_mappings.priority_down'), |
| 55 | + org_todo_prev = m.action('org_mappings.todo_prev_state'), |
| 56 | + org_toggle_checkbox = m.action('org_mappings.toggle_checkbox'), |
| 57 | + org_toggle_heading = m.action('org_mappings.toggle_heading'), |
| 58 | + org_open_at_point = m.action('org_mappings.open_at_point'), |
| 59 | + org_edit_special = m.action('org_mappings.edit_special'), |
| 60 | + org_cycle = m.action('org_mappings.cycle'), |
| 61 | + org_global_cycle = m.action('org_mappings.global_cycle'), |
| 62 | + org_archive_subtree = m.action('org_mappings.archive'), |
| 63 | + org_set_tags_command = m.action('org_mappings.set_tags'), |
| 64 | + org_toggle_archive_tag = m.action('org_mappings.toggle_archive_tag'), |
| 65 | + org_do_promote = m.action('org_mappings.do_promote'), |
| 66 | + org_do_demote = m.action('org_mappings.do_demote'), |
| 67 | + org_promote_subtree = m.action('org_mappings.do_promote', { args = { true } }), |
| 68 | + org_demote_subtree = m.action('org_mappings.do_demote', { args = { true } }), |
| 69 | + org_meta_return = m.action('org_mappings.handle_return'), |
| 70 | + org_insert_heading_respect_content = m.action('org_mappings.insert_heading_respect_content'), |
| 71 | + org_insert_todo_heading = m.action('org_mappings.insert_todo_heading'), |
| 72 | + org_insert_todo_heading_respect_content = m.action('org_mappings.insert_todo_heading_respect_content'), |
| 73 | + org_move_subtree_up = m.action('org_mappings.move_subtree_up'), |
| 74 | + org_move_subtree_down = m.action('org_mappings.move_subtree_down'), |
| 75 | + org_export = m.action('org_mappings.export'), |
| 76 | + org_return = m.action('org_mappings.org_return', { modes = { 'i' } }), |
| 77 | + org_next_visible_heading = m.action('org_mappings.next_visible_heading', { |
| 78 | + modes = { 'n', 'x' }, |
| 79 | + }), |
| 80 | + org_previous_visible_heading = m.action('org_mappings.previous_visible_heading', { modes = { 'n', 'x' } }), |
| 81 | + org_forward_heading_same_level = m.action('org_mappings.forward_heading_same_level'), |
| 82 | + org_backward_heading_same_level = m.action('org_mappings.backward_heading_same_level'), |
| 83 | + outline_up_heading = m.action('org_mappings.outline_up_heading'), |
| 84 | + org_deadline = m.action('org_mappings.org_deadline'), |
| 85 | + org_schedule = m.action('org_mappings.org_schedule'), |
| 86 | + org_time_stamp = m.action('org_mappings.org_time_stamp'), |
| 87 | + org_time_stamp_inactive = m.action('org_mappings.org_time_stamp', { args = { true } }), |
| 88 | + org_clock_in = m.action('clock.org_clock_in'), |
| 89 | + org_clock_out = m.action('clock.org_clock_out'), |
| 90 | + org_clock_cancel = m.action('clock.org_clock_cancel'), |
| 91 | + org_clock_goto = m.action('clock.org_clock_goto'), |
| 92 | + org_set_effort = m.action('clock.org_set_effort'), |
| 93 | + org_show_help = m.action('org_mappings.show_help'), |
| 94 | + }, |
| 95 | + edit_src = { |
| 96 | + org_edit_src_abort = m.custom([[<Cmd>lua require('orgmode.objects.edit_special').abort()<CR>]]), |
| 97 | + org_edit_src_show_help = m.custom([[<Cmd>lua require('orgmode.objects.help').show({ type = 'edit_src' })<CR>]]), |
| 98 | + org_edit_src_save = m.custom([[<Cmd>lua require('orgmode.objects.edit_special'):new():write()<CR>]]), |
| 99 | + }, |
| 100 | + text_objects = { |
| 101 | + inner_heading = m.text_object('inner_heading'), |
| 102 | + around_heading = m.text_object('around_heading'), |
| 103 | + inner_subtree = m.text_object('inner_subtree'), |
| 104 | + around_subtree = m.text_object('around_subtree'), |
| 105 | + inner_heading_from_root = m.text_object('inner_heading_from_root'), |
| 106 | + around_heading_from_root = m.text_object('around_heading_from_root'), |
| 107 | + inner_subtree_from_root = m.text_object('inner_subtree_from_root'), |
| 108 | + around_subtree_from_root = m.text_object('around_subtree_from_root'), |
| 109 | + }, |
| 110 | +} |
0 commit comments