Browse Source

Skeleton Files Added

main
Yigit Colakoglu 4 years ago
parent
commit
65b81fc9d8
13 changed files with 129 additions and 2 deletions
  1. +0
    -1
      config/vim/vimrc
  2. +14
    -0
      local/share/vim/skeleton/skeleton.c
  3. +14
    -0
      local/share/vim/skeleton/skeleton.cpp
  4. +13
    -0
      local/share/vim/skeleton/skeleton.h
  5. +13
    -0
      local/share/vim/skeleton/skeleton.hpp
  6. +10
    -0
      local/share/vim/skeleton/skeleton.html
  7. +13
    -0
      local/share/vim/skeleton/skeleton.java
  8. +15
    -0
      local/share/vim/skeleton/skeleton.py
  9. +2
    -0
      local/share/vim/skeleton/skeleton.sh
  10. +30
    -0
      local/share/vim/skeleton/skeleton.tex
  11. +2
    -0
      suckless/dwm/config.h
  12. +2
    -1
      suckless/dwm/keybind.h
  13. +1
    -0
      suckless/dwm/rules.h

+ 0
- 1
config/vim/vimrc View File

@ -192,7 +192,6 @@ packadd termdebug
" Use skeleton files
if has("autocmd")
augroup templates
autocmd BufNewFile main.* silent! execute '0r ~/.local/share/vim/templates/skeleton-main.'.expand("<afile>:e")
autocmd BufNewFile *.* silent! execute '0r ~/.local/share/vim/templates/skeleton.'.expand("<afile>:e")
autocmd BufNewFile * %substitute#\[:VIM_EVAL:\]\(.\{-\}\)\[:END_EVAL:\]#\=eval(submatch(1))#ge
augroup END


+ 14
- 0
local/share/vim/skeleton/skeleton.c View File

@ -0,0 +1,14 @@
/*
* [:VIM_EVAL:]expand('%:t')[:END_EVAL:]
* [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:]
*
* Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:].
* Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved.
*/
#include <stdio.h>
int main(int argc, char *argv[]) {
}

+ 14
- 0
local/share/vim/skeleton/skeleton.cpp View File

@ -0,0 +1,14 @@
/*
* [:VIM_EVAL:]expand('%:t')[:END_EVAL:]
* [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:]
*
* Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:].
* Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved.
*/
#include <iostream>
int main(int argc, char *argv[]) {
}

+ 13
- 0
local/share/vim/skeleton/skeleton.h View File

@ -0,0 +1,13 @@
home/home/
home/home/ [:VIM_EVAL:]expand('%:t')[:END_EVAL:]
home/home/ [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:]
home/home/
home/home/ Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%mhome/%dhome/%y')[:END_EVAL:].
home/home/ Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved.
home/home/
#ifndef [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:]
#define [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:]
#endif home/* [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] *home/

+ 13
- 0
local/share/vim/skeleton/skeleton.hpp View File

@ -0,0 +1,13 @@
//
// [:VIM_EVAL:]expand('%:t')[:END_EVAL:]
// [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:]
//
// Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:].
// Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved.
//
#ifndef [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:]
#define [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:]
#endif /* [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] */

+ 10
- 0
local/share/vim/skeleton/skeleton.html View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>

+ 13
- 0
local/share/vim/skeleton/skeleton.java View File

@ -0,0 +1,13 @@
home/home/
home/home/ [:VIM_EVAL:]expand('%:t')[:END_EVAL:]
home/home/ [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:]
home/home/
home/home/ Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%mhome/%dhome/%y')[:END_EVAL:].
home/home/ Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved.
home/home/
class Untitled {
public static void main(String[] args) {
}
}

+ 15
- 0
local/share/vim/skeleton/skeleton.py View File

@ -0,0 +1,15 @@
#!/usr/local/bin/python3
#
# [:VIM_EVAL:]expand('%:t')[:END_EVAL:]
# [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:]
#
# Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:].
# Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved.
#
def main():
print("hello world")
if __name__ == "__main__":
main()

