Giter Club home page Giter Club logo

fasthistory's Issues

Export with empty db

"f --export" command failed if db does not exist.

E.g.
INFO:root:export output: /home/runner/work/xx/xx/fastHistory_2020-03-22.db
ERROR:root:export database error: [Errno 2] No such file or directory: '/home/runner/.local/share/fastHistory/fh_v1.db'

UI issue

  1. filter the list for tag X
  2. Show more for one of the filtered items
  3. Edit tags
  4. Remove tag X
  5. the page now shown is wrong

Tested with current master

[Feature] Online sync between computers

Currently fastHistory works completely offline.
All commands can be manually exported and imported on a different computer.

We could add a service that run in background to make a real-time sync of all stored commands.
This require also to expose some API, to define an account flow for user accounts and to provide some sort of data redundancy server side.

resize bug in Discover tab

  1. go to Discover tab
  2. select an command
  3. select an example
  4. resize the windows in a way the selected example is out of screen
  5. see the error

zsh support

With a small change of the "f.sh" file zsh can be supported.
The ".zshrc" must be also changed.

Multi-lines commands not supported

Multi-lines commands are currently ignored

Example:

echo "string1
string2
string3
" #print #multi-line

is interpreted as

echo "string1

Date is missing in log file

Each line of the log file shows the type, user and message

INFO:root:import database: 92 elements imported

The user could be removed and the date added as first column.

Add check for input length

The length of tags, descriptions and commands should be check before to insert them into the database

Slow man page info

The command "man " on windows takes a couple of seconds and the UI is not responsive

Add "--update" command

To update fastHistory it will be enough to type "f --update" and it will automatically inject the needed command into the terminal.

E.g. for pip3
"pip3 install -U --no-cache-dir fasthistory && $HOME/.local/bin/f"

Auto-copy feature

When a command is selected, there should be a quick way to copy it into the clipboard instead of injecting it into the terminal.

Example of usage: the command is not needed for the current machine

SyntaxWarning: "is" with a literal. Did you mean "=="?

In python 3.8 the following warning is shown:

2020-03-10T08:38:37.2701777Z /home/runner/work/fastHistory/fastHistory/fastHistory/parser
/inputParser.py:234: SyntaxWarning: "is" with a literal. Did you mean "=="?
2020-03-10T08:38:37.2702595Z elif string is "":
2020-03-10T08:38:37.2703067Z /home/runner/work/fastHistory/fastHistory/fastHistory/database/databaseSQLite.py:469: SyntaxWarning: "is not" with a literal. Did you mean "!="?
2020-03-10T08:38:37.2703637Z if new_description is not None and new_description is not "" and new_description != old_description:
2020-03-10T08:38:37.2704115Z /home/runner/work/fastHistory/fastHistory/fastHistory/database/databaseSQLite.py:470: SyntaxWarning: "is" with a literal. Did you mean "=="?
2020-03-10T08:38:37.2704540Z if old_description is "":
2020-03-10T08:38:37.2705009Z /home/runner/work/fastHistory/fastHistory/fastHistory/database/databaseSQLite.py:550: SyntaxWarning: "is" with a literal. Did you mean "=="?
2020-03-10T08:38:37.2705443Z if new_cmd is None or new_cmd is "":
2020-03-10T08:38:37.2705880Z /home/runner/work/fastHistory/fastHistory/fastHistory/pick/pageGeneric.py:76: SyntaxWarning: "is not" with a literal. Did you mean "!="?
2020-03-10T08:38:37.2707169Z if index_sub_str is not -1:

Add "f --log" to view log file

Using "f --log" should inject the following command into the terminal:

nano {installation_folder}/fh.log

This will help to debug issues or to simply find the log file

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.