Code Monkey home page Code Monkey logo

rofi-leo-dictionary's People

Contributors

maltesa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rofi-leo-dictionary's Issues

undefined method `encode' for URI:Module

Recently I am getting this error with leo search rofi:

leo_search.rb:39:in `<main>': undefined method `encode' for URI:Module (NoMethodError)

Any suggestions what might be causing this?

input path should probably more generic

Looking at https://github.com/maltesa/Rofi-Leo-Dictionary/blob/master/leo_search_rofi.sh#L26

The path were it looks for the ruby file is hardcoded.
So, two choices

  1. Adjust README.md, with before running the scripts, adjust the path
  2. Make the path more generic

Kinda like

diff --git a/leo_search_rofi.sh b/leo_search_rofi.sh
index adf0eb8..44bfb4e 100755
--- a/leo_search_rofi.sh
+++ b/leo_search_rofi.sh
@@ -22,6 +22,7 @@ if [[ -z "$input" ]]; then
 fi

 # Call search script as long as there is input
+SEARCH_RB="."
 while [ -n "$input" ]; do
-  input=$( ruby /home/malte/Skripte\ und\ Anwendungen/leo_search.rb $(echo $input) | rofi -dmenu -l 30 -p "Leo Dict: " | awk '{print $1}' )
+  input=$( ruby ${SEARCH_RB}/leo_search.rb $(echo $input) | rofi -dmenu -l 30 -p "Leo Dict: " | awk '{print $1}' )
 done
\ No newline at end of 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.