+ 2
- 0
local/share/vim/skeleton/skeleton.sh View File

@ -0,0 +1,2 @@
#!/bin/bash

+ 30
- 0
local/share/vim/skeleton/skeleton.tex View File

@ -0,0 +1,30 @@
%
% [:VIM_EVAL:]expand('%:t')[:END_EVAL:]
% [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:]
%
% Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:].
% Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved.
%
\RequirePackage[l2tabu, orthodox]{nag}
\documentclass[12pt]{article}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{verbatim}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{upquote}
\usepackage{units}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage{xcolor}
\title{}
\date{\today}
\author{Yigit Colakoglu}
\begin{document}
\maketitle
\end{document}

+ 2
- 0
suckless/dwm/config.h View File

@ -57,6 +57,7 @@ const char *spcmd2[] = {"feh", "--title", "scratchpad", "--class", "spfeh", "-g"
const char *spcmd3[] = {"st", "-c", "scratchpad", "-n", "spmutt", "-g", "180x51", "-e", "neomutt", NULL };
static const char *spcmd4[] = { "/usr/local/bin/st", "-g", "150x35", "-c", "spfile", "-n", "spfile", "-e", "/home/yigit/.local/bin/lf-ueberzug", NULL };
static const char *spcmd5[] = { "/usr/local/bin/st", "-g", "150x35", "-c", "spmusic", "-n", "spmusic", "-e", "ncmpcpp", NULL };
static const char *spcmd6[] = { "/usr/local/bin/st", "-g", "150x35", "-c", "spcal", "-n", "spcal", "-e", "calcurse", NULL };
static Sp scratchpads[] = {
{"spterm", spcmd1},
@ -64,6 +65,7 @@ static Sp scratchpads[] = {
{"spmutt", spcmd3},
{"spfile", spcmd4},
{"spmusic", spcmd5},
{"spcal", spcmd6},
};
static const BarRule barrules[] = {


+ 2
- 1
suckless/dwm/keybind.h View File

@ -136,7 +136,7 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_w, spawn, {.v = wallabag} },
{ MODKEY, XK_w, spawn, {.v = wiki} },
{ MODKEY, XK_g, spawn, {.v = google} },
{ MODKEY|ShiftMask, XK_c, spawn, {.v = online_class} },
{ MODKEY, XK_t, spawn, {.v = online_class} },
{ MODKEY|ShiftMask, XK_m, spawn, {.v = mconnect} },
{ MODKEY|ShiftMask, XK_d, spawn, {.v = udevil} },
{ MODKEY|ShiftMask, XK_u, spawn, {.v = udevil_umount} },
@ -146,6 +146,7 @@ static Key keys[] = {
{ MODKEY, XK_m, togglescratch, {.ui = 2 } },
{ MODKEY|ShiftMask, XK_f, togglescratch, {.ui = 3} },
{ MODKEY, XK_n, togglescratch, {.ui = 4} },
{ MODKEY|ShiftMask, XK_c, togglescratch, {.ui = 5} },
/* FloatPos Patch Keybinds */
{ Mod3Mask, XK_u, floatpos, {.v = "-26x -26y" } }, //
{ Mod3Mask, XK_i, floatpos, {.v = " 0x -26y" } }, //


+ 1
- 0
suckless/dwm/rules.h View File

@ -28,6 +28,7 @@ static const Rule rules[] = {
RULE(.instance = "spmutt", .tags = SPTAG(2), .isfloating = 1)
RULE(.instance = "spfile", .tags = SPTAG(3), .isfloating = 1)
RULE(.instance = "spmusic", .tags = SPTAG(4), .isfloating = 1)
RULE(.instance = "spcal", .tags = SPTAG(5), .isfloating = 1)
/* Terminal Window Rules */
RULE(.class = "ranger", 0, .isfloating = 1, .floatpos="50% 50% 800W 560H")
RULE(.class = "lf", 0, .isfloating = 1, .floatpos="50% 50% 800W 560H")


Loading…
Cancel
Save