Ho theha sebatli sa faele bakeng sa Thunar ka Zenity

 

Sengoloa sena se phatlalalitsoe khale koana ho blog ea khale ka Xfce, e thehiloe sehloohong se seng se phatlalalitsoeng ho Xubuntu blog mme ke ba siya mona hape.

Seo re tla se etsa ke ho etsa patlo ea faele bakeng sa Thunar sebelisa Bonolo. Ntho ea pele eo re tlamehang ho e etsa ke ho kenya sehlohlolong:

$ sudo aptitude install zenity

Ebe re bula sesebelisoa ebe re beha:

$ mkdir ~/.bash-scripts/

Ka tsela ena re theha sesebelisoa se tla ba le sengoloa se tla etsa ketso ka boeona. Hona joale re theha faele e bitsoang batla-bakeng-difaele ka hare ka tsela e latelang:

mousepad ~/.bash-scripts/search-for-files

'me re maneha sena kahare:

#! / bin / bash # search-for-files # fetola palo ena hore e lumellane le uena - Ke fumana hore zenity e shoa liphetho tse ka bang 1000 empa YMMV maxresults = 500 # hape, fetola tsela e eang ho aekhone hore e lumellane le uena. Empa ke mang ea sa rateng tango? window_icon = "/ usr / share / icons / Tango / scalable / liketso / search.svg" # sengoloa sena se tla sebetsa bakeng sa tikoloho efe kapa efe e nang le botsitso le botumo, ka hona mookameli oa file o tlase ho uena ka botlalo! o ka eketsa likhang tse eketsehileng khoeleng ha feela phehisano ea hoqetela e le tsela ea foldara eo u e bulang filemanager = "thunar" window_title = "Batla Files" srcPath = "$ *" haeba! [-d "$ srcPath"]; ebe cd ~ / srcPath = `zenity --file-selection --directory --title =" $ window_title - Sheba foldareng "--window-icon =" $ window_icon "` fi if [-d "$ srcPath"] ; joale fragment = `zenity --entry --title =" $ window_title - Lebitso le na le: "--window-icon =" $ window_icon "--text =" Likhoele tsa patlo tse ka tlase ho litlhaku tse 2 li hlokomolohiloe "haeba! [$ {# sekhechana} -lt 2]; joale (echo 10 O = $ IFS IFS = $ '\ n' files = (`find" $ srcPath "-iname" * $ fragment * "-printf \"% Y \ "\"% f \ "\ \" % k \ KB \ "\ \"% t \ "\ \"% h \ "\\\ n | hlooho -n $ maxresult`) IFS = $ O echo 100 e khethiloeng =` eval zenity --list --title = \ "$ {# lifaele [@]} Lifaele li Fumane - $ window_title \" --window-icon = "$ window_icon" --width = "600" --height = "400" --text = \ "Liphetho tsa patlo : \ "--print-kholomo = 5 - kholomo \" Mofuta \ "- kholomo \" Lebitso \ "- kholomo \" Boholo \ "- kholomo \" Letsatsi le fetotsoeng \ "- kholomo \" Tsela \ "$ {files [@]}` if [-e "$ selected"]; ebe "$ filemanager" "$ selected"; fi) | zenity - tsoelo-pele - auto-close --pulsate --title = "Ho batla ..." --window-icon = "$ window_icon" --text = "Ho batla \" $ fragment \ "" fi fi exit

'me re e fa tumello ea ho etsa:

chmod a+x ~/.bash-scripts/search-for-files

Joale re etsa backup ea file ea uca.xml:

$ sudo cp /etc/xdg/Thunar/uca.xml /etc/xdg/Thunar/uca.xml.old

eo re tla fihlela sena qetellong:

<action>
<icon>/usr/share/icons/Tango/scalable/actions/search.svg</icon>
<name>Search for Files</name>
<command>bash ~/.bash-scripts/search-for-files %f</command>
<description>Search this folder for files</description>
<patterns>*</patterns>
<directories/>
</action>

Joale seo re se siileng ke ho bula Thunar » Fetola » Theha liketso tsa tloaelo 'me re theha e ncha. Mme re tlatsa likarolo tse latelang:

