Giter Site home page Giter Site logo

jamestomasino / burrow Goto Github PK

View Code? Open in Web Editor NEW
55.0 6.0 10.0 134 KB

burrow is a helper for building and managing a gopher hole

Home Page: gopher://gopher.black

License: GNU General Public License v3.0

Makefile 4.89% Shell 88.97% Roff 6.14%
gopher makefile manpage gopher-server bash-completion gopher-hole shell-script

burrow's Issues

Add task to edit root gophermap

Should creating a phlog, recipe, or topic generate a link in the gophermap if none exists? I think so. I'll probably do that too in here.

Phlog fold

Add option to auto-fold entry upon completion. Provide var for width in config.

Detect if editor is quit without saving and abort post

If you begin a phlog post and decide to abandon it, quitting the editor will continue to try and create the post. Add a mechanism for quitting without saving the file or otherwise signaling to burrow not to post.

Things to consider:

  • what if you have saved the file while working, but still want to quit?
  • is there any difference if you used a template file or not?
  • if I quit, has the file still been created locally? Do I need to remove it? What if this was an edit, not a new post?

autoformat gophermaps breaks special gophernicus syntax

Gophernicus supports special gophermap directives like = * % and so on. These are not interpretted as links by burrow and are instead wrapped as type i, breaking them. Add detection for these and ignore as we do with gophermap links.

Extend commands to menu driven system

Currently each command does only one thing. As features are added, rework the interface to provide a menu of options and a default so complex tasks can be done.

For instance, the phlog command could offer:

1 - New Phlog
2 - List Phlogs
3 - Edit Phlog (and subsequent menu provides a list to choose from)
4 - Delete Phlog

For first pass, simple text menus with numeric input should suffice. Investigate ncurses for menu system later.

RSS feed links incorrect

The link node is adding /./ and possibly the wrong type to the urls. Content is correct but not the nodes

Optionally skip line endings in gophermaps

Gophernicus and motsognir can both fill in the host & port names of gophermaps automatically. Skipping the line endings can add portability if you use those servers or host on multiple servers. Make this an optional feature disabled by default.

Title Case RSS Phlog Entries

The former sed solution to title-case phlog titles turns out to be gnu specific.

sed 's/.*/\L&/; s/[a-z]*/\u&/g' 

Need to find a posix way of doing it. Probably awk with substrings and loops.

Makefile failing on FreeBSD due to bash completion and make version

Make just fell over on FreeBSD 12.0. These three steps worked:

  1. Installing bash-completion via either pkg install bash-completion or via the shells/bash-completion port. (The first worked fine for me and was the simpler route).
  2. Installing the GNU version of make via either pkg install gmake or the port devel/gmake.
  3. Rather than running sudo make install, run sudo gmake install.

Maybe these could be added to the installation guidelines?

Feature request: config can override date format

The config file could usefully hold an optional line such as date_format to allow overrides of the default US date order. This would be great for those of us preferring a 'day, DD Month YYYY" format or what-have-you.

getopt doesn't work on OSX

Probably the wrong version of getopt is being used. Investigate and fix to be more broadly compatible.

POSIX compliant

Updated everything to be POSIX compliant. Possibly rewrite to /bin/sh instead of bash

Add chmod override config option

Add an option to specify a chmod for new posts & gophermaps. If it's set, after creating or updating a file chmod it automatically. This would be helpful for systems with odd umask settings.

server and port still written when config_gophermap_omitserver is used

I have not had much time to look into this, but when the config_gophermap_omitserver option is set, the server and port are still written into the phlog post itself.

It does seem to work in gophermap at the top of config_dir_phlog at least.

This causes issues when the server needs to send a different port to different clients (e.g. gophernicus running with both plain gopher and gopher over TLS)

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.