Commits

ZyX_I committed 1ec7b54

@%aurum/record: Added AuRecordLeft_Finish mapping

Comments (0)

Files changed (2)

autoload/aurum/record.vim

         else
             call s:_f.warn('norm', bvar.recfile)
         endif
+    elseif a:action is# 'finish'
+        silent write
+        execute swnr.'wincmd w'
     endif
 endfunction
 "▶1 rec mappings
             \   'Exit': {'lhs': 'X', 'rhs': s:F.gml('discardall')},
             \ 'Commit': {'lhs': 'i', 'rhs': s:F.gml('commit')    },
             \ 'Remove': {'lhs': 'R', 'rhs': s:F.gml('remove')    },
+            \ 'Finish': {'lhs': 'A', 'rhs': s:F.gml('finish')    },
         \}, {'mode': 'n', 'silent': 1, 'dontmap': 1, 'leader': '<Leader>'})
 "▶1
 call frawor#Lockvar(s:, '_r,_pluginloaded')
 (mgid=AuRecordLeft, default leader: "<Leader>"):    *g:frawormap_AuRecordLeft*
           *g:frawormap_AuRecordLeft_Discard* *g:frawormap_AuRecordLeft_Exit*
           *g:frawormap_AuRecordLeft_Commit*  *g:frawormap_AuRecordLeft_Remove*
+          *g:frawormap_AuRecordLeft_Finish*      *aurum-m-AuRecordLeft_Finish*
               *aurum-m-AuRecordLeft_Discard*     *aurum-m-AuRecordLeft_Exit*
               *aurum-m-AuRecordLeft_Commit*      *aurum-m-AuRecordLeft_Remove*
 Mapping  LHS  Description ~
 Discard   x   Discard all changes made to edited file. If file is opened for 
-              the second time only unsaved changes will be discarded
+              the second time only unsaved changes will be discarded.
 Exit      X   Exit record mode, discarding all changes made to all files and 
-              not committing anything
-Commit    i   Commit selected changes and exit record mode
+              not committing anything.
+Commit    i   Commit selected changes and exit record mode.
 Remove    R   Like Discard, but also unselect it (makes difference if file is 
-              edited for the second time)
+              edited for the second time).
+Finish    A   Write changes and switch to status buffer.
 
 ==============================================================================
 8. Internal objects                                            *aurum-objects*
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.