Code Monkey home page Code Monkey logo

vim-timesheet's Introduction

vim-timesheet

This is a Vim package to edit timesheet.txt files. It's still kind of basic.

Features

  • detects files called timesheet.txt as filetype=timesheet
  • syntax highlighting
  • normal mode bindings:
    • <LocalLeader>n: create a new entry
    • <LocalLeader>s: stop the last entry
    • <LocalLeader>c: continue the last entry

The bindings are rather stupid: For example, you'll be able to stop the entry even if none is running. In other words, this plugin helps you edit the files, it's not a time tracking UI.

Status

It works. There are some things missing (issue ID highlighting, error highlighting), but it's alright for the moment.

Installation

It's compatible to the usual Vim package managers, if you're using one of these.

You can also use Vim 8's included package management by cloning this repository to ~/.vim/pack/vim-timesheet/start/vim-timesheet.

vim-timesheet's People

Contributors

scy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

shiar

vim-timesheet's Issues

Allow jumping to referenced lines

If this plugin understood and interpreted the timesheet.txt back-referencing syntax, we could add a command to jump from a referencing line to the referenced one.

Replace back-referencing line with the one referenced

Once #1 is implemented, we could have a command that basically "resolves" the back-reference on a line by inserting the contents of the one we're referring to. Example:

1234  some entry
1345.
1414^

When the cursor is on the 1414 line, invoking this command should result in the following file:

1234  some entry
1345.
1414  some entry

This would be nice for making minor edits to the line or simply to keep your file human-readable.

Note that the resolving would need to be done in a recursive manner:

1234  some entry
1345.
1414^
1520.
1610^

Resolving the 1610 line should of course not result in using the caret character from the 1414 line, but some entry from the 1234 line it ultimately refers to.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.