Skip to content

Commit

Permalink
added 'jump to archive' choice to Refile Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
hsitz committed Dec 7, 2011
1 parent 6e1b609 commit b0659e3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ftplugin/org.vim
Expand Up @@ -7614,6 +7614,7 @@ function! OrgRefileDashboard()
echo " j / z / t jump to new point/last point/persistent point"
echo " s set persistent refile point "
echo " a archive to _archive file"
echo " v jump to _archive file"
echo ""
echohl Question
let key = nr2char(getchar())
Expand All @@ -7632,6 +7633,8 @@ function! OrgRefileDashboard()
call s:OrgJumpToRefilePointPersistent()
elseif key ==? 's'
call s:OrgSetRefilePoint()
elseif key ==? 'v'
call org#LocateFile(expand('%:p') . '_archive')
elseif key ==? 'a'
if confirm('Confirm that you want to archive subtree(s)',"&Yes\n&Cancel")
call s:DoRefile(['_archive'],[line('.')])
Expand Down Expand Up @@ -8073,8 +8076,8 @@ endfunction
function! s:OrgVal(variable_str)
" takes variable as an argument and tests whether it's defined
" if not returns -1, otherwise return variable value
if exists(variable_str)
execute 'let val=' . variable_str
if exists(a:variable_str)
execute 'let val=' . a:variable_str
else
let val = -1
endif
Expand Down Expand Up @@ -8300,7 +8303,8 @@ if !has('gui_running')
nmap <silent> <buffer> <localleader>nt :call <SID>ReplaceTodo()<CR>
endif
execute "source " . expand("<sfile>:p:h") . '/vimorg-main-mappings.vim'

" next line call is to get signs defined
call s:DeleteSigns()
" below is autocmd to change tw for lines that have comments on them
" I think this should go in vimrc so i runs for each buffer load
" :autocmd CursorMoved,CursorMovedI * :if match(getline(line(".")), '^*\*\s') == 0 | :setlocal textwidth=99 | :else | :setlocal textwidth=79 | :endif
Expand Down

0 comments on commit b0659e3

Please sign in to comment.