Arch的KDE-Snapshot Repo暂停维护

https://bbs.archlinux.org/viewtopic.php?pid=992099#p992099

ProgDan 在过去的2 年6个月零24天22小时当中为大家一直在维护着这个源。非常感谢他长久以来的贡献。

有兴趣接手的可以去联系他。

People come and people go, open-source always lives.

Posted in KDE | Tagged | Leave a comment

在线安装 Fcitx 的皮肤

唯一一个皮肤,测试了default old的安装和卸载。

minus太坑爹了,还是以后用blip tv。

Posted in fcitx development | 1 Comment

KDE-Look.org 增加 Fcitx 的皮肤分类

打包请用 .tar.gz 格式,重命名为  .fskin
其中只包含一个子目录。(就是直接把 ~/.config/fcitx/skin下面的某个子目录直接打包)

具体地址在这。
http://kde-look.org/index.php?xcontentmode=88

我会尽快在kcm-fcitx里面集成在线下载功能。

Posted in fcitx development | Tagged | 3 Comments

很菜的VIM配置

前略,前半就是vim自带的example。

syntax enable
set hlsearch
set autoindent
set nocp
set ts=4
set sw=4
set number
set encoding=utf-8

set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1

filetype plugin indent on

set grepprg=grep\ -nH\ $*
let g:tex_flavor = "latex"

set runtimepath=~/.vim,/usr/share/vim,/usr/share/vim/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after

autocmd FileType python setlocal et sta sw=4 sts=4

set completeopt=longest,menu

"cs add cscope.out .
"
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif

set tags=tags;

function! UpdateCtags()
    let curdir=getcwd()
"    echo filereadable("tags")
    while !filereadable("./tags")
        cd ..
        if getcwd() == "/"
            break
        endif
    endwhile
    if filewritable("./tags")
        !ctags -R --c++-kinds=+px --fields=+iaS --extra=+q --excmd=pattern --exclude=Makefile --exclude=.
    else
        execute ":cd " . curdir
        !ctags -R --c++-kinds=+px --fields=+iaS --extra=+q --excmd=pattern --exclude=Makefile --exclude=.
    endif
"    echo getcwd() curdir
    execute ":cd " . curdir
endfunction

nmap <F10> :call UpdateCtags()<CR>

nmap <C-]> :tj <C-R>=expand("<cword>")<CR><CR>

" Tlist
"if &diff
"let Tlist_Auto_Open=0 "don't auto pen when compare two files
"else
"let Tlist_Auto_Open=1 "auto pen Tlist when open a file
"endif

"set taglist window in right, delete the following line if you don't like
let Tlist_Auto_Update=1
let Tlist_File_Fold_Auto_Close=1
"auto close Tlist when exiting file.
let Tlist_Exit_OnlyWindow = 1
nnoremap <silent> <F8> :TlistToggle<CR>

nmap <F7> :copen<CR>
nmap <F6> :cclose<CR>

let g:input_toggle = 1
function! Fcitx2en()
   let s:input_status = system("fcitx-remote")
   if s:input_status == 2
      let g:input_toggle = 1
      let l:a = system("fcitx-remote -c")
   endif
endfunction

function! Fcitx2zh()
   let s:input_status = system("fcitx-remote")
   if s:input_status != 2 && g:input_toggle == 1
      let l:a = system("fcitx-remote -o")
      let g:input_toggle = 0
   endif
endfunction

set timeoutlen=150
autocmd InsertLeave * call Fcitx2en()
"autocmd InsertEnter * call Fcitx2zh()
"set expandtab

" Set to auto read when a file is changed from the outside
set autoread

let g:doxygenToolkit_authorName="CSSlayer"
let g:doxygenToolkit_briefTag_funcName="yes"

nmap <F3>a :DoxAuthor<cr>
nmap <F3>f :Dox<cr>
nmap <F3>b :DoxBlock<cr>
nmap <F3>c O/** */<Left><Left>

" When vimrc is edited, reload it
autocmd! bufwritepost vimrc source ~/.vimrc

set expandtab

set fdm=marker

set listchars=tab:>−,trail:−
set list

function! SaveSession()
    let cwd = getcwd()
    let cwd = fnamemodify(cwd, ':t')
    if cwd != ""
        execute "mksession! ~/.vim/session/" . cwd . ".session"
        execute "wviminfo! ~/.vim/session/" . cwd . ".viminfo"
    endif
endfunction

au VimLeave * call SaveSession()

if $TERM =~ 'xterm'
    let &t_SI = "\<Esc>]50;CursorShape=1\x7"
    let &t_EI = "\<Esc>]50;CursorShape=0\x7"
endif

let g:DirDiffDynamicDiffText = 1

真的很土鳖的。中间有个f10一键刷新ctags。

Posted in Linux | 8 Comments

重写Kimpanel

特性倒是没有太多,不过起码和Kimtoy相比那个鼠标操作的功能是在的。主面板还没有加回来。光是输入倒是行了。另外和原版的kimpanel相比,通过drawHalo增加了可读性(就是tooltip的文本下面那一片白花花的东西),另外在样式和颜色上也有了小小的修改(老实讲以前比较丑……),还有可以配置成竖排显示了。还有就是没有原版的几个严重影响使用的bug(鼠标移上去之后文字消失),还有屏幕边缘的检测也正常了。

从技术上来说,则是采用了DataEngine来进行和plasmoid数据的通信,也方便以后被再调用。

全部重写完成之后想办法推回kde里面去。

代码的位置在这里:

https://github.com/csslayer/kimpanel-rewrite/

Posted in KDE | 5 Comments