Tabeng Motheo:
Lebitso: Sesosa sa ho batla
Tlhaloso: Sesosa sa ho batla
Taelo: bash ~ / .bash-script / fuputso-ea-lifaele% f
Letšoao: Re khetha eo re e ratang haholo.

Ho lula ka tsela ena:

Hona joale ka har'a tabo Maemo hlaha likarolo tse latelang:
Mohlala oa faele: *
E hlaha haeba khetho e na le: Directory.

Mme e shebahala tjena:

Joale ka Thunar Ha re bula lenane ka konopo e nepahetseng, khetho ea ho batla ha e hlahe:

Haeba re tobetsa ho eona, fensetere e tla hlaha moo re ka kenyang mekhoa ea ho batla:

Ha re qala ho batla re tla bona ntho e kang ena:

mme qetellong litholoana tsa eona:

Haeba re penya habeli ho sephetho, fensetere ea Thunar ka folda eo faele e leng ho eona. Ka tsela ena re fa desktop ea rona matla a mangata Xfce.


Litaba tsa sengoloa sena li latela melao-motheo ea rona ea melao ea boitšoaro ea bongoli. Ho tlaleha phoso tlanya mona.

Maikutlo a 9, siea ea hau

Siea maikutlo a hau

aterese ya hao ya imeile ke ke ho phatlalatswa. masimo a hlokahala a tšoailoe ka *

*

*

  1. E ikarabella bakeng sa data: Miguel Ángel Gatón
  2. Morero oa data: Laola SPAM, tsamaiso ea maikutlo.
  3. Molao: Tumello ea hau
  4. Puisano ea data: Lintlha li ke ke tsa tsebisoa batho ba boraro ntle le ka tlamo ea molao.
  5. Polokelo ea data: Database e hapiloeng ke Occentus Networks (EU)
  6. Litokelo: Nako efe kapa efe o ka fokotsa, oa hlaphoheloa mme oa hlakola tlhaiso-leseling ea hau.

  1.   alez a re

    Ke qaka e kaakang! Hehe, mona o na le tsela e 'ngoe ea ho fihlela ntho e ts'oanang e bonolo ho nna.
    http://marksnotebook.com/ubuntu/how-add-built-search-thunar-using-catfish
    Ka moferefere oa Unity le Gnome3 batho ba bangata ba ea Xfce mme ba qala ho fumana limakatso tsa Thunar ... Ka botebo, lenaneo leo lea makatsa. Ke leboha haholo bakeng sa blog, ke e latela khafetsa leha e le lekhetlo la pele ke ngola.

    1.    elav <° Linux a re

      Amohela alez:
      Hahaha ha ho thata joalo, ho bonolo haholo. Ke 'nete hore ka CatFish re ka ba le sesebelisoa se matla sa ho batla, empa ha ho letho, bonyane ha ke le sebelise kaha ke ts'ebeliso e le' ngoe e tlase ho e kenya

  2.   Oscar a re

    Kea leboha elav, tuto e ntle haholo, ke tla e boloka le tseo u seng u li phatlalalitse, ke nahana hore XFCE e na le bokamoso bo bongata e le mokhoa o mong, ke hore, ha feela e sa tsamaee ka matla ts'ebelisong ea Ram.

  3.   lenookele a re

    Ho hantle haholo, ho e leka 😉

  4.   matovitch a re

    Ha ke utloisise Sepanish, empa ke utloisisa bash.
    Ke ile ka qala ho kenya tšebetsong ntho e tšoanang. Ke bolokile nako e ngata ka lebaka la khoutu ea hau.
    Kea leboha. Kea leboha. Merci de France.

  5.   Luis a re

    Ho na le bothata bo boholo ka sengoloa sena ...

    Haeba u batlana le ho hong ho seng moo, enjine ea ho batla e lula e le kahare e sa feleng mme tsela feela ea ho e koala ke ka ho bolaea tšebetso.

    1.    Alexander Morales a re

      Ke nahana hore tharollo ea nyeoe eo e ka ba ho etsa haeba seo se netefatsa haeba ho se na lifaele pele, 'me haeba ho na le se batlang, 😀

  6.   Raúl a re

    Ke leboha haholo, ehlile e ea hole ebile e etsa le tlatsetso ea thunar.

  7.   Victor a re

    Ke e fumane e le ntle haholo. e sebetsang haholo. Ke leboha haholo.