-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DogeCreateDocStandard (command) #70
Add DogeCreateDocStandard (command) #70
Conversation
For custom template generation.
autoload/doge/pattern.vim
Outdated
let l:path .= '/after/ftplugin/' . l:this_ft . '.vim' | ||
endif | ||
if filereadable(l:path) | ||
exe 'split' fnameescape(l:path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I use buffer tabs instead of windows, I suggest you open a tab if &showtabline != v:false
, otherwise, use split.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let's keep it simple, <c-w>T
can be used to move the buffer to a new tab if desired.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can do enew
for a new buffer or split
for a new window. That's a small adjustment I require to be supported.
Maybe you have call setreg('"', l:doc)
1
normal! P'[='] to call setreg('"', l:doc)
1
normal! ""P'[='] |
- use new tab - check for existing but unsaved buffer - explicit register
I fixed that cliboard problem and set it to use a new tab, I didn't understand that thing with |
I have
See if &showtabline != v:false
exe 'tabedit' fnameescape(l:path)
else
exe 'split' fnameescape(l:path)
endif |
Pulling 293ac4c fixes the problem indeed. Can you implement the above code I mentioned? |
Are there any other things that needs to be done or need to be taken into consideration? If not, I'll write a test for this command soon. |
Is support for external programs for documentation generation implemented? If yes, the command could take it into account. |
The only one we support now is |
@mg979 I think that I will write tests for this and merge this. Agree? |
@kkoomen sorry I haven't time for this atm, the command is complete, if you need to make some adjustment you can make them by yourself. |
… standard to be properly formatted
For custom template generation.